feature:接口开票查询客户信息不查找集团库

release
gaorl 2 years ago
parent 7b21b34b00
commit 2d0cbc48a2
  1. 27
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java
  2. 2
      order-management-base-service/src/main/resources/mybatis/mapper/BuyerMapper.xml
  3. 2
      order-management-consumer/src/main/java/com/dxhy/order/consumer/model/OderDetailInfo.java
  4. 3
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/controller/BuyerController.java
  5. 1
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/OrderInfoServiceImpl.java
  6. 9
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/validate/service/impl/ValidateInterfaceOrderServiceImpl.java

@ -329,19 +329,20 @@ public class BuyerServiceImpl implements BuyerService {
List<BuyerEntity> buyerEntities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity, shList); List<BuyerEntity> buyerEntities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity, shList);
log.info("{}根据销方税号和自编ID查询购方信息结果{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(buyerEntity)); log.info("{}根据销方税号和自编ID查询购方信息结果{}", LOGGER_MSG, JsonUtils.getInstance().toJsonString(buyerEntity));
if (buyerEntities != null && buyerEntities.size() > 0) { return buyerEntities.stream().findFirst().orElse(buyerEntity);
return buyerEntities.get(0); // if (buyerEntities != null && buyerEntities.size() > 0) {
} else { // }
List<String> shList1 = new ArrayList<>(); // else {
shList1.add("-1"); // List<String> shList1 = new ArrayList<>();
BuyerEntity buyerEntity1 = new BuyerEntity(); // shList1.add("-1");
buyerEntity1.setBuyerCode(buyerCode); // BuyerEntity buyerEntity1 = new BuyerEntity();
List<BuyerEntity> entities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity1, shList1); // buyerEntity1.setBuyerCode(buyerCode);
if(entities != null && entities.size() > 0){ // List<BuyerEntity> entities = buyerMapper.selectBuyerByBuyerEntity(buyerEntity1, shList1);
return entities.get(0); // if(entities != null && entities.size() > 0){
} // return entities.get(0);
return null; // }
} // }
// return null;
} }
@Override @Override

@ -1010,7 +1010,7 @@
</if> </if>
<if test="buyerCode != null and buyerCode != ''"> <if test="buyerCode != null and buyerCode != ''">
and buyer_code = #{buyerCode,jdbcType=VARCHAR} and buyer_code like CONCAT(CONCAT('%',#{buyerCode,jdbcType=VARCHAR}),'%')
</if> </if>
<if test="dataType == 0"> <if test="dataType == 0">

@ -59,6 +59,8 @@ public class OderDetailInfo {
private String ghfStatus; private String ghfStatus;
private String ghfId;
private String xhfMc; private String xhfMc;
private String xhfNsrsbh; private String xhfNsrsbh;

@ -341,6 +341,7 @@ public class BuyerController {
@ApiOperation(value = "购方信息模糊查询", notes = "购方信息管理-购方信息模糊查询") @ApiOperation(value = "购方信息模糊查询", notes = "购方信息管理-购方信息模糊查询")
@SysLog(operation = "购方信息模糊查询", operationDesc = "购方信息模糊查询操作", key = "购方信息管理") @SysLog(operation = "购方信息模糊查询", operationDesc = "购方信息模糊查询操作", key = "购方信息管理")
public R queryBuyerInfoList(@RequestParam String purchaseName, public R queryBuyerInfoList(@RequestParam String purchaseName,
@RequestParam String buyerCode,
@RequestParam String xhfNsrsbh, @RequestParam String xhfNsrsbh,
@ApiParam(name = "entList", value = "数据组织Id数组", required = false) @RequestParam(value = "entList", required = false) String entList) { @ApiParam(name = "entList", value = "数据组织Id数组", required = false) @RequestParam(value = "entList", required = false) String entList) {
if (StringUtils.isBlank(xhfNsrsbh)) { if (StringUtils.isBlank(xhfNsrsbh)) {
@ -350,7 +351,7 @@ public class BuyerController {
List<String> shList = JSON.parseArray(xhfNsrsbh, String.class); List<String> shList = JSON.parseArray(xhfNsrsbh, String.class);
List<String> entList1 = NsrsbhUtils.transShListByXhfNsrsbh(entList); List<String> entList1 = NsrsbhUtils.transShListByXhfNsrsbh(entList);
List<BuyerEntity> buyerEntityList = buyerService.autoQueryBuyerInfoList(purchaseName, "", shList, entList1); List<BuyerEntity> buyerEntityList = buyerService.autoQueryBuyerInfoList(purchaseName, buyerCode, shList, entList1);
return R.ok().put(OrderManagementConstant.DATA, buyerEntityList); return R.ok().put(OrderManagementConstant.DATA, buyerEntityList);
} }

@ -388,6 +388,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
oderDetailInfo.setGhfDh(orderInfo.getGhfDh()); oderDetailInfo.setGhfDh(orderInfo.getGhfDh());
oderDetailInfo.setGhfYh(orderInfo.getGhfYh()); oderDetailInfo.setGhfYh(orderInfo.getGhfYh());
oderDetailInfo.setGhfZh(orderInfo.getGhfZh()); oderDetailInfo.setGhfZh(orderInfo.getGhfZh());
oderDetailInfo.setGhfId(orderInfo.getGhfId());
BuyerEntity buyerEntity = null; BuyerEntity buyerEntity = null;
if (StrUtil.isNotBlank(orderInfo.getGhfId())) { if (StrUtil.isNotBlank(orderInfo.getGhfId())) {
buyerEntity = buyerService.queryBuyerInfoByxhfNsrsbhAndBuyerCode(orderInfo.getXhfNsrsbh(), orderInfo.getGhfId(),orderProcessInfo.getEntId()); buyerEntity = buyerService.queryBuyerInfoByxhfNsrsbhAndBuyerCode(orderInfo.getXhfNsrsbh(), orderInfo.getGhfId(),orderProcessInfo.getEntId());

@ -231,9 +231,11 @@ public class ValidateInterfaceOrderServiceImpl implements ValidateInterfaceOrder
/** /**
* 整体校验购方信息 * 整体校验购方信息
*/ */
checkResultMap = checkGhfParam(orderInfo, commonOrderInfo.getKpfs(), commonOrderInfo.getIsExceptionEdit(), terminalCode, interfaceVersion); if(!ConfigureConstant.STRING_99.equals(orderInfo.getInterfaceType())){
if (!OrderInfoContentEnum.SUCCESS.getKey().equals(checkResultMap.get(OrderManagementConstant.ERRORCODE))) { checkResultMap = checkGhfParam(orderInfo, commonOrderInfo.getKpfs(), commonOrderInfo.getIsExceptionEdit(), terminalCode, interfaceVersion);
resultMapList.add(checkResultMap); if (!OrderInfoContentEnum.SUCCESS.getKey().equals(checkResultMap.get(OrderManagementConstant.ERRORCODE))) {
resultMapList.add(checkResultMap);
}
} }
/** /**
@ -2614,6 +2616,7 @@ public class ValidateInterfaceOrderServiceImpl implements ValidateInterfaceOrder
commonOrderInfo.setPcnsrsbh(orderBatchRequest.getXhfNsrsbh()); commonOrderInfo.setPcnsrsbh(orderBatchRequest.getXhfNsrsbh());
commonOrderInfo.setSld(orderBatchRequest.getKpzd()); commonOrderInfo.setSld(orderBatchRequest.getKpzd());
commonOrderInfo.getOrderInfo().setSld(orderBatchRequest.getKpzd()); commonOrderInfo.getOrderInfo().setSld(orderBatchRequest.getKpzd());
commonOrderInfo.getOrderInfo().setInterfaceType(ConfigureConstant.STRING_99);
/** /**
* 税控设备类型添加到订单主信息中 * 税控设备类型添加到订单主信息中
*/ */

Loading…
Cancel
Save