feat: 新增客商填写信用代码后即时查询金蝶供应商编码接口
This commit is contained in:
+10
@@ -198,6 +198,16 @@ public class CustomerArchiveController extends BladeController {
|
||||
return R.data(customerArchiveService.syncKingdee(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 金蝶供应商编码查询(A901-1,新增客商填写信用代码后即时回显用)
|
||||
*/
|
||||
@GetMapping("/query-supplier-code")
|
||||
@ApiOperationSupport(order = 12)
|
||||
@Operation(summary = "金蝶供应商编码查询", description = "A901-1 按统一社会信用代码查询金蝶供应商档案取编码,查不到返回空")
|
||||
public R<String> querySupplierCode(@Parameter(description = "统一社会信用代码", required = true) @RequestParam String unifiedCreditCode) {
|
||||
return R.data(customerArchiveService.querySupplierCode(unifiedCreditCode));
|
||||
}
|
||||
|
||||
/**
|
||||
* 评分明细模板
|
||||
*/
|
||||
|
||||
+8
@@ -196,6 +196,14 @@ public interface ICustomerArchiveService extends BaseService<CustomerArchive> {
|
||||
*/
|
||||
CustomerArchive syncKingdee(Long id);
|
||||
|
||||
/**
|
||||
* A901-1 按统一社会信用代码查询金蝶供应商编码(新增客商填写信用代码后即时回显用),查不到返回 null
|
||||
*
|
||||
* @param unifiedCreditCode 统一社会信用代码
|
||||
* @return 金蝶供应商编码
|
||||
*/
|
||||
String querySupplierCode(String unifiedCreditCode);
|
||||
|
||||
/**
|
||||
* 推送失败状态落库(独立事务):推送主事务已回滚,失败状态与原因单独落库供页面展示与手动重推
|
||||
*
|
||||
|
||||
+5
@@ -667,6 +667,11 @@ public class CustomerArchiveServiceImpl extends BaseServiceImpl<CustomerArchiveM
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String querySupplierCode(String unifiedCreditCode) {
|
||||
return this.queryKingdeeSupplierNumber(unifiedCreditCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 金蝶已存在档案时,客商编号(customer_code)采纳金蝶客商编码,后续业务接口沿用客商编号即拿到金蝶编码;
|
||||
* 金蝶编码为空或与当前编号一致时无需处理;同租户下已被其他客商占用时跳过回填,避免违反 uk_customer_archive_code 唯一约束
|
||||
|
||||
Reference in New Issue
Block a user