DevicePowerMapper.java
1.13 KB
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
33
34
35
36
37
38
package cn.com.glsx.app.modules.mapper;
import cn.com.glsx.app.modules.entity.DevicePower;
import cn.com.glsx.app.modules.model.domain.DevicePowerDO;
import cn.com.glsx.app.modules.model.DevicePowerQueryBO;
import com.github.pagehelper.Page;
import com.glsx.plat.common.annotation.DataPerm;
import com.glsx.plat.common.annotation.DataPermShare;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface DevicePowerMapper extends CommonBaseMapper<DevicePower> {
/**
* 根据设备号获取
*
* @param sn 设备号
* @param vdId 车辆设备绑定关系
* @return 电量信息
*/
DevicePower selectBySn(@Param("sn") String sn, @Param("vdId") Long vdId);
/**
* 获取绑定中的设备电量
* @param query 查询条件
* @return 绑定中的设备电量
*/
@DataPerm(permTable = "tv", showSql = true)
@DataPermShare(linkTable = "t_vehicle", showSql = true)
Page<DevicePowerDO> listBindDevicePowerByCondition(DevicePowerQueryBO query);
}