| | |
| | | "u.name userName,u.type as userType\n" + |
| | | "FROM\n" + |
| | | "com_ops_house d\n" + |
| | | "JOIN sys_user u ON d.user_id = u.user_id\n" + |
| | | " LEFT JOIN sys_user u ON d.user_id = u.user_id\n" + |
| | | " LEFT JOIN com_mng_struct_area sa ON d.house_community_id = sa.id \n" + |
| | | "where 1=1 " + |
| | | "<if test='pageComOpsHouseDTO.communityId != null '>" + |
| | | "AND d.community_id=#{pageComOpsHouseDTO.communityId} \n" + |
| | | "AND ( d.community_id=#{pageComOpsHouseDTO.communityId} or sa.community_id=#{pageComOpsHouseDTO.communityId} )\n" + |
| | | " </if> " + |
| | | |
| | | |
| | |
| | | "AND d.status in (1,3) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.houseCommunityName != null and pageComOpsHouseDTO.houseCommunityName.trim() != ""'>" + |
| | | " and d.`house_community_name` LIKE concat( #{pageComOpsHouseDTO.houseCommunityName}, '%' ) \n" + |
| | | " and (" + |
| | | " d.`house_community_name` LIKE concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + |
| | | " or d.title like concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + |
| | | " ) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.mobile != null and pageComOpsHouseDTO.mobile.trim() != ""'>" + |
| | | " and d.`mobile` LIKE concat( #{pageComOpsHouseDTO.mobile}, '%' ) \n" + |