From 9ae429f52f9909945ab4bf424bc3facfcdb5300c Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 5 Nov 2024 11:08:19 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=B7=A5=E5=8D=95=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=94=A8=E6=88=B7=E8=81=9A=E5=90=88=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ProdPlanExecuteUserMapper.java | 8 ++++ .../impl/ProdPlanExecuteUserServiceImpl.java | 2 +- .../mapper/mes/prod/ProdOrderDetailMapper.xml | 1 + .../mapper/mes/prod/ProdOrderInfoMapper.xml | 1 + .../mes/prod/ProdPlanExecuteUserMapper.xml | 45 +++++++++++++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) diff --git a/os-mes/src/main/java/com/os/mes/prod/mapper/ProdPlanExecuteUserMapper.java b/os-mes/src/main/java/com/os/mes/prod/mapper/ProdPlanExecuteUserMapper.java index 9d1e4e9..65f3d7d 100644 --- a/os-mes/src/main/java/com/os/mes/prod/mapper/ProdPlanExecuteUserMapper.java +++ b/os-mes/src/main/java/com/os/mes/prod/mapper/ProdPlanExecuteUserMapper.java @@ -58,4 +58,12 @@ public interface ProdPlanExecuteUserMapper { * @return 结果 */ public int deleteProdPlanExecuteUserByObjIds(Long[] objIds); + + /** + * 查询生产工单聚合执行用户列表 + * + * @param prodPlanExecuteUser 生产工单执行用户 + * @return 生产工单聚合执行用户集合 + */ + List selectAggProdPlanExecuteUserList(ProdPlanExecuteUser prodPlanExecuteUser); } diff --git a/os-mes/src/main/java/com/os/mes/prod/service/impl/ProdPlanExecuteUserServiceImpl.java b/os-mes/src/main/java/com/os/mes/prod/service/impl/ProdPlanExecuteUserServiceImpl.java index d564a0e..e1fc347 100644 --- a/os-mes/src/main/java/com/os/mes/prod/service/impl/ProdPlanExecuteUserServiceImpl.java +++ b/os-mes/src/main/java/com/os/mes/prod/service/impl/ProdPlanExecuteUserServiceImpl.java @@ -38,7 +38,7 @@ public class ProdPlanExecuteUserServiceImpl implements IProdPlanExecuteUserServi */ @Override public List selectProdPlanExecuteUserList(ProdPlanExecuteUser prodPlanExecuteUser) { - return prodPlanExecuteUserMapper.selectProdPlanExecuteUserList(prodPlanExecuteUser); + return prodPlanExecuteUserMapper.selectAggProdPlanExecuteUserList(prodPlanExecuteUser); } /** diff --git a/os-mes/src/main/resources/mapper/mes/prod/ProdOrderDetailMapper.xml b/os-mes/src/main/resources/mapper/mes/prod/ProdOrderDetailMapper.xml index 2c32d7b..845f06d 100644 --- a/os-mes/src/main/resources/mapper/mes/prod/ProdOrderDetailMapper.xml +++ b/os-mes/src/main/resources/mapper/mes/prod/ProdOrderDetailMapper.xml @@ -186,6 +186,7 @@ and EdgeBandingTotalArea = #{EdgeBandingTotalArea} and WireropeBeltTotalArea = #{WireropeBeltTotalArea} + order by SeqNo desc + + insert into prod_plan_execute_user