9/18 拆零管理搜索字段优化

dev_no_inv
wangwei 10 months ago
parent 9fd7db20d7
commit 39a2b2ca54

@ -139,6 +139,9 @@ public class IoSplitCodeRequest extends ListPageRequest {
*/
private String keywords;
private String startTime;
private String endTime;
private String productName;

@ -39,13 +39,22 @@
<if test=" workPlaceCode != null">
AND workPlaceCode = #{workPlaceCode}
</if>
<if test=" productName != null and productName != ''">
AND bp.cpmctymc = #{productName}
</if>
<if test="keywords != null and keywords != ''">
and (isc.workPlaceCode like concat('%', #{keywords}, '%')
or isc.nameCode like concat('%', #{keywords}, '%')
or isc.batchNo like concat('%', #{keywords}, '%')
or isc.supId like concat('%', #{keywords}, '%')
or bp.cpmctymc like concat('%', #{keywords}, '%')
or bp.bzgg like concat('%', #{keywords}, '%')
or bp.ggxh like concat('%', #{keywords}, '%')
or isc.invCode like concat('%', #{keywords}, '%'))
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND date_format(isc.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
</if>
</where>
</select>
</mapper>

Loading…
Cancel
Save