| | |
| | | tr.community_name as communityName, |
| | | tre.name as regionName, |
| | | tr.address_detail as addressDetail, |
| | | tau.name as appUserName, |
| | | tau.phone as appUserPhone, |
| | | tr.username as appUserName, |
| | | tr.phone as appUserPhone, |
| | | tr.create_time as createTime, |
| | | tr.status as status |
| | | from |
| | | t_report tr |
| | | left join t_app_user tau on tr.app_user_id = tau.id |
| | | left join t_region tre on tr.region_id = tre.id |
| | | where |
| | | tr.del_flag=0 |
| | |
| | | and tre.id =#{dto.regionId} |
| | | </if> |
| | | <if test="dto.appUserName!=null and ''!=dto.appUserName"> |
| | | and tau.name like concat('%',#{dto.appUserName},'%') |
| | | and tr.username like concat('%',#{dto.appUserName},'%') |
| | | </if> |
| | | <if test="dto.appUserPhone!=null and ''!=dto.appUserPhone"> |
| | | and tau.phone like concat('%',#{dto.appUserPhone},'%') |
| | | and tr.phone like concat('%',#{dto.appUserPhone},'%') |
| | | </if> |
| | | <if test="dto.status!=null"> |
| | | and tr.status =#{dto.status} |
| | | </if> |
| | | |
| | | order by tr.create_time desc |
| | | </select> |
| | | </mapper> |