Commit 9573799d authored by huagnxiner's avatar huagnxiner

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

parent 9140c971
......@@ -194,6 +194,7 @@ public class PlatformManagementController extends BaseController {
searchParams.put("EQ_orderBy", sortColumn.toString());
searchParams.put("EQ_cityCode", cityCode);
searchParams.put("EQ_isDelete", "0");
searchParams.put("EQ_isShowInPlat", "0");
searchParams.put("EQ_platformCreater", userEntity.getId());
searchParams.put("EQ_customerSourceType", "8");
searchParams.put("EQ_platformCreateSource", "PT");
......
......@@ -1542,6 +1542,11 @@
star_pt_customer = 0
]]>
</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">
<![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
......@@ -865,7 +865,7 @@
</select>
<update id="updateIdList" parameterType="list">
update customer set is_delete=1
update customer set is_show_in_plat=1
WHERE
id
<foreach collection="list" item="id" open="in (" close=")" separator=",">
......
......@@ -270,11 +270,12 @@
</update>
<select id="getCityById" parameterType="String" resultType="String">
SELECT
dd.`name` AS city
FROM `user` u
inner JOIN department dd on u.deptUrlPath = dd.urlPath
where u.id=#{userId}
select
case c.city
when 'zb001' then 'nj'
else c.city end
as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select>
</mapper>
\ No newline at end of file
......@@ -1542,6 +1542,11 @@
star_pt_customer = 0
]]>
</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">
<![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
......@@ -858,7 +858,7 @@
</select>
<update id="updateIdList" parameterType="list">
update customer set is_delete=1
update customer set is_show_in_plat=1
WHERE
id
<foreach collection="list" item="id" open="in (" close=")" separator=",">
......
......@@ -270,11 +270,12 @@
</update>
<select id="getCityById" parameterType="String" resultType="String">
SELECT
dd.`name` AS city
FROM `user` u
inner JOIN department dd on u.deptUrlPath = dd.urlPath
where u.id=#{userId}
select
case c.city
when 'zb001' then 'nj'
else c.city end
as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select>
</mapper>
\ No newline at end of file
......@@ -1530,6 +1530,11 @@
starCustomer = 0
]]>
</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">
<![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
......
......@@ -851,7 +851,7 @@
</select>
<update id="updateIdList" parameterType="list">
update customer set is_delete=1
update customer set is_show_in_plat=1
WHERE
id
<foreach collection="list" item="id" open="in (" close=")" separator=",">
......
......@@ -270,11 +270,12 @@
</update>
<select id="getCityById" parameterType="String" resultType="String">
SELECT
dd.`name` AS city
FROM `user` u
inner JOIN department dd on u.deptUrlPath = dd.urlPath
where u.id=#{userId}
select
case c.city
when 'zb001' then 'nj'
else c.city end
as city
from user u inner join city_urlpath c on SUBSTRING_INDEX(u.deptUrlPath,'/',3)=c.urlpath where u.id=#{userId}
</select>
</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