|
|
|
@ -207,7 +207,7 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotEmpty(buyerEntity.getEntId())&&StringUtils.isNotEmpty(buyerEntity.getBuyerCode())) { |
|
|
|
|
param = new HashMap<>(5); |
|
|
|
|
param.put("ent_id", buyerEntity.getEntId()); |
|
|
|
|
param.put("entId", buyerEntity.getEntId()); |
|
|
|
|
param.put("buyerCode", buyerEntity.getBuyerCode()); |
|
|
|
|
int i = buyerMapper.selectBuyerByName(param, shList); |
|
|
|
|
if (i > 0) { |
|
|
|
@ -245,6 +245,7 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
// .put(OrderManagementConstant.MESSAGE, "上传失败");
|
|
|
|
|
// } else {
|
|
|
|
|
importSuccessCount = buyerEntitys.size(); |
|
|
|
|
if (importSuccessCount > 0){ |
|
|
|
|
for (BuyerEntity buyerEntity : buyerEntitys) { |
|
|
|
|
//数据重复性校验
|
|
|
|
|
buyerEntity.setId(baseService.getGenerateShotKey()); |
|
|
|
@ -285,6 +286,7 @@ public class BuyerServiceImpl implements BuyerService { |
|
|
|
|
buyerMapper.insertBuyerByList(buyerEntitys); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
resultMap.put("list", list); |
|
|
|
|
// }
|
|
|
|
|
log.info("{}数据库插入耗时:{}", LOGGER_MSG, (System.currentTimeMillis() - t3)); |
|
|
|
|