9/17 字段搜索优化1.0

dev_no_inv
wangwei 10 months ago
parent e881336059
commit c612696cae

@ -149,4 +149,8 @@ public class CollectOrderRequest extends ListPageRequest {
private String excludeWorkCode;
//发货方
private String shipperName;
}

@ -21,6 +21,9 @@
icob.invAlert,
icob.splitMsg,
icob.fromCorpName,
icob.shipperName,
icob.thrBusType,
icob.shipper,
icob.tagMsg,
sys_workplace_document.busName busTypeName,
sw.workplaceName,
@ -108,6 +111,12 @@
or icob.busType like concat('%', #{keywords}, '%')
or icob.fromType like concat('%', #{keywords}, '%'))
</if>
<if test="shipperName != '' and shipperName != null">
AND icob.shipperName LIKE concat('%', #{shipperName}, '%')
</if>
<if test="fromCorpName != '' and fromCorpName != null">
AND icob.fromCorpName LIKE concat('%', #{fromCorpName}, '%')
</if>
</where>
GROUP BY
icob.billNo

@ -123,6 +123,12 @@
or ico.fromCorpName like concat('%', #{keywords}, '%')
or ico.fromType like concat('%', #{keywords}, '%'))
</if>
<if test="shipperName != '' and shipperName != null">
AND ico.shipperName LIKE concat('%', #{shipperName}, '%')
</if>
<if test="fromCorpName != '' and fromCorpName != null">
AND ico.fromCorpName LIKE concat('%', #{fromCorpName}, '%')
</if>
</where>
GROUP BY
ico.billNo

@ -96,6 +96,12 @@
<if test="fromType != '' and fromType != null">
AND fromType LIKE concat('%', #{fromType}, '%')
</if>
<if test="shipperName != '' and shipperName != null">
AND ico.shipperName LIKE concat('%', #{shipperName}, '%')
</if>
<if test="fromCorpName != '' and fromCorpName != null">
AND ico.fromCorpName LIKE concat('%', #{fromCorpName}, '%')
</if>
<if test="collectCode != null and collectCode != ''">
AND collectCode = #{collectCode}
</if>

Loading…
Cancel
Save