过滤包装规格 name等于空的值

This commit is contained in:
zhou-hongcheng
2026-03-09 09:33:17 +08:00
parent 6a25f97ddb
commit 6d17c91500
3 changed files with 7 additions and 0 deletions
@@ -75,6 +75,7 @@ public class PackDomainService {
PackPO packPO = packService.getInfo(packId);
PackDetailDO packDetailDO = new PackDetailDO();
packDetailDO.setPackId(packId);
packDetailDO.setIsName("1");
List<PackDetailPO> packDetailPOList = packDetailService.queryList(packDetailDO);
packPO.setPackDetailList(packDetailPOList);
return packPO;
@@ -93,6 +93,9 @@ public class PackDetailDO extends BaseVOEntity{
@Excel(name = "备注")
private String remark;
@ApiModelProperty("过滤空name")
private String isName;
@ApiModelProperty(name = "组织ID集合")
private List<Long> organizationIdList;
@@ -57,6 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''">
and name like concat('%', #{name}, '%')
</if>
<if test="isName != null and isName != ''">
AND NAME IS NOT NULL AND NAME != ''
</if>
<if test="number != null ">
and number = #{number}
</if>