| | |
| | | import com.panzhihua.common.model.dtos.community.PageComOpsHouseDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.community.ComOpsHouseVO; |
| | | import com.panzhihua.common.model.vos.community.ComActVO; |
| | | import com.panzhihua.service_community.model.dos.ComOpsHouseDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | **/ |
| | | @Mapper |
| | | public interface ComOpsHouseDAO extends BaseMapper<ComOpsHouseDO> { |
| | | @Select("select name,address from com_act where community_id=#{communityId}") |
| | | ComActVO selectCommunity(Long communityId); |
| | | |
| | | @Select("select type,name,phone,image_url from sys_user where user_id=#{userId}") |
| | | LoginUserInfoVO selectUserByUserId(Long userId); |
| | | |
| | | @Select("select user_id from sys_user where user_id=#{name} limit 1") |
| | | Long selectUserIdByName(String name); |
| | | |
| | | @Select("<script> " + |
| | | "SELECT d.*,\n" + |
| | | "u.name userName\n" + |
| | | "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" + |
| | |
| | | " </if> " + |
| | | |
| | | |
| | | "<if test='pageComOpsHouseDTO.userId != null '>" + |
| | | "AND d.user_id=#{pageComOpsHouseDTO.userId} \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.orient != null '>" + |
| | | "AND d.orient=#{pageComOpsHouseDTO.orient} \n" + |
| | | " </if> " + |
| | |
| | | "<if test='pageComOpsHouseDTO.houseCommunityId != null '>" + |
| | | "AND d.house_community_id=#{pageComOpsHouseDTO.houseCommunityId} \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.status != null '>" + |
| | | "<if test='pageComOpsHouseDTO.status != null and pageComOpsHouseDTO.status !=4 '>" + |
| | | "AND d.status=#{pageComOpsHouseDTO.status} \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.status != null and pageComOpsHouseDTO.status ==4 '>" + |
| | | "AND d.status in (0,2) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.houseCommunityName != null and pageComOpsHouseDTO.houseCommunityName.trim() != ""'>" + |
| | | " and d.`house_community_name` LIKE concat( #{pageComOpsHouseDTO.houseCommunityName}, '%' ) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.mobile != null and pageComOpsHouseDTO.mobile.trim() != ""'>" + |
| | | " and d.`mobile` LIKE concat( #{pageComOpsHouseDTO.mobile}, '%' ) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.begin != null '>" + |
| | | "AND d.create_at BETWEEN #{pageComOpsHouseDTO.begin} \n" + |
| | | "AND #{pageComOpsHouseDTO.end} \n" + |