2021与蓝度共同重构项目,服务端
Van333
2022-12-29 727a69f859060093e685582fa10e5de82dcc138a
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
39
40
41
42
43
44
45
package com.sandu.ximon.dao.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sandu.ximon.dao.bo.PlcBo;
import com.sandu.ximon.dao.domain.Plc;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * plc路灯表(Plc)表数据库访问层
 *
 * @author van
 * @since 2022-12-15 14:45:19
 */
@Mapper
public interface PlcMapper extends BaseMapper<Plc> {
 
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<Plc> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<Plc> entities);
 
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<Plc> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<Plc> entities);
 
    List<PlcBo> listPlc(Long clientId, String keyword);
    /**
     * 获取用户所拥有的灯杆上的路灯code
     *
     * @param userId
     * @return
     */
    List<String> listCode(Long userId, String keyword, String deviceCode);
}