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);
|
}
|
}
|