|
|
@@ -320,7 +320,7 @@
|
|
|
<select id="queryEntInfoByCityCodeAndEntTypesWithPage" resultType="com.sckw.system.model.KwsEnterprise">
|
|
|
SELECT a.*
|
|
|
FROM kws_enterprise a
|
|
|
- LEFT JOIN sys_area b ON a.city_code = b.CODE
|
|
|
+ LEFT JOIN sys_area b ON a.city_code = b.CODE
|
|
|
where 1 = 1
|
|
|
<if test="cityCode != null">
|
|
|
and (b.code = #{cityCode} or b.province_code = #{cityCode} or b.pcode = #{cityCode})
|
|
|
@@ -342,6 +342,12 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
)
|
|
|
+ and exists (
|
|
|
+ select 1
|
|
|
+ from kws_ent_check_track e
|
|
|
+ where a.id = e.ent_id
|
|
|
+ and a.status = 0
|
|
|
+ )
|
|
|
</select>
|
|
|
|
|
|
<select id="findManageInfoByEntIds" resultType="com.sckw.system.model.pojo.FindManagePojo">
|