From 3bf8bf5d77a633e7541b4815d9a64aed9058654e Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Thu, 8 May 2025 15:20:45 +0800 Subject: [PATCH] 20250508 --- .../controller/DailyPlanController.java | 5 + .../service/ReworkRecordService.java | 3 + .../service/impl/ReworkRecordServiceImpl.java | 6 ++ .../mapper/production/DailyPlanMapper.xml | 94 +++++++++++-------- .../mapper/production/ReworkRecordMapper.xml | 26 +++-- .../mapper/taskmanage/TaskDatailDao.xml | 14 +-- 6 files changed, 93 insertions(+), 55 deletions(-) diff --git a/src/main/java/com/heai/modules/production/controller/DailyPlanController.java b/src/main/java/com/heai/modules/production/controller/DailyPlanController.java index 3ceab27..66afab4 100644 --- a/src/main/java/com/heai/modules/production/controller/DailyPlanController.java +++ b/src/main/java/com/heai/modules/production/controller/DailyPlanController.java @@ -1144,4 +1144,9 @@ public class DailyPlanController { reworkRecordService.cancelRework(reworkRecord); return R.ok("操作成功"); } + @PostMapping("/operator") + public R queryOperator(@RequestBody ReworkRecord reworkRecord){ + List list = reworkRecordService.queryOperator(reworkRecord); + return R.ok().put("rows",list); + } } diff --git a/src/main/java/com/heai/modules/production/service/ReworkRecordService.java b/src/main/java/com/heai/modules/production/service/ReworkRecordService.java index 4462c97..c591367 100644 --- a/src/main/java/com/heai/modules/production/service/ReworkRecordService.java +++ b/src/main/java/com/heai/modules/production/service/ReworkRecordService.java @@ -1,6 +1,7 @@ package com.heai.modules.production.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.heai.modules.production.entity.OperatorData; import com.heai.modules.production.entity.ReworkRecord; import com.heai.modules.production.entity.ReworkRecordData; @@ -28,4 +29,6 @@ public interface ReworkRecordService extends IService { void removeRework(ReworkRecord reworkRecord); void cancelRework(ReworkRecord reworkRecord); + + List queryOperator(ReworkRecord reworkRecord); } diff --git a/src/main/java/com/heai/modules/production/service/impl/ReworkRecordServiceImpl.java b/src/main/java/com/heai/modules/production/service/impl/ReworkRecordServiceImpl.java index 4ce1c8c..43206a9 100644 --- a/src/main/java/com/heai/modules/production/service/impl/ReworkRecordServiceImpl.java +++ b/src/main/java/com/heai/modules/production/service/impl/ReworkRecordServiceImpl.java @@ -20,6 +20,7 @@ import org.springframework.util.StringUtils; import java.math.BigDecimal; import java.math.RoundingMode; +import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Objects; @@ -126,4 +127,9 @@ public class ReworkRecordServiceImpl extends ServiceImpl queryOperator(ReworkRecord reworkRecord) { + return baseMapper.queryOperator(reworkRecord); + } } diff --git a/src/main/resources/mapper/production/DailyPlanMapper.xml b/src/main/resources/mapper/production/DailyPlanMapper.xml index 8a574af..3a219e4 100644 --- a/src/main/resources/mapper/production/DailyPlanMapper.xml +++ b/src/main/resources/mapper/production/DailyPlanMapper.xml @@ -307,69 +307,87 @@ a.PlanStartDate desc,s.itemNo update SOTaskOrderHeader set CombineTime = GetDate() where site=#{site} and orderNo=#{orderNo} diff --git a/src/main/resources/mapper/production/ReworkRecordMapper.xml b/src/main/resources/mapper/production/ReworkRecordMapper.xml index dcf1888..44bfc85 100644 --- a/src/main/resources/mapper/production/ReworkRecordMapper.xml +++ b/src/main/resources/mapper/production/ReworkRecordMapper.xml @@ -147,17 +147,23 @@ diff --git a/src/main/resources/mapper/taskmanage/TaskDatailDao.xml b/src/main/resources/mapper/taskmanage/TaskDatailDao.xml index 0717841..159a723 100644 --- a/src/main/resources/mapper/taskmanage/TaskDatailDao.xml +++ b/src/main/resources/mapper/taskmanage/TaskDatailDao.xml @@ -229,14 +229,14 @@ T.BatchNo, - max(T.LatestOutDate) as LatestOutDate, - max(T.LatestInDate) as LatestInDate, - max(T.ActiveDate) as ActiveDate, - min(T.ManufactureDate) as ManufactureDate, - max(T.ExpiredDate) as ExpiredDate, - max(T.DemandPartnerType) as DemandPartnerType, - max(T.DemandPartnerName) as DemandPartnerName, + max(T.LatestOutDate) as LatestOutDate, + max(T.LatestInDate) as LatestInDate, + max(T.ActiveDate) as ActiveDate, + min(T.ManufactureDate) as ManufactureDate, + max(T.ExpiredDate) as ExpiredDate, + max(T.DemandPartnerType) as DemandPartnerType, + max(T.DemandPartnerName) as DemandPartnerName, min(T.FirstInDate) as FirstInDate, sum(Round(T.QtyOnHand, 3)) as QtyOnHand from InventoryStock as T,