mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.panzhihua.service_community.dao;
 
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panzhihua.common.model.vos.LoginUserInfoVO;
import com.panzhihua.service_community.model.dos.ComMngStructHouseUserDO;
 
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 房屋人员关系
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-15 15:13
 **/
@Mapper
public interface ComMngStructHouseUserDAO extends BaseMapper<ComMngStructHouseUserDO> {
    @Select("select u.name,u.phone from com_mng_struct_house_user h  join sys_user u on h.user_id=u.user_id and h.house_code=#{houseCode1}")
    List<LoginUserInfoVO> selectListHouseUser(String houseCode1);
 
    @Select("SELECT\n" + "\tp.house_code ,\n" + "\tp.is_rent\n" + "FROM\n" + "\tsys_user_input p \n" + "WHERE\n"
        + "\tp.id =#{userId}")
    Map<String, Object> selectHouseCode(Long userId);
}