From 062822b57a29a767f2fbbd7cc1a8b1f6417cf966 Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期五, 08 三月 2024 19:37:17 +0800 Subject: [PATCH] 修改工单管理、流程管理BUG --- north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java index c055460..28f7922 100644 --- a/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java +++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/ProductionSchedulingService.java @@ -23,8 +23,8 @@ @Autowired ProductionSchedulingMapper productionSchedulingMapper; - //甯︽椂闂存煡璇� - public Map<String, Object> SelectSchedulingSv(String selectTime1, String selectTime2, String orderId,String processes, Integer state, ProductionScheduling productionScheduling ) { + //鏈帓浜ф煡璇� + public Map<String, Object> selectSchedulingSv(String selectTime1, String selectTime2, String orderId,String processes, Integer state, ProductionScheduling productionScheduling ) { Map<String, Object> map = new HashMap<>(); if(orderId.equals("null")){ orderId=""; @@ -35,10 +35,10 @@ } if (state==2){//宸叉帓浜� - map.put("data", productionSchedulingMapper.SelectOkSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling)); + map.put("data", productionSchedulingMapper.selectOkSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling)); }else if (state==1){//鏈帓浜� - map.put("data", productionSchedulingMapper.SelectNoSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling)); + map.put("data", productionSchedulingMapper.selectNoSchedulingMp(selectTime1, selectTime2,orderId,processes, productionScheduling)); } @@ -50,6 +50,7 @@ public Map<String, Object> selectLastScheduling(String selectTime1, String selectTime2,ProductionScheduling productionScheduling ) { Map<String, Object> map = new HashMap<>(); map.put("data", productionSchedulingMapper.selectLastSchedulingMp(selectTime1, selectTime2, productionScheduling)); + map.put("process", productionSchedulingMapper.selectProcess()); return map; } @@ -60,7 +61,7 @@ return map; } - public Boolean AddSchedulingSv(Map<String, Object> object) { + public Boolean addSchedulingSv(Map<String, Object> object) { String userName = ""; if (object.get("userName") != null) { userName = object.get("userName").toString(); @@ -82,6 +83,9 @@ List<ProductionScheduling> schedulinglist = JSONArray.parseArray(JSONObject.toJSONString(object.get("scheduling")), ProductionScheduling.class); if (!schedulinglist.isEmpty()) { for (ProductionScheduling productionScheduling : schedulinglist) { + //鏌ヨ宸叉帓浜у伐搴忔暟閲� + Integer num = productionSchedulingMapper.selectNumberMp(productionScheduling.getOrderId(),productionScheduling.getOrderNumber(),processes); + productionSchedulingMapper.insertSelective(schedulingId,productionScheduling.getOrderId(),productionScheduling.getOrderNumber(),processes,productionScheduling.getSchedulingQuantity(),productionScheduling.getScheduledStartTime(),productionScheduling.getPlanEndTime(),productionScheduling.getNotes()); // System.out.println(productionScheduling.getOrderNumber()+"***"+productionScheduling.getOrderId()); } @@ -109,7 +113,7 @@ } } - public boolean ExamineSchedulingSv(Map<String, Object> object) { + public boolean examineSchedulingSv(Map<String, Object> object) { String userName = ""; if (object.get("userName") != null) { userName = object.get("userName").toString(); @@ -118,7 +122,7 @@ if (!schedulinglist.isEmpty()) { for (ProductionScheduling productionScheduling : schedulinglist) { - productionSchedulingMapper.ExamineSchedulingMp(productionScheduling.getSchedulingId(),userName); + productionSchedulingMapper.examineSchedulingMp(productionScheduling.getSchedulingId(),userName); // System.out.println(productionScheduling.getOrderNumber()+"***"+productionScheduling.getOrderId()); } return true; -- Gitblit v1.8.0