feat: 金蝶黑名单查询支持number企业税号数组入参,客商提审按发票信息纳税人识别号过滤校验
This commit is contained in:
+10
@@ -30,6 +30,7 @@ import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 业财融合(BFI)A801-5 黑名单查询参数
|
||||
@@ -47,6 +48,15 @@ public class BfiBlacklistQueryDTO implements Serializable {
|
||||
*/
|
||||
private String enable;
|
||||
|
||||
/**
|
||||
* 企业税号,数组
|
||||
*/
|
||||
private List<String> number;
|
||||
/**
|
||||
* 企业名称,数组
|
||||
*/
|
||||
private List<String> name;
|
||||
|
||||
/**
|
||||
* 【必填】页码,从1开始
|
||||
*/
|
||||
|
||||
+2
-1
@@ -129,9 +129,10 @@ public interface IBfiService {
|
||||
* A801-5 黑名单查询
|
||||
*
|
||||
* @param enable 使用状态[1:可用, 0:禁用]
|
||||
* @param number 企业税号数组,按税号过滤时传
|
||||
* @return 黑名单列表
|
||||
*/
|
||||
List<BfiBlacklistVO> queryBlacklist(String enable);
|
||||
List<BfiBlacklistVO> queryBlacklist(String enable, List<String> number);
|
||||
|
||||
/**
|
||||
* A103-1 付款申请保存(根据星瀚应付下推付款申请)
|
||||
|
||||
+5
-1
@@ -31,6 +31,7 @@ import feign.Response;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.core.redis.cache.BladeRedis;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springblade.core.tool.utils.StringUtil;
|
||||
import org.springblade.thirdparty.bfi.config.BfiProperties;
|
||||
import org.springblade.thirdparty.bfi.constant.BfiConstant;
|
||||
@@ -222,12 +223,15 @@ public class BfiServiceImpl implements IBfiService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BfiBlacklistVO> queryBlacklist(String enable) {
|
||||
public List<BfiBlacklistVO> queryBlacklist(String enable, List<String> number) {
|
||||
if (StringUtil.isBlank(enable)) {
|
||||
throw new BfiException("查询BFI黑名单失败,使用状态不能为空");
|
||||
}
|
||||
BfiBlacklistQueryDTO param = new BfiBlacklistQueryDTO();
|
||||
param.setEnable(enable);
|
||||
if (Func.isNotEmpty(number)) {
|
||||
param.setNumber(number);
|
||||
}
|
||||
String accessToken = getAccessToken();
|
||||
return BfiUtil.queryAllPages(pageNo -> {
|
||||
param.setPageNo(pageNo);
|
||||
|
||||
Reference in New Issue
Block a user