过滤包装规格 name等于空的值
This commit is contained in:
+1
@@ -75,6 +75,7 @@ public class PackDomainService {
|
|||||||
PackPO packPO = packService.getInfo(packId);
|
PackPO packPO = packService.getInfo(packId);
|
||||||
PackDetailDO packDetailDO = new PackDetailDO();
|
PackDetailDO packDetailDO = new PackDetailDO();
|
||||||
packDetailDO.setPackId(packId);
|
packDetailDO.setPackId(packId);
|
||||||
|
packDetailDO.setIsName("1");
|
||||||
List<PackDetailPO> packDetailPOList = packDetailService.queryList(packDetailDO);
|
List<PackDetailPO> packDetailPOList = packDetailService.queryList(packDetailDO);
|
||||||
packPO.setPackDetailList(packDetailPOList);
|
packPO.setPackDetailList(packDetailPOList);
|
||||||
return packPO;
|
return packPO;
|
||||||
|
|||||||
+3
@@ -93,6 +93,9 @@ public class PackDetailDO extends BaseVOEntity{
|
|||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
@ApiModelProperty("过滤空name")
|
||||||
|
private String isName;
|
||||||
|
|
||||||
@ApiModelProperty(name = "组织ID集合")
|
@ApiModelProperty(name = "组织ID集合")
|
||||||
private List<Long> organizationIdList;
|
private List<Long> organizationIdList;
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
and name like concat('%', #{name}, '%')
|
and name like concat('%', #{name}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="isName != null and isName != ''">
|
||||||
|
AND NAME IS NOT NULL AND NAME != ''
|
||||||
|
</if>
|
||||||
<if test="number != null ">
|
<if test="number != null ">
|
||||||
and number = #{number}
|
and number = #{number}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user