Просмотр исходного кода

aps-更新技术要求的产品名称字段接口修改

sucheng 2 недель назад
Родитель
Сommit
d040662c17

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

@@ -643,7 +643,7 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
                 ApsProductDetailDo oldProductDetailDo = apsProductDetailService.getById(nowId);
                 if (oldProductDetailDo != null) {
                     //修改了产品明细的总重量
-                    if (!oldProductDetailDo.getTotalordercount().equals(apsProductDetailDo.getTotalordercount())) {
+                    if (oldProductDetailDo.getTotalordercount() != apsProductDetailDo.getTotalordercount()) {
                         //更新技术要求
                         List<ApsProductionTechnicalRequirementDo> apsProductionTechnicalRequirementDos = apsProductionTechnicalRequirementService.list(new LambdaQueryWrapper<ApsProductionTechnicalRequirementDo>()
                                 .eq(ApsProductionTechnicalRequirementDo::getOrderid, apsProductDetailDo.getMainid())
@@ -672,7 +672,7 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
                             ApsProcessOutputProductDo needUpdate = new ApsProcessOutputProductDo();
                             needUpdate.setId(apsProcessOutputProductDo.getId());
                             //修改了 产品明细的总数量
-                            if (!oldProductDetailDo.getTotalordercount().equals(apsProductDetailDo.getTotalordercount())) {
+                            if (oldProductDetailDo.getTotalordercount() != apsProductDetailDo.getTotalordercount()) {
                                 if (apsProductDetailDo.getTotalordercount() != null) {
                                     needUpdate.setOrdertatal(apsProductDetailDo.getTotalordercount());
                                 } else {