feature:购方信息导入

release
gaorl 2 years ago
parent 5aedbec1c1
commit 7aee7498ac
  1. 4
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java
  2. 3
      order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml

@ -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));

@ -908,6 +908,9 @@
<if test="map.buyerCode != null and map.buyerCode != ''">
AND buyer_code =#{map.buyerCode,jdbcType=VARCHAR}
</if>
<if test="map.entId != null and map.entId != ''">
AND ent_id =#{map.entId,jdbcType=VARCHAR}
</if>
</where>
</select>

Loading…
Cancel
Save