| | |
| | | LEFT JOIN blade_user bu ON bu.id = jpc.create_user and bu.is_deleted = 0 |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jp.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0 |
| | | where jpc.is_deleted = 0 |
| | | |
| | | <if test="placeCheck.houseCode!=null and placeCheck.houseCode!=''"> |
| | | and jpc.house_code = #{placeCheck.houseCode} |
| | | </if> |
| | | |
| | | <if test="placeCheck.hiddenDangerNumber!=null and placeCheck.hiddenDangerNumber==0"> |
| | | and jpc.hidden_danger_number = #{placeCheck.hiddenDangerNumber} |
| | | </if> |
| | | |
| | | <if test="placeCheck.hiddenDangerNumber!=null and placeCheck.hiddenDangerNumber==1"> |
| | | and jpc.hidden_danger_number > 0 |
| | | </if> |
| | | |
| | | <if test="placeCheck.streetName!=null and placeCheck.streetName!=''"> |
| | |
| | | |
| | | <if test="placeCheck.principalPhone!=null and placeCheck.principalPhone!=''"> |
| | | and jp.principal_phone like concat('%', #{placeCheck.principalPhone},'%') |
| | | </if> |
| | | |
| | | <if test="nineTypeList!=null and nineTypeList.size()>0"> |
| | | and jp.nine_type in |
| | | <foreach collection="nineTypeList" separator="," open="(" close=")" item="nineType"> |
| | | #{nineType} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="placeCheck.startTime!=null and placeCheck.startTime!=''"> |
| | |
| | | and jp.principal_phone like concat('%', #{placeCheck.principalPhone},'%') |
| | | </if> |
| | | |
| | | <if test="nineTypeList!=null and nineTypeList.size()>0"> |
| | | and jp.nine_type in |
| | | <foreach collection="nineTypeList" separator="," open="(" close=")" item="nineType"> |
| | | #{nineType} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="placeCheck.startTime!=null and placeCheck.startTime!=''"> |
| | | and date_format(jpc.create_time,'%Y-%m-%d') >= #{placeCheck.startTime} |
| | | </if> |
| | |
| | | <otherwise> |
| | | and |
| | | ( |
| | | jg.grid_code in ('') or jpag.community_code in in ('') |
| | | jg.grid_code in ('') or jpag.community_code in ('') |
| | | ) |
| | | </otherwise> |
| | | </choose> |