From 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 06 十二月 2023 08:41:32 +0800 Subject: [PATCH] bug --- server/src/main/java/doumeemes/service/ext/impl/WorkorderExtServiceImpl.java | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/server/src/main/java/doumeemes/service/ext/impl/WorkorderExtServiceImpl.java b/server/src/main/java/doumeemes/service/ext/impl/WorkorderExtServiceImpl.java index 78cc8f8..33a9716 100644 --- a/server/src/main/java/doumeemes/service/ext/impl/WorkorderExtServiceImpl.java +++ b/server/src/main/java/doumeemes/service/ext/impl/WorkorderExtServiceImpl.java @@ -235,9 +235,9 @@ .eq("MATERIAL_ID",w.getMaterialId()) .eq("DEPART_ID",w.getDepartId()) .eq("DELETED",Constants.ZERO) - .eq("STATUS",Constants.ONE) +// .eq("STATUS",Constants.ONE) ); - w.setPapercode(b.getPapercode()); + w.setPapercode(b!=null ?b.getPapercode():null); /* RouteProcedure currentRouteProcedure = routeProcedureExtMapper.selectOne(new QueryWrapper<RouteProcedure>() .eq("ROUTE_ID",b.getRouteId()) @@ -370,7 +370,7 @@ rParam.setPlanId(pageWrap.getId()); rParam.setDeleted(Constants.ZERO); //宸插畬宸ユ暟閲� -// plan.setDoneNum(0); + plan.setDoneNum(0); //宸插垎閰嶆暟閲� plan.setDistributNum(0); //鏌ヨ鍏ㄩ儴鎶曟枡鍜屼骇鍑� @@ -407,8 +407,8 @@ tModle.setUrgent(w.getUrgent()); tModle.setUpdateTime(w.getUpdateTime()); tModle.setRemark(w.getRemark()); - tModle.setQualifiedNum(0); - tModle.setUnqualifiedNum(0); + tModle.setQualifiedNum(w.getQualifiedNum()); + tModle.setUnqualifiedNum(w.getUnqualifiedNum()); tModle.setProUserId(w.getProUserId()); tModle.setProUserName(w.getProUserName()); tModle.setProUserName(w.getProUserName()); @@ -450,13 +450,17 @@ //浜у嚭鏃ユ湡 tModle.setProduceDate(r.getCreateTime()); } - if(Constants.equalsInteger(r.getDoneType(),Constants.ZERO)){ +// if(Constants.equalsInteger(r.getDoneType(),Constants.ZERO)){ //濡傛灉鏄悎鏍间骇鍑� - tModle.setQualifiedNum(tModle.getQualifiedNum()+Constants.formatBigdecimal(r.getNum()).intValue()); - }else{ +// tModle.setQualifiedNum(tModle.getQualifiedNum()+Constants.formatBigdecimal(r.getNum()).intValue()); +// }else{ //濡傛灉鏄笉鑹搧 - tModle.setUnqualifiedNum(tModle.getUnqualifiedNum()+Constants.formatBigdecimal(r.getNum()).intValue()); - } +// tModle.setUnqualifiedNum(tModle.getUnqualifiedNum()+Constants.formatBigdecimal(r.getNum()).intValue()); +// } + //濡傛灉鏄悎鏍间骇鍑� + tModle.setQualifiedNum(tModle.getQualifiedNum()); + //濡傛灉鏄笉鑹搧 + tModle.setUnqualifiedNum(tModle.getUnqualifiedNum()); } } } @@ -857,7 +861,7 @@ if(!Objects.isNull(plan.getWorkPlansId())){ //鏇存柊涓昏鍗曟暟鎹俊鎭� if(plansMapper.selectCount(new QueryWrapper<Plans>() - .eq("STATUS",Constants.PLAN_STATUS.done) + .in("STATUS",0,1,4,5) .eq("DELETED",Constants.ZERO) .ne("id",p.getId()) .eq("WORK_PLANS_ID",plan.getWorkPlansId()))<=Constants.ZERO){ @@ -998,7 +1002,7 @@ if(!Objects.isNull(plan.getWorkPlansId())){ //鏇存柊涓昏鍗曟暟鎹俊鎭� if(plansMapper.selectCount(new QueryWrapper<Plans>() - .eq("STATUS",Constants.PLAN_STATUS.done) + .in("STATUS",0,1,4,5) .eq("DELETED",Constants.ZERO) .ne("id",p.getId()) .eq("WORK_PLANS_ID",plan.getWorkPlansId()))<=Constants.ZERO){ -- Gitblit v1.9.3