package com.whyc.service;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.PwrappAcdcinfMapper;
|
import com.whyc.pojo.PwrappAcdcinf;
|
import com.whyc.pojo.PwrappDcinf;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class PwrappAcdcinfService {
|
|
@Resource
|
private PwrappAcdcinfMapper mapper;
|
|
//更新电源acdc设备设置
|
public Response updatePowerACDCConfigById(PwrappAcdcinf acdcinf) {
|
boolean bl=mapper.updatePowerACDCConfigById(acdcinf);
|
return new Response().set(1,bl,bl==true?"更新成功!":"更新失败!");
|
}
|
//读取电源acdc设备设置
|
public Response getPowerACDCConfigById(int powerDeviceId) {
|
PwrappAcdcinf acdcinf=mapper.getPowerACDCConfigById(powerDeviceId);
|
return new Response().set(1,acdcinf);
|
}
|
}
|