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 selectAll(); /**普通管理员按公司查找*/ List selectByCompany(Long userId); /**用户查找*/ List selectByUserId(Long userId); /**单个灯杆数据*/ List selectByStreetlightId(Long lightId); }