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