|
@@ -101,6 +101,20 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 获得货源推荐列表 -->
|
|
@@ -160,6 +174,20 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
UNION ALL
|
|
|
SELECT
|
|
|
p.id,
|
|
@@ -211,6 +239,20 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
) t
|
|
|
ORDER BY
|
|
|
t.createDate DESC,
|
|
@@ -273,6 +315,20 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
ORDER BY p.update_date DESC
|
|
|
<if test="currentPage != null and currentPage != ''">
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
@@ -338,6 +394,20 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
UNION ALL
|
|
|
SELECT
|
|
|
p.id,
|
|
@@ -391,13 +461,27 @@
|
|
|
AND (lower(p.unload_private) like lower(CONCAT('%',#{unLoadingPlace},'%'))
|
|
|
OR lower(p.unload_area) like lower(CONCAT('%',#{unLoadingPlace},'%')))
|
|
|
</if>
|
|
|
+ <if test="loadingList != null and loadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="loadingList" item="loadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.send_area) like lower(CONCAT('%',#{loadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="unloadingList != null and unloadingList.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="unloadingList" item="unloadingListValue" open="(" close=")" separator="or">
|
|
|
+ lower(p.unload_area) like lower(CONCAT('%',#{unloadingListValue},'%'))
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
) t
|
|
|
<if test="currentPage != null and currentPage != ''">
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <!-- 获得货源列表 -->
|
|
|
+ <!-- 获得周边信息列表 -->
|
|
|
<select id="getAllListsByCondition" parameterType="Map"
|
|
|
resultType="com.yh.saas.plugin.yiliangyiyun.entity.PublishTaskInfo">
|
|
|
SELECT
|