Van333
2022-06-07 a42cacf1663d5744bab87fed467d5445d865b7e1
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
28
29
30
31
32
package api.dao;
 
import api.bean.LampEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Mapper
@Repository
public interface LampDao {
    int deleteByPrimaryKey(Long singlelampDataId);
 
    int insert(LampEntity record);
 
    int insertSelective(LampEntity record);
 
    LampEntity selectByPrimaryKey(Long singlelampDataId);
 
    int updateByPrimaryKeySelective(LampEntity record);
 
    int updateByPrimaryKey(LampEntity record);
 
    /**超级管理员查找全部*/
    List<LampEntity> selectAll();
    /**普通管理员按公司查找*/
    List<LampEntity> selectByCompany(Long userId);
    /**用户查找*/
    List<LampEntity> selectByUserId(Long userId);
    /**单个灯杆数据*/
    List<LampEntity> selectByStreetlightId(Long lightId);
}