whycxzp
2021-07-26 8c189b243bfbbacb2ab1ce79f4e1ff22708f125a
src/main/java/com/whyc/service/RectifierPowerCtrlService.java
@@ -10,6 +10,7 @@
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class RectifierPowerCtrlService {
@@ -22,6 +23,11 @@
        return new Response<IPage<RectifierPowerControl>>().set(1,rectifierPowerControlIPage);
    }
    public Response<List<RectifierPowerControl>> getAll() {
        List<RectifierPowerControl> rectifierPowerControlList = mapper.selectList(null);
        return new Response<List<RectifierPowerControl>>().set(1,rectifierPowerControlList);
    }
    public Response<RectifierPowerControl> getInfoByDevId(int devId) {
        QueryWrapper<RectifierPowerControl> query = Wrappers.query();
        query.eq("dev_id",devId);