From 577322e4c15aa5528ddc3148a30a04b506943c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9B=AA=E4=BC=9F?= Date: Thu, 21 Nov 2024 16:12:51 +0800 Subject: [PATCH] =?UTF-8?q?2,3,5=E6=A5=BC=E7=9C=8B=E6=9D=BF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=8F=8A5=E6=A5=BC?= =?UTF-8?q?=E4=BB=93=E5=82=A8=E8=B0=83=E5=BA=A6=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E5=BA=93=E4=BD=8D=E5=8D=A0=E7=94=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/board/domain/DmsRealtimeStatusHistory.java | 13 +++++++++++++ .../mes/board/service/ThirdMesBorderService.java | 2 -- .../service/impl/ThirdMesBorderServiceImpl.java | 6 +++--- .../com/hw/mes/mapper/MesProductOrderMapper.java | 2 ++ .../resources/mapper/mes/MesProductOrderMapper.xml | 6 +++--- .../board/controller/FifthWmsBorderController.java | 14 ++++++++++++++ .../java/com/hw/wms/board/domain/RawAmount.java | 13 +++++++++++++ .../wms/board/service/FifthWmsBorderService.java | 4 ++++ .../wms/board/service/ThirdWmsBorderService.java | 3 +++ .../service/impl/FifthWmsBoardServiceImpl.java | 13 +++++++++++++ .../service/impl/SecondWmsBoardServiceImpl.java | 8 ++++++-- .../service/impl/ThirdWmsBorderServiceImpl.java | 5 ++++- .../com/hw/wms/mapper/WmsBaseLocationMapper.java | 4 ++++ .../hw/wms/mapper/WmsProductOutstockMapper.java | 2 ++ .../resources/mapper/wms/WmsBaseLocationMapper.xml | 11 +++++++++++ .../mapper/wms/WmsProductOutstockMapper.xml | 6 ++++-- 16 files changed, 99 insertions(+), 13 deletions(-) create mode 100644 hw-modules/hw-wms/src/main/java/com/hw/wms/board/domain/RawAmount.java diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/domain/DmsRealtimeStatusHistory.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/domain/DmsRealtimeStatusHistory.java index b7980eb..db7119c 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/domain/DmsRealtimeStatusHistory.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/domain/DmsRealtimeStatusHistory.java @@ -45,7 +45,13 @@ public class DmsRealtimeStatusHistory implements Serializable { private Date syncTime; private Date hour; private Long timeCount; + public Long getTimeCount() { + return timeCount; + } + public void setTimeCount(Long timeCount) { + this.timeCount = timeCount; + } public Long getHistoryId() { return historyId; @@ -118,6 +124,13 @@ public class DmsRealtimeStatusHistory implements Serializable { public void setSyncTime(Date syncTime) { this.syncTime = syncTime; } + public Date getHour() { + return hour; + } + + public void setHour(Date hour) { + this.hour = hour; + } } diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/ThirdMesBorderService.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/ThirdMesBorderService.java index fd299bb..9daabc6 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/ThirdMesBorderService.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/ThirdMesBorderService.java @@ -1,11 +1,9 @@ package com.hw.mes.board.service; -import com.hw.common.core.web.domain.AjaxResult; import com.hw.mes.board.domain.RawAmount; import com.hw.mes.board.domain.RecordIotenvInstant; import com.hw.mes.domain.MesProductOrder; -import java.math.BigDecimal; import java.util.List; import java.util.Map; diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/impl/ThirdMesBorderServiceImpl.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/impl/ThirdMesBorderServiceImpl.java index dcdcdb7..5dbea4d 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/impl/ThirdMesBorderServiceImpl.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/board/service/impl/ThirdMesBorderServiceImpl.java @@ -5,14 +5,13 @@ import com.hw.mes.board.domain.RecordIotenvInstant; import com.hw.mes.board.service.ThirdMesBorderService; import com.hw.mes.domain.MesProductOrder; import com.hw.mes.mapper.MesProductOrderMapper; -import com.hw.wms.api.domain.vo.WmsRawStockVo; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Map; - +@Service public class ThirdMesBorderServiceImpl implements ThirdMesBorderService { @Autowired private MesProductOrderMapper mesProductOrderMapper; @@ -39,6 +38,7 @@ public class ThirdMesBorderServiceImpl implements ThirdMesBorderService { rawAmount.setInStock(map.getInStock()); if (map.getMaterialId().equals(decimalMap.getMaterialId())){ rawAmount.setOutStock(decimalMap.getOutStock()); + rawAmounts.add(rawAmount); } } } diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/mapper/MesProductOrderMapper.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/mapper/MesProductOrderMapper.java index 424dde6..3c1cb85 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/mapper/MesProductOrderMapper.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/mapper/MesProductOrderMapper.java @@ -9,6 +9,7 @@ import com.hw.mes.board.domain.DmsRealtimeStatusHistory; import com.hw.mes.board.domain.RawAmount; import com.hw.mes.board.domain.RecordIotenvInstant; import com.hw.mes.domain.MesProductOrder; +import org.apache.ibatis.annotations.Mapper; /** * 生产工单Mapper接口 @@ -16,6 +17,7 @@ import com.hw.mes.domain.MesProductOrder; * @author Yinq * @date 2024-02-20 */ +@Mapper public interface MesProductOrderMapper { /** diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml index 9b6d70c..17bdc59 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesProductOrderMapper.xml @@ -416,19 +416,19 @@ wms_product_instock where begin_time > now() -interval 7 day and warehouse_id = 231 - group by hour order by hour desc + group by day order by day desc + + diff --git a/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsProductOutstockMapper.xml b/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsProductOutstockMapper.xml index 565238e..42e29d5 100644 --- a/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsProductOutstockMapper.xml +++ b/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsProductOutstockMapper.xml @@ -400,14 +400,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + update wms_product_outstock