whycxzp
2023-08-16 618fd4fe93cb0901011c59f05a4a68376b378fe2
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
package com.whyc.service;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper;
import com.whyc.dto.Response;
import com.whyc.mapper.PwrappAcinfMapper;
import com.whyc.pojo.PwrappAcinf;
import com.whyc.pojo.PwrappDcinf;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
 
@Service
public class PwrappAcinfService {
    @Resource
    private PwrappAcinfMapper mapper;
 
    //更新电源ac设备设置
    public Response updatePowerACConfigById(PwrappAcinf acinf) {
        boolean bl=mapper.updatePowerACConfigById(acinf);
        return new Response().set(1,bl,bl==true?"更新成功!":"更新失败!");
    }
    //读取电源ac设备设置
    public Response getPowerACConfigById(int powerDeviceId) {
        PwrappAcinf acinf=mapper.getPowerACConfigById(powerDeviceId);
        return new Response().set(1,acinf);
    }
}