|
|
@ -86,25 +86,25 @@ |
|
|
|
AND b.DEL_FLAG = '0' |
|
|
|
<where> |
|
|
|
a.DEL_FLAG = '0' |
|
|
|
AND a.AGENCY_ID = #{agencyId} |
|
|
|
AND a.AGENCY_ID = #{form.agencyId} |
|
|
|
AND a.CUSTOMER_ID = #{customerId} |
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
AND b.GRID_ID = #{gridId} |
|
|
|
AND b.GRID_ID = #{form.gridId} |
|
|
|
</if> |
|
|
|
<if test="unitName != null and unitName != ''"> |
|
|
|
AND a.UNIT_NAME = #{unitName} |
|
|
|
AND a.UNIT_NAME = #{form.unitName} |
|
|
|
</if> |
|
|
|
<if test="serviceMatter != null and serviceMatter != ''"> |
|
|
|
AND a.SERVICE_MATTER = #{serviceMatter} |
|
|
|
AND a.SERVICE_MATTER = #{form.serviceMatter} |
|
|
|
</if> |
|
|
|
<if test="type != null and type != ''"> |
|
|
|
AND a.type = #{type} |
|
|
|
AND a.type = #{form.type} |
|
|
|
</if> |
|
|
|
<if test="contact != null and contact != ''"> |
|
|
|
AND a.CONTACT = #{contact} |
|
|
|
AND a.CONTACT = #{form.contact} |
|
|
|
</if> |
|
|
|
<if test="contactMobile != null and contactMobile != ''"> |
|
|
|
AND a.CONTACT_MOBILE = #{contactMobile} |
|
|
|
AND a.CONTACT_MOBILE = #{form.contactMobile} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by |
|
|
|