Merge pull request '完善产品中的需求规格功能开发' (#750) from otto/microservices:product_refact into product_refact

This commit is contained in:
otto 2024-12-10 11:34:18 +08:00
commit 298a74075a
3 changed files with 12 additions and 2 deletions

View File

@ -36,9 +36,12 @@ public class ProductReqSpecsSearchVo {
@ApiModelProperty(value = "关联产品模块ID传0查询不属于任何模块的需求")
private Long pmsProductModuleId;
@ApiModelProperty(value = "产品需求状态(全部状态请传空)")
@ApiModelProperty(value = "产品需求状态(全部状态请传空)(可通过逗号分割传多个状态)")
private String status;
@ApiModelProperty(value = "产品需求状态(数组)", hidden = true)
private String[] statusList;
@ApiModelProperty(value = "产品需求类型")
private String type;

View File

@ -394,6 +394,9 @@ public class PmsProductRequirementServiceImpl implements IPmsProductRequirementS
List<Long> moduleIdList = pmsProductModuleService.selectChildrenPmsProductModuleIdList(productReqSpecsSearchVo.getPmsProductModuleId());
productReqSpecsSearchVo.setChildrenModuleIdList(moduleIdList);
}
if (StringUtils.isNotEmpty(productReqSpecsSearchVo.getStatus())) {
productReqSpecsSearchVo.setStatusList(productReqSpecsSearchVo.getStatus().split(","));
}
startPage();
List<PmsProductRequirement> userReqList = pmsProductRequirementMapper.selectReqSpecsList(productReqSpecsSearchVo);
HashMap<String, Object> hashMap = new HashMap<>();

View File

@ -204,7 +204,11 @@
<where>
<if test="title != null and title != ''">and title like concat('%', #{title}, '%')</if>
<if test="pmsProductIdentifier != null ">and pms_product_identifier = #{pmsProductIdentifier}</if>
<if test="status != null and status != ''">and `status` = #{status}</if>
<if test="status != null and status != ''">and `status` in
<foreach item="item" collection="statusList" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="type != null and type != ''">and `type` = #{type}</if>
<choose>
<when test="childrenModuleIdList != null">