|
|
|
@ -84,6 +84,17 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
|
|
AND a2.batchNo like concat('%', #{batchNo}, '%')
|
|
|
|
|
</if>ggxh
|
|
|
|
|
<if test="cpmctymc != null and cpmctymc != ''">
|
|
|
|
|
AND bp.cpmctymc like concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != null and ggxh != ''">
|
|
|
|
|
AND (
|
|
|
|
|
bp.ggxh LIKE concat('%', #{ggxh}, '%')
|
|
|
|
|
or bp.bzgg LIKE concat('%', #{ggxh}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="prepnSpec != null and prepnSpec != ''">
|
|
|
|
|
AND bp.prepnSpec LIKE concat('%', #{prepnSpec}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="coName != null and coName != ''">
|
|
|
|
|
AND a2.coName like concat('%', #{coName}, '%')
|
|
|
|
@ -97,6 +108,18 @@
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="keyWords != '' and keyWords != null">
|
|
|
|
|
AND (
|
|
|
|
|
a2.nameCode LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or a2.orderIdFk LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or bp.bzgg LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or bp.prepnSpec LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or bp.cpmctymc LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or bp.ggxh LIKE concat('%', #{keyWords}, '%')
|
|
|
|
|
or a2.batchNo like concat('%', #{keyWords}, '%')
|
|
|
|
|
or a2.certCode like concat('%', #{keyWords}, '%')
|
|
|
|
|
or a2.manufacturer like concat('%', #{keyWords}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by a2.id
|
|
|
|
|
</select>
|
|
|
|
|