|
|
|
@ -93,6 +93,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);
|
|
|
|
@ -120,6 +124,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<UdiRelevanceEntity> udiRelevanceEntities = udiRelevanceService.selectByUuid(udiProductEntity.getUuid());
|
|
|
|
|
if (udiRelevanceEntities != null && udiRelevanceEntities.size() > 0) {
|
|
|
|
|
boolean isAdd = false;
|
|
|
|
|