|
|
@ -120,8 +120,33 @@ |
|
|
|
UPDATED_TIME |
|
|
|
from ic_resi_collect_visitor |
|
|
|
where DEL_FLAG = '0' |
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
|
AND DATE_FORMAT( CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
|
AND CUSTOMER_ID = #{customerId} |
|
|
|
<if test="idCard != null and idCard != ''"> |
|
|
|
AND ID_CARD = #{idCard} |
|
|
|
</if> |
|
|
|
<if test="name != null and name != ''"> |
|
|
|
AND NAME = #{name} |
|
|
|
</if> |
|
|
|
<if test="mobile != null and mobile != ''"> |
|
|
|
AND MOBILE = #{mobile} |
|
|
|
</if> |
|
|
|
<if test="villageId != null and villageId != ''"> |
|
|
|
AND VILLAGE_ID = #{villageId} |
|
|
|
</if> |
|
|
|
<if test="buildId != null and buildId != ''"> |
|
|
|
AND BUILD_ID = #{buildId} |
|
|
|
</if> |
|
|
|
<if test="unitId != null and unitId != ''"> |
|
|
|
AND UNIT_ID = #{unitId} |
|
|
|
</if> |
|
|
|
<if test="homeId != null and homeId != ''"> |
|
|
|
AND HOME_ID = #{homeId} |
|
|
|
</if> |
|
|
|
<if test="startTime != null and startTime != ''"> |
|
|
|
AND CREATED_TIME >= #{startTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
AND CREATED_TIME <= #{endTime} |
|
|
|
</if> |
|
|
|
<if test='orgId != null and orgId != "" '> |
|
|
|
AND CONCAT(PIDS,':',AGENCY_ID) LIKE CONCAT('%',#{orgId},'%') |
|
|
|