|
@ -18,8 +18,15 @@ |
|
|
IFNULL(MOBILE,'') AS MOBILE |
|
|
IFNULL(MOBILE,'') AS MOBILE |
|
|
FROM ic_city_management |
|
|
FROM ic_city_management |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -40,8 +47,15 @@ |
|
|
IFNULL(MOBILE,'') AS MOBILE |
|
|
IFNULL(MOBILE,'') AS MOBILE |
|
|
FROM ic_public_service |
|
|
FROM ic_public_service |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -60,8 +74,15 @@ |
|
|
ifnull(PRINCIPAL_MOBILE,'') AS mobile |
|
|
ifnull(PRINCIPAL_MOBILE,'') AS mobile |
|
|
FROM ic_dangerous_chemicals |
|
|
FROM ic_dangerous_chemicals |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -80,8 +101,15 @@ |
|
|
ifnull(ADDRESS,'') as ADDRESS |
|
|
ifnull(ADDRESS,'') as ADDRESS |
|
|
FROM ic_superior_resource |
|
|
FROM ic_superior_resource |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -99,8 +127,15 @@ |
|
|
ifnull(MOBILE,'') AS mobile |
|
|
ifnull(MOBILE,'') AS mobile |
|
|
FROM ic_enterprise |
|
|
FROM ic_enterprise |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND CONCAT(AGENCY_PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND CONCAT(AGENCY_PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND PLACE_ORG_NAME LIKE CONCAT('%',#{name},'%') |
|
|
AND PLACE_ORG_NAME LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -109,8 +144,15 @@ |
|
|
select count(id) |
|
|
select count(id) |
|
|
FROM ic_city_management |
|
|
FROM ic_city_management |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='resourceId != null and resourceId != "" '> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND ID = #{resourceId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='customerId != null and customerId != ""'> |
|
|
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -119,8 +161,12 @@ |
|
|
select count(id) |
|
|
select count(id) |
|
|
FROM ic_public_service |
|
|
FROM ic_public_service |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='customerId != null and customerId != ""'> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -129,8 +175,12 @@ |
|
|
select count(id) |
|
|
select count(id) |
|
|
FROM ic_dangerous_chemicals |
|
|
FROM ic_dangerous_chemicals |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='customerId != null and customerId != ""'> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -139,8 +189,12 @@ |
|
|
select count(id) |
|
|
select count(id) |
|
|
FROM ic_superior_resource |
|
|
FROM ic_superior_resource |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='customerId != null and customerId != ""'> |
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND AGENCY_ID_PATH LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND `NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
@ -149,8 +203,12 @@ |
|
|
select count(id) |
|
|
select count(id) |
|
|
FROM ic_enterprise |
|
|
FROM ic_enterprise |
|
|
WHERE DEL_FLAG = 0 |
|
|
WHERE DEL_FLAG = 0 |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
<if test='customerId != null and customerId != ""'> |
|
|
AND CONCAT(AGENCY_PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{orgId},'%') |
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test='orgId != null and orgId != ""'> |
|
|
|
|
|
AND CONCAT(AGENCY_PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{orgId},'%') |
|
|
|
|
|
</if> |
|
|
<if test=' name != null and name != "" '> |
|
|
<if test=' name != null and name != "" '> |
|
|
AND PLACE_ORG_NAME LIKE CONCAT('%',#{name},'%') |
|
|
AND PLACE_ORG_NAME LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
|