feature 1.增加查询集团库数据

release
zhenghaiyang@ele-cloud.com 2 years ago
parent 7e8e449845
commit 23dbc5e2ee
  1. 26
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java

@ -5,8 +5,15 @@ import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.dxhy.order.baseservice.config.BaseServiceConfig;
import com.dxhy.order.baseservice.module.base.service.BaseService;
import com.dxhy.order.baseservice.module.buyer.dao.BuyerMapper;
import com.dxhy.order.baseservice.module.buyer.model.*;
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbReqBO;
import com.dxhy.order.baseservice.module.buyer.service.BuyerService;
import com.dxhy.order.baseservice.module.buyer.service.VerifyBuyerManageInfoService;
import com.dxhy.order.baseservice.module.thirdservice.openapi.service.OpenApiService;
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity;
import com.dxhy.order.baseservice.module.thirdservice.user.model.TaxPlayerCodeDept;
import com.dxhy.order.baseservice.module.thirdservice.user.service.UserInfoService;
import com.dxhy.order.constant.ConfigureConstant;
import com.dxhy.order.constant.OrderInfoContentEnum;
@ -17,14 +24,6 @@ import com.dxhy.order.model.R;
import com.dxhy.order.utils.HttpUtils;
import com.dxhy.order.utils.JsonUtils;
import com.dxhy.order.utils.StringUtil;
import com.dxhy.order.baseservice.config.BaseServiceConfig;
import com.dxhy.order.baseservice.module.base.service.BaseService;
import com.dxhy.order.baseservice.module.buyer.dao.BuyerMapper;
import com.dxhy.order.baseservice.module.buyer.model.*;
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbReqBO;
import com.dxhy.order.baseservice.module.buyer.service.BuyerService;
import com.dxhy.order.baseservice.module.buyer.service.VerifyBuyerManageInfoService;
import com.dxhy.order.baseservice.module.thirdservice.openapi.service.OpenApiService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
@ -305,9 +304,18 @@ public class BuyerServiceImpl implements BuyerService {
buyerEntity.setBuyerCode(buyerCode);
List<BuyerEntity> buyerEntities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity, shList);
log.info("{}根据销方税号和自编ID查询购方信息结果{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(buyerEntity));
if (buyerEntities != null && buyerEntities.size() > 0) {
return buyerEntities.get(0);
} else {
List<String> shList1 = new ArrayList<>();
shList1.add("-1");
BuyerEntity buyerEntity1 = new BuyerEntity();
buyerEntity1.setBuyerCode(buyerCode);
List<BuyerEntity> entities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity1, shList1);
if(entities != null && entities.size() > 0){
return buyerEntities.get(0);
}
return null;
}
}

Loading…
Cancel
Save