11/18 关联关系查询字段

dev_unify
wangwei 8 months ago
parent 1200db9be9
commit 03782d19f3

@ -95,4 +95,9 @@ public class RelCodeBatchRequest extends ListPageRequest {
private String erpId;
private String cpmctymc;
//模糊查询字段
private String keyWord;
}

@ -169,7 +169,9 @@
AND nameCode LIKE concat(#{nameCode}, '%')
</if>
<if test="ggxh != '' and ggxh != null">
AND ggxh LIKE concat('%', #{ggxh}, '%')
AND (
basic_products.ggxh LIKE concat('%', #{ggxh}, '%')
or basic_products.bzgg LIKE concat('%', #{ggxh}, '%'))
</if>
<if test="purType != '' and purType != null">
AND basic_udirel.purType = #{purType}
@ -280,6 +282,7 @@
or basic_products.prepnSpec LIKE concat('%', #{keyWords}, '%')
or basic_products.cpmctymc LIKE concat('%', #{keyWords}, '%')
or basic_products.ggxh LIKE concat('%', #{keyWords}, '%')
or basic_products.zczbhhzbapzbh LIKE concat('%', #{keyWords}, '%')
or basic_products.manufactory LIKE concat('%', #{keyWords}, '%')
or basic_udirel.thirdId LIKE concat('%', #{keyWords}, '%')
or basic_udirel.thirdId1 LIKE concat('%', #{keyWords}, '%')

@ -50,6 +50,16 @@
or a.parentCode LIKE concat('%', #{keyWords}, '%')
)
</if>
<if test="keyWord != '' and keyWord != null">
AND (
a.productCode LIKE concat('%', #{keyWord}, '%')
or a.batchNo LIKE concat('%', #{keyWord}, '%')
or bp.bzgg LIKE concat('%', #{keyWord}, '%')
or bp.packUnit LIKE concat('%', #{keyWord}, '%')
or bp.prepnSpec LIKE concat('%', #{keyWord}, '%')
or bp.cpmctymc LIKE concat('%', #{keyWord}, '%')
or bp.ggxh LIKE concat('%', #{keyWord}, '%'))
</if>
<if test="lineName != '' and lineName != null">
AND a.lineName LIKE concat('%', #{lineName}, '%')
</if>

Loading…
Cancel
Save