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);
|
}
|