|
|
|
@ -321,7 +321,13 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
commodityCodeEntity.setDataSource("4"); |
|
|
|
|
//matchCommodityCode(commodityCodeEntity);
|
|
|
|
|
List<String> ids = commodityCodeEntities.stream().map(t -> t.getId()).collect(Collectors.toList()); |
|
|
|
|
commodityMapper.batchUpdateCommodity(commodityCodeEntity,ids); |
|
|
|
|
int updateCommodity = commodityMapper.batchUpdateCommodity(commodityCodeEntity, ids); |
|
|
|
|
if (updateCommodity > 0) { |
|
|
|
|
commodityCodeEntity.setSuccess(true); |
|
|
|
|
} else { |
|
|
|
|
commodityCodeEntity.setSuccess(false); |
|
|
|
|
} |
|
|
|
|
list.add(commodityCodeEntity); |
|
|
|
|
}else{ |
|
|
|
|
// 2.如果未匹配到,再去根据物料编码匹配
|
|
|
|
|
commodityCodeEntity.setXmmc(reqBO.getDESC1()); // 商品名称
|
|
|
|
@ -559,7 +565,12 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String syncMdmGroupTaxService(List<MdmSyncGroupTaxCodeReqBO> taxxtbReqBOS){ |
|
|
|
|
AjaxResult syncResult = this.syncMdmGroupTax(taxxtbReqBOS,null); |
|
|
|
|
AjaxResult syncResult = null; |
|
|
|
|
try { |
|
|
|
|
syncResult = this.syncMdmGroupTax(taxxtbReqBOS,null); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|
if (syncResult.isSuccess()) { |
|
|
|
|
return ""; |
|
|
|
|
} else { |
|
|
|
@ -570,7 +581,12 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String syncBuyerMessageService(List<MdmGmfxxtbReqBO> mdmGmfxxtbReqBOS){ |
|
|
|
|
AjaxResult syncResult = this.syncBuyerMessage(mdmGmfxxtbReqBOS,null); |
|
|
|
|
AjaxResult syncResult = null; |
|
|
|
|
try { |
|
|
|
|
syncResult = this.syncBuyerMessage(mdmGmfxxtbReqBOS,null); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|
if (syncResult.isSuccess()) { |
|
|
|
|
return ""; |
|
|
|
|
} else { |
|
|
|
@ -715,7 +731,12 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String syncMdmUserService(List<MdmSyncUserReqBO> mdmSyncUserReqBO){ |
|
|
|
|
AjaxResult syncResult = this.syncMdmUser(mdmSyncUserReqBO,null); |
|
|
|
|
AjaxResult syncResult = null; |
|
|
|
|
try { |
|
|
|
|
syncResult = this.syncMdmUser(mdmSyncUserReqBO,null); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
} |
|
|
|
|
if (syncResult.isSuccess()) { |
|
|
|
|
return ""; |
|
|
|
|
} else { |
|
|
|
|