Commit 9573799d authored by huagnxiner's avatar huagnxiner

全链条修改bug,二维码城市已经平台客户批量删除

parent 9140c971
...@@ -194,6 +194,7 @@ public class PlatformManagementController extends BaseController { ...@@ -194,6 +194,7 @@ public class PlatformManagementController extends BaseController {
searchParams.put("EQ_orderBy", sortColumn.toString()); searchParams.put("EQ_orderBy", sortColumn.toString());
searchParams.put("EQ_cityCode", cityCode); searchParams.put("EQ_cityCode", cityCode);
searchParams.put("EQ_isDelete", "0"); searchParams.put("EQ_isDelete", "0");
searchParams.put("EQ_isShowInPlat", "0");
searchParams.put("EQ_platformCreater", userEntity.getId()); searchParams.put("EQ_platformCreater", userEntity.getId());
searchParams.put("EQ_customerSourceType", "8"); searchParams.put("EQ_customerSourceType", "8");
searchParams.put("EQ_platformCreateSource", "PT"); searchParams.put("EQ_platformCreateSource", "PT");
......
...@@ -1542,6 +1542,11 @@ ...@@ -1542,6 +1542,11 @@
star_pt_customer = 0 star_pt_customer = 0
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.isShowInPlat">
<![CDATA[
c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value#
]]>
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.starCustomer"> <isNotEmpty prepend="AND" property="searchFilters.starCustomer">
<![CDATA[ <![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value# starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
...@@ -865,7 +865,7 @@ ...@@ -865,7 +865,7 @@
</select> </select>
<update id="updateIdList" parameterType="list"> <update id="updateIdList" parameterType="list">
update customer set is_delete=1 update customer set is_show_in_plat=1
WHERE WHERE
id id
<foreach collection="list" item="id" open="in (" close=")" separator=","> <foreach collection="list" item="id" open="in (" close=")" separator=",">
......
...@@ -270,11 +270,12 @@ ...@@ -270,11 +270,12 @@
</update> </update>
<select id="getCityById" parameterType="String" resultType="String"> <select id="getCityById" parameterType="String" resultType="String">
SELECT select
dd.`name` AS city case c.city
FROM `user` u when 'zb001' then 'nj'
inner JOIN department dd on u.deptUrlPath = dd.urlPath else c.city end
where u.id=#{userId} as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -1542,6 +1542,11 @@ ...@@ -1542,6 +1542,11 @@
star_pt_customer = 0 star_pt_customer = 0
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.isShowInPlat">
<![CDATA[
c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value#
]]>
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.starCustomer"> <isNotEmpty prepend="AND" property="searchFilters.starCustomer">
<![CDATA[ <![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value# starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
...@@ -858,7 +858,7 @@ ...@@ -858,7 +858,7 @@
</select> </select>
<update id="updateIdList" parameterType="list"> <update id="updateIdList" parameterType="list">
update customer set is_delete=1 update customer set is_show_in_plat=1
WHERE WHERE
id id
<foreach collection="list" item="id" open="in (" close=")" separator=","> <foreach collection="list" item="id" open="in (" close=")" separator=",">
......
...@@ -270,11 +270,12 @@ ...@@ -270,11 +270,12 @@
</update> </update>
<select id="getCityById" parameterType="String" resultType="String"> <select id="getCityById" parameterType="String" resultType="String">
SELECT select
dd.`name` AS city case c.city
FROM `user` u when 'zb001' then 'nj'
inner JOIN department dd on u.deptUrlPath = dd.urlPath else c.city end
where u.id=#{userId} as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -1530,6 +1530,11 @@ ...@@ -1530,6 +1530,11 @@
starCustomer = 0 starCustomer = 0
]]> ]]>
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.isShowInPlat">
<![CDATA[
c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value#
]]>
</isNotEmpty>
<isNotEmpty prepend="AND" property="searchFilters.starCustomer"> <isNotEmpty prepend="AND" property="searchFilters.starCustomer">
<![CDATA[ <![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value# starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
...@@ -851,7 +851,7 @@ ...@@ -851,7 +851,7 @@
</select> </select>
<update id="updateIdList" parameterType="list"> <update id="updateIdList" parameterType="list">
update customer set is_delete=1 update customer set is_show_in_plat=1
WHERE WHERE
id id
<foreach collection="list" item="id" open="in (" close=")" separator=","> <foreach collection="list" item="id" open="in (" close=")" separator=",">
......
...@@ -270,11 +270,12 @@ ...@@ -270,11 +270,12 @@
</update> </update>
<select id="getCityById" parameterType="String" resultType="String"> <select id="getCityById" parameterType="String" resultType="String">
SELECT select
dd.`name` AS city case c.city
FROM `user` u when 'zb001' then 'nj'
inner JOIN department dd on u.deptUrlPath = dd.urlPath else c.city end
where u.id=#{userId} as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment