|
@ -425,18 +425,18 @@ |
|
|
|
|
|
|
|
|
<select id="checkAgencyName" parameterType="map" resultType="com.epmet.entity.CustomerAgencyEntity"> |
|
|
<select id="checkAgencyName" parameterType="map" resultType="com.epmet.entity.CustomerAgencyEntity"> |
|
|
SELECT |
|
|
SELECT |
|
|
ca.id |
|
|
ca.id |
|
|
FROM |
|
|
FROM |
|
|
customer_agency ca |
|
|
customer_agency ca |
|
|
WHERE |
|
|
WHERE |
|
|
ca.DEL_FLAG = '0' |
|
|
ca.DEL_FLAG = '0' |
|
|
AND ca.CUSTOMER_ID = #{customerId} |
|
|
AND ca.CUSTOMER_ID = #{customerId} |
|
|
AND ca.ORGANIZATION_NAME = #{agencyName} |
|
|
AND ca.ORGANIZATION_NAME = #{agencyName} |
|
|
<if test='agencyId != "" and agencyId != null'> |
|
|
<if test='agencyId != "" and agencyId != null'> |
|
|
AND ca.id !=#{agencyId} |
|
|
AND ca.id !=#{agencyId} |
|
|
</if> |
|
|
</if> |
|
|
<if test='parentAgencyId != "" and parentAgencyId != null'> |
|
|
<if test='parentAgencyId != "" and parentAgencyId != null'> |
|
|
AND ca.pid =#{parentAgencyId} |
|
|
AND ca.pid =#{parentAgencyId} |
|
|
</if> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |