|
|
|
@ -117,7 +117,9 @@ public class UdiContrastController {
|
|
|
|
|
}
|
|
|
|
|
udiInfoService.insertUdiInfos(UdiInfoUtil.initUdiInfoEntitys(udiInfoEntities));
|
|
|
|
|
// udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.formatDateTime(new Date()));
|
|
|
|
|
String time = DateUtil.formatDateTime(new Date());
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
|
|
|
|
|
return ResultVOUtils.success("切换成功!");
|
|
|
|
|
}
|
|
|
|
@ -130,7 +132,9 @@ public class UdiContrastController {
|
|
|
|
|
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectById(combineRequest.getRelId());
|
|
|
|
|
udiRelevanceEntity = setThird(combineRequest, udiRelevanceEntity);
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
|
|
|
|
|
String time = DateUtil.getDateTime();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceEntity.setManufactory(combineRequest.getManufactory());
|
|
|
|
|
udiRelevanceEntity.setSupName(combineRequest.getSupName());
|
|
|
|
|
udiRelevanceEntity.setPrice(combineRequest.getPrice());
|
|
|
|
@ -239,7 +243,9 @@ public class UdiContrastController {
|
|
|
|
|
udiRelevanceEntity.setMainId(combineRequest.getThirdId());
|
|
|
|
|
udiRelevanceEntity.setMainName(combineRequest.getErpName());
|
|
|
|
|
udiRelevanceEntity.setPrice(combineRequest.getPrice());
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
|
|
|
|
|
String time = DateUtil.getDateTime();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
|
|
|
|
|
if (combineRequest.getManufactory() != null) {
|
|
|
|
|
udiRelevanceEntity.setManufactory(combineRequest.getManufactory());
|
|
|
|
@ -255,7 +261,9 @@ public class UdiContrastController {
|
|
|
|
|
public void createOnlyUuid(CombineRequest combineRequest, String key) {
|
|
|
|
|
List<UdiInfoEntity> udiInfoEntities = udiDlHttpClient.getOrUpdateByUuid(key);
|
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = new UdiRelevanceEntity();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
|
|
|
|
|
String time = DateUtil.getDateTime();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
|
|
|
|
|
udiRelevanceEntity.setPrice(combineRequest.getPrice());
|
|
|
|
|
udiRelevanceEntity.setManufactory(udiInfoEntities.get(0).getYlqxzcrbarmc());
|
|
|
|
@ -276,7 +284,9 @@ public class UdiContrastController {
|
|
|
|
|
udiRelevanceEntity.setThirdName(thrProductsEntity.getName());
|
|
|
|
|
udiRelevanceEntity.setMainId(thrProductsEntity.getCode());
|
|
|
|
|
udiRelevanceEntity.setMainName(thrProductsEntity.getName());
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
|
|
|
|
|
String time = DateUtil.getDateTime();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceEntity.setUuid(CustomUtil.getUUId());
|
|
|
|
|
udiRelevanceEntity.setManufactory(thrProductsEntity.getManufactory());
|
|
|
|
|
udiRelevanceEntity.setSupName(combineRequest.getSupName());
|
|
|
|
@ -306,7 +316,9 @@ public class UdiContrastController {
|
|
|
|
|
List<UdiInfoEntity> udiInfoEntities = udiDlHttpClient.getOrUpdateByUuid(key);
|
|
|
|
|
udiInfoService.deleteByUuid(udiRelevanceEntity.getUuid());
|
|
|
|
|
udiRelevanceEntity.setUuid(udiInfoEntities.get(0).getUuid());
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(DateUtil.getDateTime());
|
|
|
|
|
String time = DateUtil.getDateTime();
|
|
|
|
|
udiRelevanceEntity.setUpdateTime(time);
|
|
|
|
|
udiRelevanceEntity.setModifyTime(time);
|
|
|
|
|
udiRelevanceService.updateUdiRelevance(udiRelevanceEntity);
|
|
|
|
|
insertUdiInfos(udiInfoEntities);
|
|
|
|
|
}
|
|
|
|
|