From 06168444039014f8501060fd43033dcc7cee14a5 Mon Sep 17 00:00:00 2001 From: lgh Date: Tue, 27 Dec 2022 20:08:59 +0800 Subject: [PATCH] update: --- .../empty/controller/ScreenController.java | 3 +- .../java/com/mt/wms/empty/vo/CountEleVo.java | 2 +- .../src/main/resources/mapper/EleMapper.xml | 39 +++++++++++-------- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ScreenController.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ScreenController.java index faf690a..f708839 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ScreenController.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ScreenController.java @@ -90,7 +90,8 @@ public class ScreenController extends BaseController { } return successful(kilnInfoList); } - + @PostMapping(value = "getEleList") + @ApiOperation(value = "获取加工炉最近十条加工任务电能消耗信息") public R countEleByKiln(@Validated @RequestBody IdParam idParam) { return eleService.list(idParam.getId()); } diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/vo/CountEleVo.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/vo/CountEleVo.java index 4d16970..24273d4 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/vo/CountEleVo.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/vo/CountEleVo.java @@ -28,7 +28,7 @@ public class CountEleVo { * 消耗值 */ @ApiModelProperty(value = "消耗值", example = "0.0") - private Float value; + private Float totalBat; /** * 名称 diff --git a/6.program/wms-empty/src/main/resources/mapper/EleMapper.xml b/6.program/wms-empty/src/main/resources/mapper/EleMapper.xml index 22756b2..013292f 100644 --- a/6.program/wms-empty/src/main/resources/mapper/EleMapper.xml +++ b/6.program/wms-empty/src/main/resources/mapper/EleMapper.xml @@ -11,28 +11,33 @@ - +