|
|
@ -32,7 +32,7 @@ |
|
|
|
r.IMPORT_DATE, |
|
|
|
r.IMPORT_TIME as importTime |
|
|
|
FROM ic_nat_compare_rec_relation r |
|
|
|
inner join ic_nat_compare_record c on (r.COMPARE_REC_ID=c.ID AND c.del_flag='0') |
|
|
|
left join ic_nat_compare_record c on (r.COMPARE_REC_ID=c.ID AND c.del_flag='0') |
|
|
|
WHERE |
|
|
|
r.DEL_FLAG = '0' |
|
|
|
AND r.CUSTOMER_ID = #{customerId} |
|
|
@ -52,7 +52,7 @@ |
|
|
|
AND r.IMPORT_DATE = #{importDate} |
|
|
|
</if> |
|
|
|
<if test='null != agencyId and "" != agencyId'> |
|
|
|
AND r.AGENCY_ID = #{agencyId} or r.pids like concat('%',#{agencyId},'%') |
|
|
|
AND (r.AGENCY_ID = #{agencyId} or r.pids like concat('%',#{agencyId},'%') ) |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
r.IMPORT_TIME DESC,r.AGENCY_ID desc |
|
|
|