|
@ -260,10 +260,10 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
dm.del_flag = '0' |
|
|
dm.del_flag = '0' |
|
|
AND rd.del_flag = '0' |
|
|
AND rd.del_flag = '0' |
|
|
|
|
|
<if test="customerId != null and customerId != ''"> |
|
|
|
|
|
AND org.CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</if> |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="customerId != null and customerId != ''"> |
|
|
|
|
|
AND org.CUSTOMER_ID = #{customerId} |
|
|
|
|
|
</when> |
|
|
|
|
|
<when test="areaCode != null and areaCode != ''"> |
|
|
<when test="areaCode != null and areaCode != ''"> |
|
|
AND org.AREA_CODE LIKE concat(#{areaCode}, '%') |
|
|
AND org.AREA_CODE LIKE concat(#{areaCode}, '%') |
|
|
</when> |
|
|
</when> |
|
|