fg电池监控平台的达梦数据库版本
whycxzp
2024-11-12 92ba7a968c67e8c8a64efea1759929649189f390
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
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.BattDischargePlanLogMapper;
import com.whyc.pojo.BattDischargePlanLog;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class BattDischargePlanLogService {
 
    @Resource
    private BattDischargePlanLogMapper mapper;
 
    public void addList(List<BattDischargePlanLog> logList) {
        mapper.insertBatchSomeColumn(logList);
    }
 
    public Response getLogListByPlanId(int num) {
        List<BattDischargePlanLog> logList = mapper.getList(num);
        return new Response().set(1,logList);
    }
}