package com.whyc.service;
|
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.PwrappAcinfMapper;
|
import com.whyc.pojo.PwrappAcinf;
|
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?"更新成功!":"更新失败!");
|
}
|
}
|