| | |
| | | jbpr.*, |
| | | br.town_name as townName, |
| | | br.name as communityName, |
| | | jpag.pcs_name pcsName |
| | | jpag.pcs_name pcsName, |
| | | bd.dept_name |
| | | from jczz_backblast_pub_record jbpr |
| | | LEFT JOIN jczz_grid jg on jg.grid_code = jbpr.grid_code and jg.is_deleted = 0 |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jbpr.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0 |
| | | LEFT JOIN blade_region br on br.code = jpag.community_code |
| | | LEFT JOIN blade_user bu ON bu.id = jbpr.create_user |
| | | LEFT JOIN blade_dept bd on bd.id = bu.dept_id |
| | | where jbpr.is_deleted = 0 |
| | | <if test="backblastPubRecord.townName != null and backblastPubRecord.townName != ''"> |
| | | and br.town_name like concat('%',#{backblastPubRecord.townName},'%') |
| | |
| | | <if test="backblastPubRecord.address != null and backblastPubRecord.address != ''"> |
| | | and jbpr.address like concat('%',#{backblastPubRecord.address},'%') |
| | | </if> |
| | | <if test="backblastPubRecord.deptName != null and backblastPubRecord.deptName != ''"> |
| | | and bd.dept_name like concat('%',#{backblastPubRecord.deptName},'%') |
| | | </if> |
| | | <if test="backblastPubRecord.pubContent != null and backblastPubRecord.pubContent != ''"> |
| | | and jbpr.pub_content like concat('%',#{backblastPubRecord.pubContent},'%') |
| | | </if> |