|
@ -25,7 +25,9 @@ |
|
|
r.IMPORT_TIME, |
|
|
r.IMPORT_TIME, |
|
|
r.IMPORT_DATE, |
|
|
r.IMPORT_DATE, |
|
|
c.IC_RESI_USER_ID, |
|
|
c.IC_RESI_USER_ID, |
|
|
r.CUSTOMER_ID |
|
|
r.CUSTOMER_ID, |
|
|
|
|
|
r.IMPORT_DATE, |
|
|
|
|
|
r.IMPORT_TIME as importTime |
|
|
FROM ic_nat_compare_rec_relation r |
|
|
FROM ic_nat_compare_rec_relation r |
|
|
left join ic_nat_compare_record c on (r.COMPARE_REC_ID=c.ID) |
|
|
left join ic_nat_compare_record c on (r.COMPARE_REC_ID=c.ID) |
|
|
WHERE |
|
|
WHERE |
|
@ -44,8 +46,8 @@ |
|
|
<if test='null != name and "" != name'> |
|
|
<if test='null != name and "" != name'> |
|
|
AND c.`NAME` LIKE CONCAT('%',#{name},'%') |
|
|
AND c.`NAME` LIKE CONCAT('%',#{name},'%') |
|
|
</if> |
|
|
</if> |
|
|
<if test='null != importTime and "" != importTime'> |
|
|
<if test='null != importDate and "" != importDate'> |
|
|
AND DATE_FORMAT( r.IMPORT_DATE, '%Y%m%d' ) = #{importTime} |
|
|
AND r.IMPORT_DATE = #{importDate} |
|
|
</if> |
|
|
</if> |
|
|
<if test='null != agencyId and "" != agencyId'> |
|
|
<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},'%') |
|
|