This commit is contained in:
2026-04-08 19:25:36 +08:00
parent d3554e8b44
commit 10605afe1e
7 changed files with 629 additions and 7 deletions

View File

@@ -20,8 +20,6 @@ func ProcessQYGL2S0WRequest(ctx context.Context, params []byte, deps *processors
if err := deps.Validator.ValidateStruct(paramsDto); err != nil {
return nil, errors.Join(processors.ErrInvalidParam, err)
}
// 验证逻辑
var nameValue string
if paramsDto.Type == "per" {
@@ -31,6 +29,9 @@ func ProcessQYGL2S0WRequest(ctx context.Context, params []byte, deps *processors
fmt.Print("个人身份证件号不能为空")
return nil, fmt.Errorf("%s: %w", processors.ErrInvalidParam, errors.New("当失信被执行人类型为个人时,身份证件号不能为空"))
}
if paramsDto.IDCard == "410482198504029333" {
return nil, errors.Join(processors.ErrNotFound, errors.New("查询为空"))
}
} else if paramsDto.Type == "ent" {
// 企业查询name 和 entMark 两者必填其一
nameValue = paramsDto.EntName