进件关联
This commit is contained in:
@@ -3,7 +3,6 @@ package com.czg.controller.admin;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.EntryManager;
|
||||
import com.czg.annotation.Debounce;
|
||||
import com.czg.config.RabbitPublisher;
|
||||
import com.czg.dto.req.AggregateMerchantDto;
|
||||
import com.czg.dto.resp.WechatBankBranchRespDto;
|
||||
import com.czg.order.entity.ShopDirectMerchant;
|
||||
@@ -33,9 +32,6 @@ public class EntryManagerController {
|
||||
@Resource
|
||||
private EntryManagerTask entryManagerTask;
|
||||
|
||||
@Resource
|
||||
private RabbitPublisher rabbitPublisher;
|
||||
|
||||
/**
|
||||
* ocr识别填充
|
||||
* 阿里 ocr识别图片
|
||||
@@ -68,12 +64,6 @@ public class EntryManagerController {
|
||||
return CzgResult.success(EntryManager.queryBankBranchList(bankAliceCode, cityCode));
|
||||
}
|
||||
|
||||
@GetMapping("test")
|
||||
public CzgResult<Void> test(String shopId, String licenceNo) {
|
||||
rabbitPublisher.sendEntryManagerMsg(shopId + ":" + licenceNo);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取进件列表
|
||||
*/
|
||||
|
||||
@@ -5,9 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.EntryManager;
|
||||
import com.czg.PayCst;
|
||||
import com.czg.constant.PayChannelCst;
|
||||
import com.czg.dto.resp.QueryStatusResp;
|
||||
import com.czg.order.dto.ShopMerchantDTO;
|
||||
import com.czg.order.entity.ShopDirectMerchant;
|
||||
import com.czg.order.service.ShopMerchantService;
|
||||
import com.czg.pay.AlipayAuthInfoDto;
|
||||
@@ -79,10 +77,10 @@ public class EntryManagerTask {
|
||||
}
|
||||
shopDirectMerchantService.updateById(shopDirectMerchant);
|
||||
if (StrUtil.isNotBlank(wechatMerchantId) || StrUtil.isNotBlank(alipayMerchantId)) {
|
||||
ShopMerchantDTO shopMerchantDTO = new ShopMerchantDTO();
|
||||
shopMerchantDTO.setShopId(shopId);
|
||||
shopMerchantDTO.setChannel(PayChannelCst.NATIVE);
|
||||
shopMerchantDTO.setRelatedLicenceNo(shopDirectMerchant.getLicenceNo());
|
||||
// ShopMerchantDTO shopMerchantDTO = new ShopMerchantDTO();
|
||||
// shopMerchantDTO.setShopId(shopId);
|
||||
// shopMerchantDTO.setChannel(PayChannelCst.NATIVE);
|
||||
// shopMerchantDTO.setRelatedId(shopDirectMerchant.getShopId());
|
||||
NativeMerchantDTO nativeMerchantDTO = new NativeMerchantDTO();
|
||||
nativeMerchantDTO.setWechatMerchantId(wechatMerchantId);
|
||||
nativeMerchantDTO.setAlipayMerchantId(alipayMerchantId);
|
||||
@@ -90,9 +88,9 @@ public class EntryManagerTask {
|
||||
AlipayAuthInfoDto alipayAuthInfoDto = JSONObject.parseObject(shopDirectMerchant.getAlipayAuthInfo(), AlipayAuthInfoDto.class);
|
||||
nativeMerchantDTO.setAlipayAuthInfo(alipayAuthInfoDto);
|
||||
}
|
||||
shopMerchantDTO.setNativeMerchantDTO(nativeMerchantDTO);
|
||||
shopMerchantService.editEntry(shopMerchantDTO, false);
|
||||
shopMerchantService.upMerchant(shopDirectMerchant.getLicenceNo(), nativeMerchantDTO);
|
||||
// shopMerchantDTO.setNativeMerchantDTO(nativeMerchantDTO);
|
||||
// shopMerchantService.editEntry(shopMerchantDTO, false);
|
||||
shopMerchantService.upMerchant(shopDirectMerchant.getShopId(), nativeMerchantDTO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user