Forráskód Böngészése

Merge remote-tracking branch 'origin/master'

xiahan 1 éve
szülő
commit
e70102b27a

+ 9 - 8
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ApsBlankOrderServiceImpl.java

@@ -580,6 +580,7 @@ public class ApsBlankOrderServiceImpl extends ServiceImpl<ApsBlankOrderDao, ApsB
                         ApsBlankOrderDo updateBlank = new ApsBlankOrderDo();
                         updateBlank.setId(order.getId());
                         updateBlank.setSchedulingstatus(TO_BE_PUBLISHED);
+                        updateBlank.setScheduledateend(endDate);
                         blankIds.add(updateBlank);
                         if (orderDeliveryTime.containsKey(blankOrder.getProductionorderid())) {
                             // 对比取最大值
@@ -1470,14 +1471,14 @@ public class ApsBlankOrderServiceImpl extends ServiceImpl<ApsBlankOrderDao, ApsB
                     if (outputWeight.compareTo(blankWeight) > 0) {
                         return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 输出单卷重不能超过坯料单卷重");
                     }
-                    //输出单卷重<单卷重(起)
-                    if (apsProcessOutputProductDo.getOutputonerollweigth().compareTo(apsProcessOutputProductDo.getOnerollweigthstart()) < 0) {
-                        return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 输出单卷重必须大于等于单卷重(起)");
-                    }
-                    //输出单卷重>单卷重(止)
-                    if (apsProcessOutputProductDo.getOutputonerollweigth().compareTo(apsProcessOutputProductDo.getOnerollweigthend()) > 0) {
-                        return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 输出单卷重必须小于等于单卷重(止)");
-                    }
+//                    //输出单卷重<单卷重(起)
+//                    if (apsProcessOutputProductDo.getOutputonerollweigth().compareTo(apsProcessOutputProductDo.getOnerollweigthstart()) < 0) {
+//                        return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 输出单卷重必须大于等于单卷重(起)");
+//                    }
+//                    //输出单卷重>单卷重(止)
+//                    if (apsProcessOutputProductDo.getOutputonerollweigth().compareTo(apsProcessOutputProductDo.getOnerollweigthend()) > 0) {
+//                        return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 输出单卷重必须小于等于单卷重(止)");
+//                    }
                 } else {//不存在对应的产品明细
                     return R.error("输出成品:" + apsProcessOutputProductDo.getProductname() + " 对应订单产品已修改或已删除,请重新选择订单产品");
                 }

+ 1 - 1
cx-aps/cx-aps-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ApsProductionOrderServiceImpl.java

@@ -193,7 +193,7 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
             return R.error("产品明细至少有一个");
         }
         for (ApsProductDetailVo apsProductDetailVo : apsProductDetailVoList) {
-            if (apsProductDetailVo.getTotalordercount().compareTo(apsProductDetailVo.getPlanout()) != 0) {
+            if (ObjectUtil.isEmpty(apsProductDetailVo.getTotalordercount()) || ObjectUtil.isEmpty(apsProductDetailVo.getPlanout()) || apsProductDetailVo.getTotalordercount().compareTo(apsProductDetailVo.getPlanout()) != 0) {
                 return R.error("订单产品 " + apsProductDetailVo.getInputmaterialdescription() + " 订单总数量与坯料计划输出总重量不一致");
             }
         }

+ 107 - 0
cx-aps/cx-aps-entity/src/main/java/com/rongwei/bsentity/domain/ApsProductionOrderDo.java

@@ -43,6 +43,7 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
     /**
      * 期望交货日期
      */
+    @Deprecated
     private Date deliverydate;
 
     /**
@@ -63,16 +64,19 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
     /**
      * 评审人
      */
+    @Deprecated
     private String auditor;
 
     /**
      * 评审人ID
      */
+    @Deprecated
     private String auditorid;
 
     /**
      * 评审时间
      */
+    @Deprecated
     private Date auditdate;
 
     /**
@@ -83,6 +87,7 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
     /**
      * 承诺交货日期
      */
+    @Deprecated
     private Date promisedeliverydate;
 
     /**
@@ -149,11 +154,13 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
     /**
      * 排程交货日期
      */
+    @Deprecated
     private Date scheduledeliverydate;
 
     /**
      * 实际交货日期
      */
+    @Deprecated
     private Date actualdeliverydate;
 
     /**
@@ -184,226 +191,271 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
     /**
      * 成分调整
      */
+    @Deprecated
     private String compositionchange;
 
     /**
      * 调整方案
      */
+    @Deprecated
     private String changeremark;
 
     /**
      * 坯料厚度(mm)
      */
+    @Deprecated
     private BigDecimal blamkthickness;
 
     /**
      * 坯料均质
      */
+    @Deprecated
     private String blankhomogenization;
 
     /**
      * 终轧温度
      */
+    @Deprecated
     private String finishtemperature;
 
     /**
      * 厚度公差(H)
      */
+    @Deprecated
     private String thicknesstolerance;
 
     /**
      * 宽度公差(W)
      */
+    @Deprecated
     private String widthtolerance;
 
     /**
      * 长度公差(L)
      */
+    @Deprecated
     private String lengthtolerance;
 
     /**
      * 折弯要求
      */
+    @Deprecated
     private String bendrequirement;
 
     /**
      * 接头(率)
      */
+    @Deprecated
     private String joint;
 
     /**
      * 刷水/达因值
      */
+    @Deprecated
     private String swabbing;
 
     /**
      * 抗拉强度
      */
+    @Deprecated
     private String tensilestrength;
 
     /**
      * 屈服强度
      */
+    @Deprecated
     private String yieldstrength;
 
     /**
      * 延伸率
      */
+    @Deprecated
     private String elongationrate;
 
     /**
      * 针孔
      */
+    @Deprecated
     private String pinhole;
 
     /**
      * 杯突
      */
+    @Deprecated
     private String cupping;
 
     /**
      * 制耳
      */
+    @Deprecated
     private String earing;
 
     /**
      * 管内芯直径(mm)
      */
+    @Deprecated
     private BigDecimal innercorediameter;
 
     /**
      * 管芯材质
      */
+    @Deprecated
     private String corematerial;
 
     /**
      * 正反面
      */
+    @Deprecated
     private String frontandbacksides;
 
     /**
      * 包装方式
      */
+    @Deprecated
     private String packagingmethod;
 
     /**
      * 标签
      */
+    @Deprecated
     private String tag;
 
     /**
      * 亮暗面
      */
+    @Deprecated
     private String surfacerequirement;
 
     /**
      * 是否过拉矫
      */
+    @Deprecated
     private String istensionlevelling;
 
     /**
      * 包装要求
      */
+    @Deprecated
     private String packagingrequirement;
 
     /**
      * 表面硬度
      */
+    @Deprecated
     private String surfacehardness;
 
     /**
      * 成品外径(mm)
      */
+    @Deprecated
     private String nomod;
 
     /**
      * 卷重要求
      */
+    @Deprecated
     private String rollweightrequirement;
 
     /**
      * 托盘要求
      */
+    @Deprecated
     private String pallentrequirements;
 
     /**
      * 其他订单执行标准
      */
+    @Deprecated
     private String otherorderstandard;
 
     /**
      * 技术评审人ID
      */
+    @Deprecated
     private String technicalreviewerid;
 
     /**
      * 技术评审人名称
      */
+    @Deprecated
     private String technicalreviewername;
 
     /**
      * 技术评审时间
      */
+    @Deprecated
     private Date technicalreviewdate;
 
     /**
      * 是否需要质量评审
      */
+    @Deprecated
     private String needqualityreview;
 
     /**
      * 是否需要部长评审
      */
+    @Deprecated
     private String needreview;
 
     /**
      * 质量评审人ID
      */
+    @Deprecated
     private String qualityreviewerid;
 
     /**
      * 质量评审人名称
      */
+    @Deprecated
     private String qualityreviewername;
 
     /**
      * 质量评审时间
      */
+    @Deprecated
     private Date qualityreviewdate;
 
     /**
      * 审核人ID
      */
+    @Deprecated
     private String reviewerid;
 
     /**
      * 审核人名称
      */
+    @Deprecated
     private String reviewername;
 
     /**
      * 审核时间
      */
+    @Deprecated
     private Date reviewdate;
 
     /**
      * 是否成熟工艺
      */
+    @Deprecated
     private String idmatureprocess;
 
     /**
      * 其他注意事项
      */
+    @Deprecated
     private String otherprecaution;
 
     /**
      * 最晚交货日期
      */
+    @Deprecated
     private Date enddate;
 
     /**
      * 计划交货日期
      */
+    @Deprecated
     private Date plandate;
 
     /**
@@ -427,6 +479,61 @@ public class ApsProductionOrderDo extends BaseDo implements Serializable {
      */
     private String materialstatus;
 
+    /**
+     * 原订单ID
+     */
+    private String oldorderid;
+
+    /**
+     * 附件
+     */
+    private String file;
+
+    /**
+     * 变更内容
+     */
+    private String changecomment;
+
+    /**
+     * 流程审核人ID
+     */
+    private String processreviewerid;
+
+    /**
+     * 流程审核人名称
+     */
+    private String processreviewername;
+
+    /**
+     * 是否需要其他工程师
+     */
+    private String isneedotherengineer;
+
+    /**
+     * 是否需要副总终审
+     */
+    private String isneedvicepresident;
+
+    /**
+     * 业务流程状态
+     */
+    private String processinststatus;
+
+    /**
+     * 是否提交技术评审
+     */
+    private String issubmittechnical;
+
+    /**
+     * 是否提交交期评审
+     */
+    private String issubmitdeliverytime;
+
+    /**
+     * 是否撤回
+     */
+    private String isback;
+
     @TableField(exist = false)
     private static final long serialVersionUID = 1L;
 }

+ 1 - 1
cx-aps/cx-aps-server/src/main/resources/bootstrap.yml

@@ -27,7 +27,7 @@ feign:
     config:
       default:
         connectTimeout: 5000
-        readTimeout: 1800000
+        readTimeout: 18000000
   sentinel:
     enabled: true
 jwt: