新增关键字搜索

dev_no_inv
zane 10 months ago
parent db7acbb48c
commit 22933258ce

@ -141,4 +141,9 @@ public class CollectOrderRequest extends ListPageRequest {
private List<String> documentTypeCodes; private List<String> documentTypeCodes;
/**
*
*/
private String keywords;
} }

@ -107,6 +107,15 @@
<if test="uploadStatus != null"> <if test="uploadStatus != null">
and ico.uploadStatus = #{uploadStatus} and ico.uploadStatus = #{uploadStatus}
</if> </if>
<if test="keywords != null and keywords != ''">
and (ico.billNo like concat('%', #{keywords}, '%')
or ico.fromCorp like concat('%', #{keywords}, '%')
or ico.fromCorpName like concat('%', #{keywords}, '%')
or ico.workPlaceCode like concat('%', #{keywords}, '%')
or ico.busType like concat('%', #{keywords}, '%')
or ico.fromCorpName like concat('%', #{keywords}, '%')
or ico.fromType like concat('%', #{keywords}, '%'))
</if>
</where> </where>
GROUP BY GROUP BY
ico.billNo ico.billNo

@ -107,6 +107,12 @@
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND date_format(ico.billTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d') AND date_format(ico.billTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
</if> </if>
<if test="keywords != null and keywords != ''">
and (ico.billNo like concat('%', #{keywords}, '%')
or ico.fromCorp like concat('%', #{keywords}, '%')
or ico.fromCorpName like concat('%', #{keywords}, '%')
or ico.fromType like concat('%', #{keywords}, '%'))
</if>
</where> </where>
GROUP BY GROUP BY
ico.billNo ico.billNo

Loading…
Cancel
Save