From 165b3b4cba063f86c35ab1262ae3f4b4ed668ab2 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 4 Sep 2023 13:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BB=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8D=95=E5=85=83=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/basic/BasicBackUpdateProductService.java | 4 +++- .../glxp/api/service/basic/BasicUpdateProductService.java | 7 +++++++ .../com/glxp/api/service/basic/UdiContrastService.java | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/service/basic/BasicBackUpdateProductService.java b/src/main/java/com/glxp/api/service/basic/BasicBackUpdateProductService.java index b279b8b3..f6af8c3b 100644 --- a/src/main/java/com/glxp/api/service/basic/BasicBackUpdateProductService.java +++ b/src/main/java/com/glxp/api/service/basic/BasicBackUpdateProductService.java @@ -119,10 +119,12 @@ public class BasicBackUpdateProductService { udiRelevanceEntity1.setMainId(udiRelevanceEntity1.getThirdId4()); } udiRelevanceEntity1.setThirdId(invmandocResponse.getCode()); - String time = DateUtil.getDateTime(); udiRelevanceEntity1.setUpdateTime(new Date()); udiRelevanceEntity.setModifyTime(new Date()); udiRelevanceEntity.setIsDisable(false); + if (udiProductEntity.getDiType() == ConstantStatus.DI_TYPE_SYDY) { + udiRelevanceEntity1.setIsUseDy(true); + } udiRelevanceEntity1.setId(gennerOrderUtils.getRelId()); udiRelevanceService.insertUdiRelevance(udiRelevanceEntity1); } diff --git a/src/main/java/com/glxp/api/service/basic/BasicUpdateProductService.java b/src/main/java/com/glxp/api/service/basic/BasicUpdateProductService.java index 773aaf06..a3a1643a 100644 --- a/src/main/java/com/glxp/api/service/basic/BasicUpdateProductService.java +++ b/src/main/java/com/glxp/api/service/basic/BasicUpdateProductService.java @@ -92,6 +92,10 @@ public class BasicUpdateProductService { } else if (mainSys.equals("thirdId4")) { udiRelevanceEntity1.setMainId(udiRelevanceEntity1.getThirdId4()); } + if (udiProductEntity.getDiType() == ConstantStatus.DI_TYPE_SYDY) { + udiRelevanceEntity1.setIsUseDy(true); + } + udiRelevanceEntity1.setId(gennerOrderUtils.getRelId()); udiRelevanceEntity1.setIsDisable(false); udiRelevanceService.insertUdiRelevance(udiRelevanceEntity1); @@ -119,6 +123,9 @@ public class BasicUpdateProductService { udiRelevanceEntity.setModifyTime(new Date()); udiRelevanceEntity.setUuid(udiProductEntity.getUuid()); udiRelevanceEntity.setIsDisable(false); + if (udiProductEntity.getDiType() == ConstantStatus.DI_TYPE_SYDY) { + udiRelevanceEntity.setIsUseDy(true); + } List udiRelevanceEntities = udiRelevanceService.selectByUuid(udiProductEntity.getUuid()); if (udiRelevanceEntities != null && udiRelevanceEntities.size() > 0) { boolean isAdd = false; diff --git a/src/main/java/com/glxp/api/service/basic/UdiContrastService.java b/src/main/java/com/glxp/api/service/basic/UdiContrastService.java index fce18fc2..bd3c73c1 100644 --- a/src/main/java/com/glxp/api/service/basic/UdiContrastService.java +++ b/src/main/java/com/glxp/api/service/basic/UdiContrastService.java @@ -147,6 +147,11 @@ public class UdiContrastService { udiRelevanceEntity.setSupName(udiCombineRequest.getSupName()); udiRelevanceEntity.setId(gennerOrderUtils.getRelId()); udiRelevanceEntity.setIsDisable(false); + + if (udiInfoEntities.get(0).getDiType() == ConstantStatus.DI_TYPE_SYDY) { + udiRelevanceEntity.setIsUseDy(true); + } + udiRelevanceService.insertUdiRelevance(udiRelevanceEntity); insertUdiInfos(udiInfoEntities); } @@ -201,6 +206,9 @@ public class UdiContrastService { if (StrUtil.isNotBlank(udiCombineRequest.getSupName())) { udiRelevanceEntity.setSupName(udiCombineRequest.getSupName()); } + if (udiInfoEntities.get(0).getDiType() == ConstantStatus.DI_TYPE_SYDY) { + udiRelevanceEntity.setIsUseDy(true); + } Long relId = gennerOrderUtils.getRelId(); udiRelevanceEntity.setId(relId); udiRelevanceEntity.setIsDisable(false);