|
|
|
@ -52,7 +52,7 @@ |
|
|
|
AND u.DEL_FLAG = '0' |
|
|
|
AND v.DOSE = u.VACCINATION_NUM |
|
|
|
AND u.VACCINATION_STATE = 1 |
|
|
|
AND datediff(NOW(), v.VACCINATION_TIME) >= #{vaccTime} |
|
|
|
AND datediff(NOW(), DATE_FORMAT(v.VACCINATION_TIME,'%Y-%m-%d %H:%i:%s')) >= #{vaccTime} |
|
|
|
</if> |
|
|
|
<if test="vaccNo != null and vaccNo != '' and vaccNo != 0"> |
|
|
|
AND v.DOSE = #{vaccNo} |
|
|
|
@ -60,32 +60,17 @@ |
|
|
|
<if test="dose != null and dose != '' and dose > 0"> |
|
|
|
AND v.DOSE = #{dose} |
|
|
|
</if> |
|
|
|
<if test="street != null and street != ''"> |
|
|
|
and v.STREET like '%${street}%' |
|
|
|
<if test="streetId != '' and streetId != null"> |
|
|
|
AND (find_in_set(#{streetId},v.PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{streetId},v.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="community != null and community != ''"> |
|
|
|
and v.COMMUNITY like '%${community}%' |
|
|
|
<if test="communityId != '' and communityId != null"> |
|
|
|
AND (find_in_set(#{communityId},v.PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{communityId},v.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="gridName != null and gridName != ''"> |
|
|
|
and v.GRID like '%${gridName}%' |
|
|
|
</if> |
|
|
|
<if test="streetKeywords != null"> |
|
|
|
AND v.STREET IN |
|
|
|
<foreach collection="streetKeywords" index="index" item="street" open="(" separator="," close=")"> |
|
|
|
#{street} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="communityKeywords != null"> |
|
|
|
AND v.COMMUNITY IN |
|
|
|
<foreach collection="communityKeywords" index="index" item="community" open="(" separator="," close=")"> |
|
|
|
#{community} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="gridKeywords != null"> |
|
|
|
AND v.GRID_NAME IN |
|
|
|
<foreach collection="gridKeywords" index="index" item="grid" open="(" separator="," close=")"> |
|
|
|
#{grid} |
|
|
|
</foreach> |
|
|
|
<if test="gridId != '' and gridId != null"> |
|
|
|
and (v.grid_id = #{gridId} |
|
|
|
OR find_in_set(#{gridId},v.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="deptIdList != null"> |
|
|
|
and v.grid_id in |
|
|
|
|