可信空间修改
Showing
57 changed files
with
5204 additions
and
1 deletions
1 | package com.csbr.qingcloud.portal.controller; | ||
2 | |||
3 | import com.csbr.cloud.common.response.CommonRes; | ||
4 | import csbr.cloud.entity.annotation.SystemLog; | ||
5 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityQueryVO; | ||
7 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRQVO; | ||
8 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO; | ||
9 | import com.csbr.qingcloud.portal.service.TdsCorporationIdentityService; | ||
10 | import io.swagger.v3.oas.annotations.Operation; | ||
11 | import io.swagger.v3.oas.annotations.Parameter; | ||
12 | import io.swagger.v3.oas.annotations.tags.Tag; | ||
13 | import jakarta.annotation.Resource; | ||
14 | import jakarta.validation.Valid; | ||
15 | import org.springframework.web.bind.annotation.*; | ||
16 | |||
17 | import java.util.List; | ||
18 | |||
19 | /** | ||
20 | * @program: | ||
21 | * @description: 法人用户身份信息-控制器 | ||
22 | * @author: xup | ||
23 | * @create: 2025-08-14 17:30 | ||
24 | **/ | ||
25 | @RestController | ||
26 | @RequestMapping("/tds-corporation-identity") | ||
27 | @Tag(name = "法人用户身份信息-控制器") | ||
28 | public class TdsCorporationIdentityController { | ||
29 | |||
30 | @Resource | ||
31 | private TdsCorporationIdentityService tdsCorporationIdentityService; | ||
32 | |||
33 | //region 基本操作 | ||
34 | |||
35 | @PostMapping("/save") | ||
36 | @SystemLog(value = "法人用户身份信息-新增") | ||
37 | @Operation(summary = "法人用户身份信息-新增") | ||
38 | public CommonRes<Boolean> saveTdsCorporationIdentity(@RequestBody @Valid TdsCorporationIdentityRQVO vo) { | ||
39 | tdsCorporationIdentityService.saveTdsCorporationIdentity(vo); | ||
40 | return CommonRes.success(true); | ||
41 | } | ||
42 | |||
43 | @PutMapping("/update") | ||
44 | @SystemLog(value = "法人用户身份信息-修改") | ||
45 | @Operation(summary = "法人用户身份信息-修改") | ||
46 | public CommonRes<Boolean> updateTdsCorporationIdentity(@RequestBody @Valid TdsCorporationIdentityRQVO vo) { | ||
47 | tdsCorporationIdentityService.updateTdsCorporationIdentity(vo); | ||
48 | return CommonRes.success(true); | ||
49 | } | ||
50 | |||
51 | @DeleteMapping("/delete") | ||
52 | @SystemLog(value = "法人用户身份信息-批量删除") | ||
53 | @Operation(summary = "法人用户身份信息-批量删除") | ||
54 | public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) { | ||
55 | tdsCorporationIdentityService.removeByGuids(guids); | ||
56 | return CommonRes.success(true); | ||
57 | } | ||
58 | |||
59 | @PostMapping("/page-list") | ||
60 | @SystemLog(value = "法人用户身份信息-分页") | ||
61 | @Operation(summary = "法人用户身份信息-分页") | ||
62 | public CommonRes<PageListVO<TdsCorporationIdentityRSVO>> pageList(@RequestBody @Valid TdsCorporationIdentityQueryVO queryVO) { | ||
63 | PageListVO<TdsCorporationIdentityRSVO> pageVO = tdsCorporationIdentityService.pageList(queryVO); | ||
64 | return CommonRes.success(pageVO); | ||
65 | } | ||
66 | |||
67 | @GetMapping("/detail") | ||
68 | @SystemLog(value = "法人用户身份信息-详情") | ||
69 | @Operation( | ||
70 | summary = "法人用户身份信息-详情", | ||
71 | parameters = { | ||
72 | @Parameter(name = "guid", description = "法人用户身份信息唯一标识", required = true)} | ||
73 | ) | ||
74 | public CommonRes<TdsCorporationIdentityRSVO> getTdsCorporationIdentityDetail(@RequestParam String guid) { | ||
75 | TdsCorporationIdentityRSVO vo = tdsCorporationIdentityService.getTdsCorporationIdentityDetail(guid); | ||
76 | return CommonRes.success(vo); | ||
77 | } | ||
78 | |||
79 | //endregion | ||
80 | |||
81 | } |
1 | package com.csbr.qingcloud.portal.controller; | ||
2 | |||
3 | import com.csbr.cloud.common.response.CommonRes; | ||
4 | import csbr.cloud.entity.annotation.SystemLog; | ||
5 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityQueryVO; | ||
7 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRQVO; | ||
8 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO; | ||
9 | import com.csbr.qingcloud.portal.service.TdsOperatorIdentityService; | ||
10 | import io.swagger.v3.oas.annotations.Operation; | ||
11 | import io.swagger.v3.oas.annotations.Parameter; | ||
12 | import io.swagger.v3.oas.annotations.tags.Tag; | ||
13 | import jakarta.annotation.Resource; | ||
14 | import jakarta.validation.Valid; | ||
15 | import org.springframework.web.bind.annotation.*; | ||
16 | |||
17 | import java.util.List; | ||
18 | |||
19 | /** | ||
20 | * @program: | ||
21 | * @description: 经办人用户身份信息-控制器 | ||
22 | * @author: xup | ||
23 | * @create: 2025-08-14 17:31 | ||
24 | **/ | ||
25 | @RestController | ||
26 | @RequestMapping("/tds-operator-identity") | ||
27 | @Tag(name = "经办人用户身份信息-控制器") | ||
28 | public class TdsOperatorIdentityController { | ||
29 | |||
30 | @Resource | ||
31 | private TdsOperatorIdentityService tdsOperatorIdentityService; | ||
32 | |||
33 | //region 基本操作 | ||
34 | |||
35 | @PostMapping("/save") | ||
36 | @SystemLog(value = "经办人用户身份信息-新增") | ||
37 | @Operation(summary = "经办人用户身份信息-新增") | ||
38 | public CommonRes<Boolean> saveTdsOperatorIdentity(@RequestBody @Valid TdsOperatorIdentityRQVO vo) { | ||
39 | tdsOperatorIdentityService.saveTdsOperatorIdentity(vo); | ||
40 | return CommonRes.success(true); | ||
41 | } | ||
42 | |||
43 | @PutMapping("/update") | ||
44 | @SystemLog(value = "经办人用户身份信息-修改") | ||
45 | @Operation(summary = "经办人用户身份信息-修改") | ||
46 | public CommonRes<Boolean> updateTdsOperatorIdentity(@RequestBody @Valid TdsOperatorIdentityRQVO vo) { | ||
47 | tdsOperatorIdentityService.updateTdsOperatorIdentity(vo); | ||
48 | return CommonRes.success(true); | ||
49 | } | ||
50 | |||
51 | @DeleteMapping("/delete") | ||
52 | @SystemLog(value = "经办人用户身份信息-批量删除") | ||
53 | @Operation(summary = "经办人用户身份信息-批量删除") | ||
54 | public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) { | ||
55 | tdsOperatorIdentityService.removeByGuids(guids); | ||
56 | return CommonRes.success(true); | ||
57 | } | ||
58 | |||
59 | @PostMapping("/page-list") | ||
60 | @SystemLog(value = "经办人用户身份信息-分页") | ||
61 | @Operation(summary = "经办人用户身份信息-分页") | ||
62 | public CommonRes<PageListVO<TdsOperatorIdentityRSVO>> pageList(@RequestBody @Valid TdsOperatorIdentityQueryVO queryVO) { | ||
63 | PageListVO<TdsOperatorIdentityRSVO> pageVO = tdsOperatorIdentityService.pageList(queryVO); | ||
64 | return CommonRes.success(pageVO); | ||
65 | } | ||
66 | |||
67 | @GetMapping("/detail") | ||
68 | @SystemLog(value = "经办人用户身份信息-详情") | ||
69 | @Operation( | ||
70 | summary = "经办人用户身份信息-详情", | ||
71 | parameters = { | ||
72 | @Parameter(name = "guid", description = "经办人用户身份信息唯一标识", required = true)} | ||
73 | ) | ||
74 | public CommonRes<TdsOperatorIdentityRSVO> getTdsOperatorIdentityDetail(@RequestParam String guid) { | ||
75 | TdsOperatorIdentityRSVO vo = tdsOperatorIdentityService.getTdsOperatorIdentityDetail(guid); | ||
76 | return CommonRes.success(vo); | ||
77 | } | ||
78 | |||
79 | //endregion | ||
80 | |||
81 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户附加信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "法人用户附加信息查询参数") | ||
18 | public class TdsCorporationAdditionalQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户附加信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "法人用户附加信息新增、修改参数") | ||
17 | public class TdsCorporationAdditionalRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 法人Guid | ||
35 | */ | ||
36 | @Schema(description = "法人Guid") | ||
37 | @Size(max = 32, message = "法人Guid长度超过32") | ||
38 | private String corporationGuid; | ||
39 | |||
40 | /** | ||
41 | * 注册地址 | ||
42 | */ | ||
43 | @Schema(description = "注册地址") | ||
44 | @Size(max = 100, message = "注册地址长度超过100") | ||
45 | private String registeredAddress; | ||
46 | |||
47 | /** | ||
48 | * 注册金额 | ||
49 | */ | ||
50 | @Schema(description = "注册金额") | ||
51 | private Integer registrationAmount; | ||
52 | |||
53 | /** | ||
54 | * 注册日期 | ||
55 | */ | ||
56 | @Schema(description = "注册日期") | ||
57 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
58 | private Date registeredDate; | ||
59 | |||
60 | /** | ||
61 | * 经营范围 | ||
62 | */ | ||
63 | @Schema(description = "经营范围") | ||
64 | @Size(max = 500, message = "经营范围长度超过500") | ||
65 | private String businessNature; | ||
66 | |||
67 | /** | ||
68 | * 行业类型(参考数据字典行业类型) | ||
69 | */ | ||
70 | @Schema(description = "行业类型(参考数据字典行业类型)") | ||
71 | @Size(max = 20, message = "行业类型(参考数据字典行业类型)长度超过20") | ||
72 | private String industryTypeCode; | ||
73 | |||
74 | /** | ||
75 | * 行业小类(参考数据字典行业小类) | ||
76 | */ | ||
77 | @Schema(description = "行业小类(参考数据字典行业小类)") | ||
78 | @Size(max = 20, message = "行业小类(参考数据字典行业小类)长度超过20") | ||
79 | private String industrySubcategoryCode; | ||
80 | |||
81 | /** | ||
82 | * 电子营业执照 | ||
83 | */ | ||
84 | @Schema(description = "电子营业执照") | ||
85 | @Size(max = -1, message = "电子营业执照长度超过-1") | ||
86 | private String businessLicense; | ||
87 | |||
88 | /** | ||
89 | * 核准机构 | ||
90 | */ | ||
91 | @Schema(description = "核准机构") | ||
92 | @Size(max = 50, message = "核准机构长度超过50") | ||
93 | private String approvalAuthority; | ||
94 | |||
95 | /** | ||
96 | * 社保卡卡号 | ||
97 | */ | ||
98 | @Schema(description = "社保卡卡号") | ||
99 | @Size(max = 20, message = "社保卡卡号长度超过20") | ||
100 | private String socialSecurityCard; | ||
101 | |||
102 | /** | ||
103 | * 社保卡发放地 | ||
104 | */ | ||
105 | @Schema(description = "社保卡发放地") | ||
106 | @Size(max = 50, message = "社保卡发放地长度超过50") | ||
107 | private String socialSecurityIssuance; | ||
108 | |||
109 | /** | ||
110 | * 纳税人识别号 | ||
111 | */ | ||
112 | @Schema(description = "纳税人识别号") | ||
113 | @Size(max = 50, message = "纳税人识别号长度超过50") | ||
114 | private String taxpayerIdentificationNumber; | ||
115 | |||
116 | /******** 库表存储属性 需处理 *****/ | ||
117 | |||
118 | /******** 自定义扩展 *****/ | ||
119 | |||
120 | /******** 子对象 *****/ | ||
121 | |||
122 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 法人用户附加信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:30 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "法人用户附加信息返回参数") | ||
16 | public class TdsCorporationAdditionalRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人Guid | ||
32 | */ | ||
33 | @Schema(description = "法人Guid") | ||
34 | private String corporationGuid; | ||
35 | |||
36 | /** | ||
37 | * 注册地址 | ||
38 | */ | ||
39 | @Schema(description = "注册地址") | ||
40 | private String registeredAddress; | ||
41 | |||
42 | /** | ||
43 | * 注册金额 | ||
44 | */ | ||
45 | @Schema(description = "注册金额") | ||
46 | private Integer registrationAmount; | ||
47 | |||
48 | /** | ||
49 | * 注册日期 | ||
50 | */ | ||
51 | @Schema(description = "注册日期") | ||
52 | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
53 | private Date registeredDate; | ||
54 | |||
55 | /** | ||
56 | * 经营范围 | ||
57 | */ | ||
58 | @Schema(description = "经营范围") | ||
59 | private String businessNature; | ||
60 | |||
61 | /** | ||
62 | * 行业类型(参考数据字典行业类型) | ||
63 | */ | ||
64 | @Schema(description = "行业类型(参考数据字典行业类型)") | ||
65 | private String industryTypeCode; | ||
66 | |||
67 | /** | ||
68 | * 行业小类(参考数据字典行业小类) | ||
69 | */ | ||
70 | @Schema(description = "行业小类(参考数据字典行业小类)") | ||
71 | private String industrySubcategoryCode; | ||
72 | |||
73 | /** | ||
74 | * 电子营业执照 | ||
75 | */ | ||
76 | @Schema(description = "电子营业执照") | ||
77 | private String businessLicense; | ||
78 | |||
79 | /** | ||
80 | * 核准机构 | ||
81 | */ | ||
82 | @Schema(description = "核准机构") | ||
83 | private String approvalAuthority; | ||
84 | |||
85 | /** | ||
86 | * 社保卡卡号 | ||
87 | */ | ||
88 | @Schema(description = "社保卡卡号") | ||
89 | private String socialSecurityCard; | ||
90 | |||
91 | /** | ||
92 | * 社保卡发放地 | ||
93 | */ | ||
94 | @Schema(description = "社保卡发放地") | ||
95 | private String socialSecurityIssuance; | ||
96 | |||
97 | /** | ||
98 | * 纳税人识别号 | ||
99 | */ | ||
100 | @Schema(description = "纳税人识别号") | ||
101 | private String taxpayerIdentificationNumber; | ||
102 | |||
103 | /******** 库表存储属性 需处理 *****/ | ||
104 | |||
105 | /******** 自定义扩展 *****/ | ||
106 | |||
107 | /******** 子对象 *****/ | ||
108 | |||
109 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户身份信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "法人用户身份信息查询参数") | ||
18 | public class TdsCorporationIdentityQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户身份信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "法人用户身份信息新增、修改参数") | ||
17 | public class TdsCorporationIdentityRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 法人或其他组织名称 | ||
35 | */ | ||
36 | @Schema(description = "法人或其他组织名称") | ||
37 | @Size(max = 50, message = "法人或其他组织名称长度超过50") | ||
38 | private String corporationName; | ||
39 | |||
40 | /** | ||
41 | * 法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份) | ||
42 | */ | ||
43 | @Schema(description = "法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份)") | ||
44 | @Size(max = 32, message = "法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份)长度超过32") | ||
45 | private String corporationIdentity; | ||
46 | |||
47 | /** | ||
48 | * 统一社会信用代码 | ||
49 | */ | ||
50 | @Schema(description = "统一社会信用代码") | ||
51 | @Size(max = 20, message = "统一社会信用代码长度超过20") | ||
52 | private String socialCreditCode; | ||
53 | |||
54 | /** | ||
55 | * 法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;) | ||
56 | */ | ||
57 | @Schema(description = "法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;)") | ||
58 | private Integer corporationType; | ||
59 | |||
60 | /** | ||
61 | * 经营期限起始 | ||
62 | */ | ||
63 | @Schema(description = "经营期限起始") | ||
64 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
65 | private Date businessStartTime; | ||
66 | |||
67 | /** | ||
68 | * 经营期限截止 | ||
69 | */ | ||
70 | @Schema(description = "经营期限截止") | ||
71 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
72 | private Date businessEndTime; | ||
73 | |||
74 | /** | ||
75 | * 实名认证状态(0 未认证 ;1 已认证) | ||
76 | */ | ||
77 | @Schema(description = "实名认证状态(0 未认证 ;1 已认证)") | ||
78 | private Integer authenticationStatus; | ||
79 | |||
80 | /** | ||
81 | * 实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它) | ||
82 | */ | ||
83 | @Schema(description = "实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它)") | ||
84 | private Integer authenticationMethod; | ||
85 | |||
86 | /** | ||
87 | * 实名认证时间 | ||
88 | */ | ||
89 | @Schema(description = "实名认证时间") | ||
90 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
91 | private Date authenticationTime; | ||
92 | |||
93 | /** | ||
94 | * 法定代表人或负责人姓名 | ||
95 | */ | ||
96 | @Schema(description = "法定代表人或负责人姓名") | ||
97 | @Size(max = 50, message = "法定代表人或负责人姓名长度超过50") | ||
98 | private String corporationRepresentative; | ||
99 | |||
100 | /** | ||
101 | * 法定代表人或负责人证件号 | ||
102 | */ | ||
103 | @Schema(description = "法定代表人或负责人证件号") | ||
104 | @Size(max = 50, message = "法定代表人或负责人证件号长度超过50") | ||
105 | private String legalRepresentativeIdNumber; | ||
106 | |||
107 | /** | ||
108 | * 法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
109 | */ | ||
110 | @Schema(description = "法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
111 | private Integer legalRepresentativeAuthenticationLevel; | ||
112 | |||
113 | /** | ||
114 | * 法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
115 | */ | ||
116 | @Schema(description = "法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
117 | private Integer legalRepresentativeAuthenticationMethod; | ||
118 | |||
119 | /** | ||
120 | * 身份状态(0 不可用 ;1 可用) | ||
121 | */ | ||
122 | @Schema(description = "身份状态(0 不可用 ;1 可用)") | ||
123 | private Integer identityStatus; | ||
124 | |||
125 | /******** 库表存储属性 需处理 *****/ | ||
126 | |||
127 | /******** 自定义扩展 *****/ | ||
128 | |||
129 | /******** 子对象 *****/ | ||
130 | |||
131 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 法人用户身份信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:30 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "法人用户身份信息返回参数") | ||
16 | public class TdsCorporationIdentityRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人或其他组织名称 | ||
32 | */ | ||
33 | @Schema(description = "法人或其他组织名称") | ||
34 | private String corporationName; | ||
35 | |||
36 | /** | ||
37 | * 法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份) | ||
38 | */ | ||
39 | @Schema(description = "法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份)") | ||
40 | private String corporationIdentity; | ||
41 | |||
42 | /** | ||
43 | * 统一社会信用代码 | ||
44 | */ | ||
45 | @Schema(description = "统一社会信用代码") | ||
46 | private String socialCreditCode; | ||
47 | |||
48 | /** | ||
49 | * 法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;) | ||
50 | */ | ||
51 | @Schema(description = "法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;)") | ||
52 | private Integer corporationType; | ||
53 | |||
54 | /** | ||
55 | * 经营期限起始 | ||
56 | */ | ||
57 | @Schema(description = "经营期限起始") | ||
58 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
59 | private Date businessStartTime; | ||
60 | |||
61 | /** | ||
62 | * 经营期限截止 | ||
63 | */ | ||
64 | @Schema(description = "经营期限截止") | ||
65 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
66 | private Date businessEndTime; | ||
67 | |||
68 | /** | ||
69 | * 实名认证状态(0 未认证 ;1 已认证) | ||
70 | */ | ||
71 | @Schema(description = "实名认证状态(0 未认证 ;1 已认证)") | ||
72 | private Integer authenticationStatus; | ||
73 | |||
74 | /** | ||
75 | * 实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它) | ||
76 | */ | ||
77 | @Schema(description = "实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它)") | ||
78 | private Integer authenticationMethod; | ||
79 | |||
80 | /** | ||
81 | * 实名认证时间 | ||
82 | */ | ||
83 | @Schema(description = "实名认证时间") | ||
84 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
85 | private Date authenticationTime; | ||
86 | |||
87 | /** | ||
88 | * 法定代表人或负责人姓名 | ||
89 | */ | ||
90 | @Schema(description = "法定代表人或负责人姓名") | ||
91 | private String corporationRepresentative; | ||
92 | |||
93 | /** | ||
94 | * 法定代表人或负责人证件号 | ||
95 | */ | ||
96 | @Schema(description = "法定代表人或负责人证件号") | ||
97 | private String legalRepresentativeIdNumber; | ||
98 | |||
99 | /** | ||
100 | * 法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
101 | */ | ||
102 | @Schema(description = "法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
103 | private Integer legalRepresentativeAuthenticationLevel; | ||
104 | |||
105 | /** | ||
106 | * 法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
107 | */ | ||
108 | @Schema(description = "法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
109 | private Integer legalRepresentativeAuthenticationMethod; | ||
110 | |||
111 | /** | ||
112 | * 身份状态(0 不可用 ;1 可用) | ||
113 | */ | ||
114 | @Schema(description = "身份状态(0 不可用 ;1 可用)") | ||
115 | private Integer identityStatus; | ||
116 | |||
117 | /******** 库表存储属性 需处理 *****/ | ||
118 | |||
119 | /******** 自定义扩展 *****/ | ||
120 | |||
121 | /******** 子对象 *****/ | ||
122 | |||
123 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户可验信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "法人用户可验信息查询参数") | ||
18 | public class TdsCorporationVerifiableQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 法人用户可验信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:30 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "法人用户可验信息新增、修改参数") | ||
17 | public class TdsCorporationVerifiableRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 法人Guid | ||
35 | */ | ||
36 | @Schema(description = "法人Guid") | ||
37 | @Size(max = 32, message = "法人Guid长度超过32") | ||
38 | private String corporationGuid; | ||
39 | |||
40 | /** | ||
41 | * 行业资质证书 | ||
42 | */ | ||
43 | @Schema(description = "行业资质证书") | ||
44 | @Size(max = -1, message = "行业资质证书长度超过-1") | ||
45 | private String industryQualificationCertificate; | ||
46 | |||
47 | /** | ||
48 | * 产品或服务合规认证 | ||
49 | */ | ||
50 | @Schema(description = "产品或服务合规认证") | ||
51 | @Size(max = -1, message = "产品或服务合规认证长度超过-1") | ||
52 | private String productComplianceCertification; | ||
53 | |||
54 | /** | ||
55 | * 企业信用评级 | ||
56 | */ | ||
57 | @Schema(description = "企业信用评级") | ||
58 | @Size(max = 20, message = "企业信用评级长度超过20") | ||
59 | private String corporateCreditRating; | ||
60 | |||
61 | /** | ||
62 | * 纳税信用等级 | ||
63 | */ | ||
64 | @Schema(description = "纳税信用等级") | ||
65 | @Size(max = 20, message = "纳税信用等级长度超过20") | ||
66 | private String taxCreditRating; | ||
67 | |||
68 | /** | ||
69 | * 商标/知识产权登记 | ||
70 | */ | ||
71 | @Schema(description = "商标/知识产权登记") | ||
72 | @Size(max = -1, message = "商标/知识产权登记长度超过-1") | ||
73 | private String intellectualPropertyRegistration; | ||
74 | |||
75 | /** | ||
76 | * 其他第三方可信声明 | ||
77 | */ | ||
78 | @Schema(description = "其他第三方可信声明") | ||
79 | @Size(max = -1, message = "其他第三方可信声明长度超过-1") | ||
80 | private String thirdPartyCertification; | ||
81 | |||
82 | /******** 库表存储属性 需处理 *****/ | ||
83 | |||
84 | /******** 自定义扩展 *****/ | ||
85 | |||
86 | /******** 子对象 *****/ | ||
87 | |||
88 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 法人用户可验信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:30 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "法人用户可验信息返回参数") | ||
16 | public class TdsCorporationVerifiableRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人Guid | ||
32 | */ | ||
33 | @Schema(description = "法人Guid") | ||
34 | private String corporationGuid; | ||
35 | |||
36 | /** | ||
37 | * 行业资质证书 | ||
38 | */ | ||
39 | @Schema(description = "行业资质证书") | ||
40 | private String industryQualificationCertificate; | ||
41 | |||
42 | /** | ||
43 | * 产品或服务合规认证 | ||
44 | */ | ||
45 | @Schema(description = "产品或服务合规认证") | ||
46 | private String productComplianceCertification; | ||
47 | |||
48 | /** | ||
49 | * 企业信用评级 | ||
50 | */ | ||
51 | @Schema(description = "企业信用评级") | ||
52 | private String corporateCreditRating; | ||
53 | |||
54 | /** | ||
55 | * 纳税信用等级 | ||
56 | */ | ||
57 | @Schema(description = "纳税信用等级") | ||
58 | private String taxCreditRating; | ||
59 | |||
60 | /** | ||
61 | * 商标/知识产权登记 | ||
62 | */ | ||
63 | @Schema(description = "商标/知识产权登记") | ||
64 | private String intellectualPropertyRegistration; | ||
65 | |||
66 | /** | ||
67 | * 其他第三方可信声明 | ||
68 | */ | ||
69 | @Schema(description = "其他第三方可信声明") | ||
70 | private String thirdPartyCertification; | ||
71 | |||
72 | /******** 库表存储属性 需处理 *****/ | ||
73 | |||
74 | /******** 自定义扩展 *****/ | ||
75 | |||
76 | /******** 子对象 *****/ | ||
77 | |||
78 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户附加信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "经办人用户附加信息查询参数") | ||
18 | public class TdsOperatorAdditionalQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户附加信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "经办人用户附加信息新增、修改参数") | ||
17 | public class TdsOperatorAdditionalRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 经办人Guid | ||
35 | */ | ||
36 | @Schema(description = "经办人Guid") | ||
37 | @Size(max = 32, message = "经办人Guid长度超过32") | ||
38 | private String operatorGuid; | ||
39 | |||
40 | /** | ||
41 | * 法人或其他组织名称 | ||
42 | */ | ||
43 | @Schema(description = "法人或其他组织名称") | ||
44 | @Size(max = 50, message = "法人或其他组织名称长度超过50") | ||
45 | private String enterpriseName; | ||
46 | |||
47 | /** | ||
48 | * 电子营业执照 | ||
49 | */ | ||
50 | @Schema(description = "电子营业执照") | ||
51 | @Size(max = -1, message = "电子营业执照长度超过-1") | ||
52 | private String businessLicense; | ||
53 | |||
54 | /** | ||
55 | * 社保卡卡号 | ||
56 | */ | ||
57 | @Schema(description = "社保卡卡号") | ||
58 | @Size(max = 20, message = "社保卡卡号长度超过20") | ||
59 | private String socialSecurityCard; | ||
60 | |||
61 | /** | ||
62 | * 社保卡发放地 | ||
63 | */ | ||
64 | @Schema(description = "社保卡发放地") | ||
65 | @Size(max = 50, message = "社保卡发放地长度超过50") | ||
66 | private String socialSecurityIssuance; | ||
67 | |||
68 | /** | ||
69 | * 支付宝账号 | ||
70 | */ | ||
71 | @Schema(description = "支付宝账号") | ||
72 | @Size(max = 20, message = "支付宝账号长度超过20") | ||
73 | private String alipayAccount; | ||
74 | |||
75 | /** | ||
76 | * 微信账号 | ||
77 | */ | ||
78 | @Schema(description = "微信账号") | ||
79 | @Size(max = 20, message = "微信账号长度超过20") | ||
80 | private String wechatAccount; | ||
81 | |||
82 | /******** 库表存储属性 需处理 *****/ | ||
83 | |||
84 | /******** 自定义扩展 *****/ | ||
85 | |||
86 | /******** 子对象 *****/ | ||
87 | |||
88 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 经办人用户附加信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:31 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "经办人用户附加信息返回参数") | ||
16 | public class TdsOperatorAdditionalRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人Guid | ||
32 | */ | ||
33 | @Schema(description = "经办人Guid") | ||
34 | private String operatorGuid; | ||
35 | |||
36 | /** | ||
37 | * 法人或其他组织名称 | ||
38 | */ | ||
39 | @Schema(description = "法人或其他组织名称") | ||
40 | private String enterpriseName; | ||
41 | |||
42 | /** | ||
43 | * 电子营业执照 | ||
44 | */ | ||
45 | @Schema(description = "电子营业执照") | ||
46 | private String businessLicense; | ||
47 | |||
48 | /** | ||
49 | * 社保卡卡号 | ||
50 | */ | ||
51 | @Schema(description = "社保卡卡号") | ||
52 | private String socialSecurityCard; | ||
53 | |||
54 | /** | ||
55 | * 社保卡发放地 | ||
56 | */ | ||
57 | @Schema(description = "社保卡发放地") | ||
58 | private String socialSecurityIssuance; | ||
59 | |||
60 | /** | ||
61 | * 支付宝账号 | ||
62 | */ | ||
63 | @Schema(description = "支付宝账号") | ||
64 | private String alipayAccount; | ||
65 | |||
66 | /** | ||
67 | * 微信账号 | ||
68 | */ | ||
69 | @Schema(description = "微信账号") | ||
70 | private String wechatAccount; | ||
71 | |||
72 | /******** 库表存储属性 需处理 *****/ | ||
73 | |||
74 | /******** 自定义扩展 *****/ | ||
75 | |||
76 | /******** 子对象 *****/ | ||
77 | |||
78 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户身份信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "经办人用户身份信息查询参数") | ||
18 | public class TdsOperatorIdentityQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户身份信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "经办人用户身份信息新增、修改参数") | ||
17 | public class TdsOperatorIdentityRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 经办人姓名 | ||
35 | */ | ||
36 | @Schema(description = "经办人姓名") | ||
37 | @Size(max = 50, message = "经办人姓名长度超过50") | ||
38 | private String operatorName; | ||
39 | |||
40 | /** | ||
41 | * 经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份) | ||
42 | */ | ||
43 | @Schema(description = "经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份)") | ||
44 | @Size(max = 32, message = "经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份)长度超过32") | ||
45 | private String operatorIdentity; | ||
46 | |||
47 | /** | ||
48 | * 经办人证件类型(来之数据字典证件类型) | ||
49 | */ | ||
50 | @Schema(description = "经办人证件类型(来之数据字典证件类型)") | ||
51 | @Size(max = 20, message = "经办人证件类型(来之数据字典证件类型)长度超过20") | ||
52 | private String idTypeCode; | ||
53 | |||
54 | /** | ||
55 | * 经办人证件号码 | ||
56 | */ | ||
57 | @Schema(description = "经办人证件号码") | ||
58 | @Size(max = 50, message = "经办人证件号码长度超过50") | ||
59 | private String idNumber; | ||
60 | |||
61 | /** | ||
62 | * 经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
63 | */ | ||
64 | @Schema(description = "经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
65 | private Integer authenticationLevel; | ||
66 | |||
67 | /** | ||
68 | * 经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
69 | */ | ||
70 | @Schema(description = "经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
71 | private Integer authenticationMethod; | ||
72 | |||
73 | /** | ||
74 | * 经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认) | ||
75 | */ | ||
76 | @Schema(description = "经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认)") | ||
77 | private Integer authorizationMethod; | ||
78 | |||
79 | /** | ||
80 | * 统一社会信用代码 | ||
81 | */ | ||
82 | @Schema(description = "统一社会信用代码") | ||
83 | @Size(max = 20, message = "统一社会信用代码长度超过20") | ||
84 | private String socialCreditCode; | ||
85 | |||
86 | /** | ||
87 | * 认证日期 | ||
88 | */ | ||
89 | @Schema(description = "认证日期") | ||
90 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
91 | private Date authenticationTime; | ||
92 | |||
93 | /** | ||
94 | * 身份状态(0 不可用 ;1 可用) | ||
95 | */ | ||
96 | @Schema(description = "身份状态(0 不可用 ;1 可用)") | ||
97 | private Integer identityStatus; | ||
98 | |||
99 | /******** 库表存储属性 需处理 *****/ | ||
100 | |||
101 | /******** 自定义扩展 *****/ | ||
102 | |||
103 | /******** 子对象 *****/ | ||
104 | |||
105 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 经办人用户身份信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:31 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "经办人用户身份信息返回参数") | ||
16 | public class TdsOperatorIdentityRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人姓名 | ||
32 | */ | ||
33 | @Schema(description = "经办人姓名") | ||
34 | private String operatorName; | ||
35 | |||
36 | /** | ||
37 | * 经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份) | ||
38 | */ | ||
39 | @Schema(description = "经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份)") | ||
40 | private String operatorIdentity; | ||
41 | |||
42 | /** | ||
43 | * 经办人证件类型(来之数据字典证件类型) | ||
44 | */ | ||
45 | @Schema(description = "经办人证件类型(来之数据字典证件类型)") | ||
46 | private String idTypeCode; | ||
47 | |||
48 | /** | ||
49 | * 经办人证件号码 | ||
50 | */ | ||
51 | @Schema(description = "经办人证件号码") | ||
52 | private String idNumber; | ||
53 | |||
54 | /** | ||
55 | * 经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
56 | */ | ||
57 | @Schema(description = "经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
58 | private Integer authenticationLevel; | ||
59 | |||
60 | /** | ||
61 | * 经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
62 | */ | ||
63 | @Schema(description = "经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
64 | private Integer authenticationMethod; | ||
65 | |||
66 | /** | ||
67 | * 经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认) | ||
68 | */ | ||
69 | @Schema(description = "经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认)") | ||
70 | private Integer authorizationMethod; | ||
71 | |||
72 | /** | ||
73 | * 统一社会信用代码 | ||
74 | */ | ||
75 | @Schema(description = "统一社会信用代码") | ||
76 | private String socialCreditCode; | ||
77 | |||
78 | /** | ||
79 | * 认证日期 | ||
80 | */ | ||
81 | @Schema(description = "认证日期") | ||
82 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
83 | private Date authenticationTime; | ||
84 | |||
85 | /** | ||
86 | * 身份状态(0 不可用 ;1 可用) | ||
87 | */ | ||
88 | @Schema(description = "身份状态(0 不可用 ;1 可用)") | ||
89 | private Integer identityStatus; | ||
90 | |||
91 | /******** 库表存储属性 需处理 *****/ | ||
92 | |||
93 | /******** 自定义扩展 *****/ | ||
94 | |||
95 | /******** 子对象 *****/ | ||
96 | |||
97 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.dto.BasePageDTO; | ||
4 | import io.swagger.v3.oas.annotations.media.Schema; | ||
5 | import lombok.EqualsAndHashCode; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户可验信息查询参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @EqualsAndHashCode(callSuper = true) | ||
16 | @Data | ||
17 | @Schema(title = "经办人用户可验信息查询参数") | ||
18 | public class TdsOperatorVerifiableQueryVO extends BasePageDTO { | ||
19 | |||
20 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import jakarta.validation.constraints.Size; | ||
6 | import lombok.Data; | ||
7 | import java.util.Date; | ||
8 | |||
9 | /** | ||
10 | * @program: | ||
11 | * @description: 经办人用户可验信息新增、修改参数 | ||
12 | * @author: xup | ||
13 | * @create: 2025-08-14 17:31 | ||
14 | **/ | ||
15 | @Data | ||
16 | @Schema(title = "经办人用户可验信息新增、修改参数") | ||
17 | public class TdsOperatorVerifiableRQVO { | ||
18 | |||
19 | /** | ||
20 | * 系统唯一标识 | ||
21 | */ | ||
22 | @Schema(description = "系统唯一标识") | ||
23 | @Size(max = 32, message = "系统唯一标识长度超过32") | ||
24 | private String guid; | ||
25 | |||
26 | /** | ||
27 | * 会员Guid | ||
28 | */ | ||
29 | @Schema(description = "会员Guid") | ||
30 | @Size(max = 32, message = "会员Guid长度超过32") | ||
31 | private String tenantGuid; | ||
32 | |||
33 | /** | ||
34 | * 经办人Guid | ||
35 | */ | ||
36 | @Schema(description = "经办人Guid") | ||
37 | @Size(max = 32, message = "经办人Guid长度超过32") | ||
38 | private String operatorGuid; | ||
39 | |||
40 | /** | ||
41 | * 授权书/委托书 | ||
42 | */ | ||
43 | @Schema(description = "授权书/委托书") | ||
44 | @Size(max = -1, message = "授权书/委托书长度超过-1") | ||
45 | private String letterOfAuthorization; | ||
46 | |||
47 | /** | ||
48 | * 公证处出具的代理声明 | ||
49 | */ | ||
50 | @Schema(description = "公证处出具的代理声明") | ||
51 | @Size(max = -1, message = "公证处出具的代理声明长度超过-1") | ||
52 | private String notaryOfficeStatement; | ||
53 | |||
54 | /** | ||
55 | * 行业资质类委托备案证明 | ||
56 | */ | ||
57 | @Schema(description = "行业资质类委托备案证明") | ||
58 | @Size(max = -1, message = "行业资质类委托备案证明长度超过-1") | ||
59 | private String filingCertificate; | ||
60 | |||
61 | /** | ||
62 | * 其他第三方可信声明 | ||
63 | */ | ||
64 | @Schema(description = "其他第三方可信声明") | ||
65 | @Size(max = -1, message = "其他第三方可信声明长度超过-1") | ||
66 | private String thirdPartyCertification; | ||
67 | |||
68 | /******** 库表存储属性 需处理 *****/ | ||
69 | |||
70 | /******** 自定义扩展 *****/ | ||
71 | |||
72 | /******** 子对象 *****/ | ||
73 | |||
74 | } |
1 | package com.csbr.qingcloud.portal.domain.vo; | ||
2 | |||
3 | import io.swagger.v3.oas.annotations.media.Schema; | ||
4 | import com.fasterxml.jackson.annotation.JsonFormat; | ||
5 | import lombok.Data; | ||
6 | import java.util.Date; | ||
7 | |||
8 | /** | ||
9 | * @program: | ||
10 | * @description: 经办人用户可验信息返回参数 | ||
11 | * @author: xup | ||
12 | * @create: 2025-08-14 17:31 | ||
13 | **/ | ||
14 | @Data | ||
15 | @Schema(title = "经办人用户可验信息返回参数") | ||
16 | public class TdsOperatorVerifiableRSVO { | ||
17 | |||
18 | /** | ||
19 | * 系统唯一标识 | ||
20 | */ | ||
21 | @Schema(description = "系统唯一标识") | ||
22 | private String guid; | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Schema(description = "会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人Guid | ||
32 | */ | ||
33 | @Schema(description = "经办人Guid") | ||
34 | private String operatorGuid; | ||
35 | |||
36 | /** | ||
37 | * 授权书/委托书 | ||
38 | */ | ||
39 | @Schema(description = "授权书/委托书") | ||
40 | private String letterOfAuthorization; | ||
41 | |||
42 | /** | ||
43 | * 公证处出具的代理声明 | ||
44 | */ | ||
45 | @Schema(description = "公证处出具的代理声明") | ||
46 | private String notaryOfficeStatement; | ||
47 | |||
48 | /** | ||
49 | * 行业资质类委托备案证明 | ||
50 | */ | ||
51 | @Schema(description = "行业资质类委托备案证明") | ||
52 | private String filingCertificate; | ||
53 | |||
54 | /** | ||
55 | * 其他第三方可信声明 | ||
56 | */ | ||
57 | @Schema(description = "其他第三方可信声明") | ||
58 | private String thirdPartyCertification; | ||
59 | |||
60 | /******** 库表存储属性 需处理 *****/ | ||
61 | |||
62 | /******** 自定义扩展 *****/ | ||
63 | |||
64 | /******** 子对象 *****/ | ||
65 | |||
66 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 法人用户附加信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:30 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("法人用户附加信息") | ||
22 | public class MfTdsCorporationAdditional extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人Guid | ||
32 | */ | ||
33 | @Name("法人Guid") | ||
34 | private String corporationGuid; | ||
35 | |||
36 | /** | ||
37 | * 注册地址 | ||
38 | */ | ||
39 | @Name("注册地址") | ||
40 | private String registeredAddress; | ||
41 | |||
42 | /** | ||
43 | * 注册金额 | ||
44 | */ | ||
45 | @Name("注册金额") | ||
46 | private Integer registrationAmount; | ||
47 | |||
48 | /** | ||
49 | * 注册日期 | ||
50 | */ | ||
51 | @Name("注册日期") | ||
52 | private Date registeredDate; | ||
53 | |||
54 | /** | ||
55 | * 经营范围 | ||
56 | */ | ||
57 | @Name("经营范围") | ||
58 | private String businessNature; | ||
59 | |||
60 | /** | ||
61 | * 行业类型(参考数据字典行业类型) | ||
62 | */ | ||
63 | @Name("行业类型(参考数据字典行业类型)") | ||
64 | private String industryTypeCode; | ||
65 | |||
66 | /** | ||
67 | * 行业小类(参考数据字典行业小类) | ||
68 | */ | ||
69 | @Name("行业小类(参考数据字典行业小类)") | ||
70 | private String industrySubcategoryCode; | ||
71 | |||
72 | /** | ||
73 | * 电子营业执照 | ||
74 | */ | ||
75 | @Name("电子营业执照") | ||
76 | private String businessLicense; | ||
77 | |||
78 | /** | ||
79 | * 核准机构 | ||
80 | */ | ||
81 | @Name("核准机构") | ||
82 | private String approvalAuthority; | ||
83 | |||
84 | /** | ||
85 | * 社保卡卡号 | ||
86 | */ | ||
87 | @Name("社保卡卡号") | ||
88 | private String socialSecurityCard; | ||
89 | |||
90 | /** | ||
91 | * 社保卡发放地 | ||
92 | */ | ||
93 | @Name("社保卡发放地") | ||
94 | private String socialSecurityIssuance; | ||
95 | |||
96 | /** | ||
97 | * 纳税人识别号 | ||
98 | */ | ||
99 | @Name("纳税人识别号") | ||
100 | private String taxpayerIdentificationNumber; | ||
101 | |||
102 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 法人用户身份信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:30 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("法人用户身份信息") | ||
22 | public class MfTdsCorporationIdentity extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人或其他组织名称 | ||
32 | */ | ||
33 | @Name("法人或其他组织名称") | ||
34 | private String corporationName; | ||
35 | |||
36 | /** | ||
37 | * 法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份) | ||
38 | */ | ||
39 | @Name("法人或其他组织身份标识(平台生成的唯一标识法人或其他组织身份)") | ||
40 | private String corporationIdentity; | ||
41 | |||
42 | /** | ||
43 | * 统一社会信用代码 | ||
44 | */ | ||
45 | @Name("统一社会信用代码") | ||
46 | private String socialCreditCode; | ||
47 | |||
48 | /** | ||
49 | * 法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;) | ||
50 | */ | ||
51 | @Name("法人或其他组织类型(0 机关法人;1 企事业单位法人;2 社会团体法人;3 非法人组织;4 其它;)") | ||
52 | private Integer corporationType; | ||
53 | |||
54 | /** | ||
55 | * 经营期限起始 | ||
56 | */ | ||
57 | @Name("经营期限起始") | ||
58 | private Date businessStartTime; | ||
59 | |||
60 | /** | ||
61 | * 经营期限截止 | ||
62 | */ | ||
63 | @Name("经营期限截止") | ||
64 | private Date businessEndTime; | ||
65 | |||
66 | /** | ||
67 | * 实名认证状态(0 未认证 ;1 已认证) | ||
68 | */ | ||
69 | @Name("实名认证状态(0 未认证 ;1 已认证)") | ||
70 | private Integer authenticationStatus; | ||
71 | |||
72 | /** | ||
73 | * 实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它) | ||
74 | */ | ||
75 | @Name("实名认证方式(0 人工核验;1 对公账户打款(采用此方式需要法人提供法人对公账 户、开户银行、开户名) ;2 市场监管总局认证;3 其它)") | ||
76 | private Integer authenticationMethod; | ||
77 | |||
78 | /** | ||
79 | * 实名认证时间 | ||
80 | */ | ||
81 | @Name("实名认证时间") | ||
82 | private Date authenticationTime; | ||
83 | |||
84 | /** | ||
85 | * 法定代表人或负责人姓名 | ||
86 | */ | ||
87 | @Name("法定代表人或负责人姓名") | ||
88 | private String corporationRepresentative; | ||
89 | |||
90 | /** | ||
91 | * 法定代表人或负责人证件号 | ||
92 | */ | ||
93 | @Name("法定代表人或负责人证件号") | ||
94 | private String legalRepresentativeIdNumber; | ||
95 | |||
96 | /** | ||
97 | * 法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
98 | */ | ||
99 | @Name("法定代表人或负责人实名等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
100 | private Integer legalRepresentativeAuthenticationLevel; | ||
101 | |||
102 | /** | ||
103 | * 法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
104 | */ | ||
105 | @Name("法定代表人或负责人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
106 | private Integer legalRepresentativeAuthenticationMethod; | ||
107 | |||
108 | /** | ||
109 | * 身份状态(0 不可用 ;1 可用) | ||
110 | */ | ||
111 | @Name("身份状态(0 不可用 ;1 可用)") | ||
112 | private Integer identityStatus; | ||
113 | |||
114 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 法人用户可验信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:30 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("法人用户可验信息") | ||
22 | public class MfTdsCorporationVerifiable extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 法人Guid | ||
32 | */ | ||
33 | @Name("法人Guid") | ||
34 | private String corporationGuid; | ||
35 | |||
36 | /** | ||
37 | * 行业资质证书 | ||
38 | */ | ||
39 | @Name("行业资质证书") | ||
40 | private String industryQualificationCertificate; | ||
41 | |||
42 | /** | ||
43 | * 产品或服务合规认证 | ||
44 | */ | ||
45 | @Name("产品或服务合规认证") | ||
46 | private String productComplianceCertification; | ||
47 | |||
48 | /** | ||
49 | * 企业信用评级 | ||
50 | */ | ||
51 | @Name("企业信用评级") | ||
52 | private String corporateCreditRating; | ||
53 | |||
54 | /** | ||
55 | * 纳税信用等级 | ||
56 | */ | ||
57 | @Name("纳税信用等级") | ||
58 | private String taxCreditRating; | ||
59 | |||
60 | /** | ||
61 | * 商标/知识产权登记 | ||
62 | */ | ||
63 | @Name("商标/知识产权登记") | ||
64 | private String intellectualPropertyRegistration; | ||
65 | |||
66 | /** | ||
67 | * 其他第三方可信声明 | ||
68 | */ | ||
69 | @Name("其他第三方可信声明") | ||
70 | private String thirdPartyCertification; | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 经办人用户附加信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:31 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("经办人用户附加信息") | ||
22 | public class MfTdsOperatorAdditional extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人Guid | ||
32 | */ | ||
33 | @Name("经办人Guid") | ||
34 | private String operatorGuid; | ||
35 | |||
36 | /** | ||
37 | * 法人或其他组织名称 | ||
38 | */ | ||
39 | @Name("法人或其他组织名称") | ||
40 | private String enterpriseName; | ||
41 | |||
42 | /** | ||
43 | * 电子营业执照 | ||
44 | */ | ||
45 | @Name("电子营业执照") | ||
46 | private String businessLicense; | ||
47 | |||
48 | /** | ||
49 | * 社保卡卡号 | ||
50 | */ | ||
51 | @Name("社保卡卡号") | ||
52 | private String socialSecurityCard; | ||
53 | |||
54 | /** | ||
55 | * 社保卡发放地 | ||
56 | */ | ||
57 | @Name("社保卡发放地") | ||
58 | private String socialSecurityIssuance; | ||
59 | |||
60 | /** | ||
61 | * 支付宝账号 | ||
62 | */ | ||
63 | @Name("支付宝账号") | ||
64 | private String alipayAccount; | ||
65 | |||
66 | /** | ||
67 | * 微信账号 | ||
68 | */ | ||
69 | @Name("微信账号") | ||
70 | private String wechatAccount; | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 经办人用户身份信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:31 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("经办人用户身份信息") | ||
22 | public class MfTdsOperatorIdentity extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人姓名 | ||
32 | */ | ||
33 | @Name("经办人姓名") | ||
34 | private String operatorName; | ||
35 | |||
36 | /** | ||
37 | * 经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份) | ||
38 | */ | ||
39 | @Name("经办人身份标识(由区域/行业功能节点生成,唯一标识经办人身份)") | ||
40 | private String operatorIdentity; | ||
41 | |||
42 | /** | ||
43 | * 经办人证件类型(来之数据字典证件类型) | ||
44 | */ | ||
45 | @Name("经办人证件类型(来之数据字典证件类型)") | ||
46 | private String idTypeCode; | ||
47 | |||
48 | /** | ||
49 | * 经办人证件号码 | ||
50 | */ | ||
51 | @Name("经办人证件号码") | ||
52 | private String idNumber; | ||
53 | |||
54 | /** | ||
55 | * 经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验) | ||
56 | */ | ||
57 | @Name("经办人实名认证等级(0 未实名;1 身份证实名核验或社保卡实名核验;2 在实名核验基础上增加人脸识别或其他生物特征核验)") | ||
58 | private Integer authenticationLevel; | ||
59 | |||
60 | /** | ||
61 | * 经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台) | ||
62 | */ | ||
63 | @Name("经办人实名认证方式(1 公安部、人社部实名服务;2 国家政务服务平台实名服务;3 微信、支付宝、通讯运营商等第三方平台)") | ||
64 | private Integer authenticationMethod; | ||
65 | |||
66 | /** | ||
67 | * 经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认) | ||
68 | */ | ||
69 | @Name("经办人授权方式(1 管理员确认; 2 上传授权书; 3 短信或邮件确认)") | ||
70 | private Integer authorizationMethod; | ||
71 | |||
72 | /** | ||
73 | * 统一社会信用代码 | ||
74 | */ | ||
75 | @Name("统一社会信用代码") | ||
76 | private String socialCreditCode; | ||
77 | |||
78 | /** | ||
79 | * 认证日期 | ||
80 | */ | ||
81 | @Name("认证日期") | ||
82 | private Date authenticationTime; | ||
83 | |||
84 | /** | ||
85 | * 身份状态(0 不可用 ;1 可用) | ||
86 | */ | ||
87 | @Name("身份状态(0 不可用 ;1 可用)") | ||
88 | private Integer identityStatus; | ||
89 | |||
90 | } |
1 | package com.csbr.qingcloud.portal.mybatis.entity; | ||
2 | |||
3 | import com.baomidou.mybatisplus.annotation.FieldStrategy; | ||
4 | import com.baomidou.mybatisplus.annotation.TableField; | ||
5 | import csbr.cloud.entity.domain.base.dao.BaseDO; | ||
6 | import jdk.jfr.Name; | ||
7 | import lombok.Data; | ||
8 | import lombok.EqualsAndHashCode; | ||
9 | import lombok.experimental.Accessors; | ||
10 | import java.util.Date; | ||
11 | |||
12 | /** | ||
13 | * @program: | ||
14 | * @description: 经办人用户可验信息实体 | ||
15 | * @author: xup | ||
16 | * @create: 2025-08-14 17:31 | ||
17 | **/ | ||
18 | @Data | ||
19 | @EqualsAndHashCode(callSuper = true) | ||
20 | @Accessors(chain = true) | ||
21 | @Name("经办人用户可验信息") | ||
22 | public class MfTdsOperatorVerifiable extends BaseDO { | ||
23 | |||
24 | /** | ||
25 | * 会员Guid | ||
26 | */ | ||
27 | @Name("会员Guid") | ||
28 | private String tenantGuid; | ||
29 | |||
30 | /** | ||
31 | * 经办人Guid | ||
32 | */ | ||
33 | @Name("经办人Guid") | ||
34 | private String operatorGuid; | ||
35 | |||
36 | /** | ||
37 | * 授权书/委托书 | ||
38 | */ | ||
39 | @Name("授权书/委托书") | ||
40 | private String letterOfAuthorization; | ||
41 | |||
42 | /** | ||
43 | * 公证处出具的代理声明 | ||
44 | */ | ||
45 | @Name("公证处出具的代理声明") | ||
46 | private String notaryOfficeStatement; | ||
47 | |||
48 | /** | ||
49 | * 行业资质类委托备案证明 | ||
50 | */ | ||
51 | @Name("行业资质类委托备案证明") | ||
52 | private String filingCertificate; | ||
53 | |||
54 | /** | ||
55 | * 其他第三方可信声明 | ||
56 | */ | ||
57 | @Name("其他第三方可信声明") | ||
58 | private String thirdPartyCertification; | ||
59 | |||
60 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/mapper/MfTdsCorporationAdditionalMapper.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationAdditional; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 法人用户附加信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:30 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsCorporationAdditionalMapper extends BaseMapper<MfTdsCorporationAdditional> { | ||
15 | |||
16 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/mapper/MfTdsCorporationIdentityMapper.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationIdentity; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 法人用户身份信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:30 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsCorporationIdentityMapper extends BaseMapper<MfTdsCorporationIdentity> { | ||
15 | |||
16 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/mapper/MfTdsCorporationVerifiableMapper.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationVerifiable; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 法人用户可验信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:30 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsCorporationVerifiableMapper extends BaseMapper<MfTdsCorporationVerifiable> { | ||
15 | |||
16 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/mapper/MfTdsOperatorAdditionalMapper.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorAdditional; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 经办人用户附加信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:31 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsOperatorAdditionalMapper extends BaseMapper<MfTdsOperatorAdditional> { | ||
15 | |||
16 | } |
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorIdentity; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 经办人用户身份信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:31 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsOperatorIdentityMapper extends BaseMapper<MfTdsOperatorIdentity> { | ||
15 | |||
16 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/mapper/MfTdsOperatorVerifiableMapper.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.mapper; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
4 | import org.apache.ibatis.annotations.Mapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorVerifiable; | ||
6 | |||
7 | /** | ||
8 | * @program: | ||
9 | * @description: 经办人用户可验信息 Mapper 接口 | ||
10 | * @author: xup | ||
11 | * @create: 2025-08-14 17:31 | ||
12 | **/ | ||
13 | @Mapper | ||
14 | public interface MfTdsOperatorVerifiableMapper extends BaseMapper<MfTdsOperatorVerifiable> { | ||
15 | |||
16 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsCorporationAdditionalService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationAdditional; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 法人用户附加信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:30 | ||
11 | **/ | ||
12 | public interface MfTdsCorporationAdditionalService extends CsbrService<MfTdsCorporationAdditional> { | ||
13 | |||
14 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsCorporationIdentityService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationIdentity; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 法人用户身份信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:30 | ||
11 | **/ | ||
12 | public interface MfTdsCorporationIdentityService extends CsbrService<MfTdsCorporationIdentity> { | ||
13 | |||
14 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsCorporationVerifiableService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationVerifiable; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 法人用户可验信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:30 | ||
11 | **/ | ||
12 | public interface MfTdsCorporationVerifiableService extends CsbrService<MfTdsCorporationVerifiable> { | ||
13 | |||
14 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsOperatorAdditionalService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorAdditional; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 经办人用户附加信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:31 | ||
11 | **/ | ||
12 | public interface MfTdsOperatorAdditionalService extends CsbrService<MfTdsOperatorAdditional> { | ||
13 | |||
14 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsOperatorIdentityService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorIdentity; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 经办人用户身份信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:31 | ||
11 | **/ | ||
12 | public interface MfTdsOperatorIdentityService extends CsbrService<MfTdsOperatorIdentity> { | ||
13 | |||
14 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/MfTdsOperatorVerifiableService.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service; | ||
2 | |||
3 | import com.csbr.cloud.base.service.CsbrService; | ||
4 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorVerifiable; | ||
5 | |||
6 | /** | ||
7 | * @program: | ||
8 | * @description: 经办人用户可验信息逻辑层接口 | ||
9 | * @author: xup | ||
10 | * @create: 2025-08-14 17:31 | ||
11 | **/ | ||
12 | public interface MfTdsOperatorVerifiableService extends CsbrService<MfTdsOperatorVerifiable> { | ||
13 | |||
14 | } |
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsCorporationAdditionalMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationAdditional; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationAdditionalService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户附加信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsCorporationAdditionalServiceImpl extends CsbrServiceImpl<MfTdsCorporationAdditionalMapper, MfTdsCorporationAdditional> implements MfTdsCorporationAdditionalService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsCorporationAdditionalMapper mfTdsCorporationAdditionalMapper; | ||
21 | |||
22 | } |
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsCorporationIdentityMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationIdentity; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationIdentityService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户身份信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsCorporationIdentityServiceImpl extends CsbrServiceImpl<MfTdsCorporationIdentityMapper, MfTdsCorporationIdentity> implements MfTdsCorporationIdentityService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsCorporationIdentityMapper mfTdsCorporationIdentityMapper; | ||
21 | |||
22 | } |
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsCorporationVerifiableMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationVerifiable; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationVerifiableService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户可验信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsCorporationVerifiableServiceImpl extends CsbrServiceImpl<MfTdsCorporationVerifiableMapper, MfTdsCorporationVerifiable> implements MfTdsCorporationVerifiableService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsCorporationVerifiableMapper mfTdsCorporationVerifiableMapper; | ||
21 | |||
22 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/impl/MfTdsOperatorAdditionalServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsOperatorAdditionalMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorAdditional; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorAdditionalService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户附加信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsOperatorAdditionalServiceImpl extends CsbrServiceImpl<MfTdsOperatorAdditionalMapper, MfTdsOperatorAdditional> implements MfTdsOperatorAdditionalService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsOperatorAdditionalMapper mfTdsOperatorAdditionalMapper; | ||
21 | |||
22 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/impl/MfTdsOperatorIdentityServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsOperatorIdentityMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorIdentity; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorIdentityService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户身份信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsOperatorIdentityServiceImpl extends CsbrServiceImpl<MfTdsOperatorIdentityMapper, MfTdsOperatorIdentity> implements MfTdsOperatorIdentityService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsOperatorIdentityMapper mfTdsOperatorIdentityMapper; | ||
21 | |||
22 | } |
src/main/java/com/csbr/qingcloud/portal/mybatis/service/impl/MfTdsOperatorVerifiableServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.mybatis.service.impl; | ||
2 | |||
3 | import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl; | ||
4 | import com.csbr.qingcloud.portal.mybatis.mapper.MfTdsOperatorVerifiableMapper; | ||
5 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorVerifiable; | ||
6 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorVerifiableService; | ||
7 | import jakarta.annotation.Resource; | ||
8 | import org.springframework.stereotype.Service; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户可验信息逻辑层接口实现 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | @Service | ||
17 | public class MfTdsOperatorVerifiableServiceImpl extends CsbrServiceImpl<MfTdsOperatorVerifiableMapper, MfTdsOperatorVerifiable> implements MfTdsOperatorVerifiableService { | ||
18 | |||
19 | @Resource | ||
20 | private MfTdsOperatorVerifiableMapper mfTdsOperatorVerifiableMapper; | ||
21 | |||
22 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户附加信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | public interface TdsCorporationAdditionalService { | ||
17 | |||
18 | /** | ||
19 | * 法人用户附加信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:30 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsCorporationAdditionalRSVO> pageList(TdsCorporationAdditionalQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 法人用户附加信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:30 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO | ||
33 | */ | ||
34 | TdsCorporationAdditionalRSVO getTdsCorporationAdditionalDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 法人用户附加信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:30 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsCorporationAdditional(TdsCorporationAdditionalRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 法人用户附加信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:30 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsCorporationAdditional(TdsCorporationAdditionalRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 法人用户附加信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:30 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 法人用户附加信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:30 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户身份信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | public interface TdsCorporationIdentityService { | ||
17 | |||
18 | /** | ||
19 | * 法人用户身份信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:30 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsCorporationIdentityRSVO> pageList(TdsCorporationIdentityQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 法人用户身份信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:30 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO | ||
33 | */ | ||
34 | TdsCorporationIdentityRSVO getTdsCorporationIdentityDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 法人用户身份信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:30 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsCorporationIdentity(TdsCorporationIdentityRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 法人用户身份信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:30 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsCorporationIdentity(TdsCorporationIdentityRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 法人用户身份信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:30 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 法人用户身份信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:30 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 法人用户可验信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:30 | ||
15 | **/ | ||
16 | public interface TdsCorporationVerifiableService { | ||
17 | |||
18 | /** | ||
19 | * 法人用户可验信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:30 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsCorporationVerifiableRSVO> pageList(TdsCorporationVerifiableQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 法人用户可验信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:30 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO | ||
33 | */ | ||
34 | TdsCorporationVerifiableRSVO getTdsCorporationVerifiableDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 法人用户可验信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:30 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsCorporationVerifiable(TdsCorporationVerifiableRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 法人用户可验信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:30 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsCorporationVerifiable(TdsCorporationVerifiableRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 法人用户可验信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:30 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 法人用户可验信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:30 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户附加信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | public interface TdsOperatorAdditionalService { | ||
17 | |||
18 | /** | ||
19 | * 经办人用户附加信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:31 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsOperatorAdditionalRSVO> pageList(TdsOperatorAdditionalQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 经办人用户附加信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:31 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO | ||
33 | */ | ||
34 | TdsOperatorAdditionalRSVO getTdsOperatorAdditionalDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 经办人用户附加信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:31 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsOperatorAdditional(TdsOperatorAdditionalRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 经办人用户附加信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:31 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsOperatorAdditional(TdsOperatorAdditionalRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 经办人用户附加信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:31 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 经办人用户附加信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:31 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户身份信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | public interface TdsOperatorIdentityService { | ||
17 | |||
18 | /** | ||
19 | * 经办人用户身份信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:31 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsOperatorIdentityRSVO> pageList(TdsOperatorIdentityQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 经办人用户身份信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:31 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO | ||
33 | */ | ||
34 | TdsOperatorIdentityRSVO getTdsOperatorIdentityDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 经办人用户身份信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:31 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsOperatorIdentity(TdsOperatorIdentityRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 经办人用户身份信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:31 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsOperatorIdentity(TdsOperatorIdentityRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 经办人用户身份信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:31 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 经办人用户身份信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:31 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
1 | package com.csbr.qingcloud.portal.service; | ||
2 | |||
3 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
4 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableQueryVO; | ||
5 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRQVO; | ||
6 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO; | ||
7 | |||
8 | import java.util.List; | ||
9 | |||
10 | /** | ||
11 | * @program: | ||
12 | * @description: 经办人用户可验信息业务逻辑接口 | ||
13 | * @author: xup | ||
14 | * @create: 2025-08-14 17:31 | ||
15 | **/ | ||
16 | public interface TdsOperatorVerifiableService { | ||
17 | |||
18 | /** | ||
19 | * 经办人用户可验信息分页查询 | ||
20 | * @author xup | ||
21 | * @date 2025-08-14 17:31 | ||
22 | * @param queryVO | ||
23 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO> | ||
24 | */ | ||
25 | PageListVO<TdsOperatorVerifiableRSVO> pageList(TdsOperatorVerifiableQueryVO queryVO); | ||
26 | |||
27 | /** | ||
28 | * 经办人用户可验信息获取详情数据 | ||
29 | * @author xup | ||
30 | * @date 2025-08-14 17:31 | ||
31 | * @param guid | ||
32 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO | ||
33 | */ | ||
34 | TdsOperatorVerifiableRSVO getTdsOperatorVerifiableDetail(String guid); | ||
35 | |||
36 | /** | ||
37 | * 经办人用户可验信息数据新增 | ||
38 | * @author xup | ||
39 | * @date 2025-08-14 17:31 | ||
40 | * @param rqVO | ||
41 | * @return boolean | ||
42 | */ | ||
43 | void saveTdsOperatorVerifiable(TdsOperatorVerifiableRQVO rqVO); | ||
44 | |||
45 | /** | ||
46 | * 经办人用户可验信息数据修改 | ||
47 | * @author xup | ||
48 | * @date 2025-08-14 17:31 | ||
49 | * @param rqVO | ||
50 | * @return boolean | ||
51 | */ | ||
52 | void updateTdsOperatorVerifiable(TdsOperatorVerifiableRQVO rqVO); | ||
53 | |||
54 | /** | ||
55 | * 经办人用户可验信息数据删除 | ||
56 | * @author xup | ||
57 | * @date 2025-08-14 17:31 | ||
58 | * @param guids | ||
59 | * @return void | ||
60 | */ | ||
61 | void removeByGuids(List<String> guids); | ||
62 | |||
63 | /** | ||
64 | * 经办人用户可验信息数据删除、并有相关的处理操作 | ||
65 | * @author xup | ||
66 | * @date 2025-08-14 17:31 | ||
67 | * @param guids | ||
68 | * @return void | ||
69 | */ | ||
70 | void removeHandleByGuids(List<String> guids); | ||
71 | |||
72 | } |
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsCorporationAdditionalServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationAdditional; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationAdditionalService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsCorporationAdditionalService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 法人用户附加信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:30 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsCorporationAdditionalServiceImpl implements TdsCorporationAdditionalService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "法人用户附加信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsCorporationAdditionalService mfTdsCorporationAdditionalService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 法人用户附加信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:30 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsCorporationAdditionalRSVO> pageList(TdsCorporationAdditionalQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsCorporationAdditional> queryWrapper = mfTdsCorporationAdditionalService.csbrQueryWrapper(queryVO, MfTdsCorporationAdditional.class); | ||
62 | queryWrapper.orderByDesc(MfTdsCorporationAdditional::getCreateTime); | ||
63 | PageListVO<MfTdsCorporationAdditional> pageList = mfTdsCorporationAdditionalService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsCorporationAdditionalRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 法人用户附加信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:30 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsCorporationAdditionalRSVO getTdsCorporationAdditionalDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsCorporationAdditional entity = mfTdsCorporationAdditionalService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 法人用户附加信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:30 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsCorporationAdditional(TdsCorporationAdditionalRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsCorporationAdditional entity = convertToEntity(rqVO); | ||
102 | mfTdsCorporationAdditionalService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsCorporationAdditionalService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 法人用户附加信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:30 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsCorporationAdditional(TdsCorporationAdditionalRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsCorporationAdditional oldEntity = mfTdsCorporationAdditionalService.getById(rqVO.getGuid()); | ||
122 | MfTdsCorporationAdditional oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsCorporationAdditional entity = convertToEntity(rqVO); | ||
125 | mfTdsCorporationAdditionalService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsCorporationAdditionalService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 法人用户附加信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:30 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsCorporationAdditionalService.isExistsData(guids, MfTdsCorporationAdditional.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsCorporationAdditionalService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 法人用户附加信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:30 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsCorporationAdditional entity = mfTdsCorporationAdditionalService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsCorporationAdditionalService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 法人用户附加信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:30 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsCorporationAdditionalRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 法人用户附加信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:30 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsCorporationAdditionalRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 法人用户附加信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:30 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsCorporationAdditionalRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsCorporationAdditionalService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsCorporationAdditional.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 法人用户附加信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:30 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsCorporationAdditionalRQVO rqVO, MfTdsCorporationAdditional entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 法人用户附加信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:30 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsCorporationAdditional entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 法人用户附加信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:30 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsCorporationAdditional entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 法人用户附加信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:30 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsCorporationAdditionalQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 法人用户附加信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:30 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsCorporationAdditional> pageList, PageListVO<TdsCorporationAdditionalRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsCorporationAdditionalRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsCorporationAdditional item : pageList.getRecords()){ | ||
358 | TdsCorporationAdditionalRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 法人用户附加信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:30 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsCorporationAdditionalRSVO> convertToVO(List<MfTdsCorporationAdditional> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsCorporationAdditionalRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsCorporationAdditional item : entityList) { | ||
382 | TdsCorporationAdditionalRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 法人用户附加信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:30 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationAdditionalRSVO | ||
394 | */ | ||
395 | private TdsCorporationAdditionalRSVO convertToVO(MfTdsCorporationAdditional entity) { | ||
396 | TdsCorporationAdditionalRSVO vo = csbrBeanUtil.convert(entity, TdsCorporationAdditionalRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 法人用户附加信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:30 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationAdditional | ||
406 | */ | ||
407 | private MfTdsCorporationAdditional convertToEntity(TdsCorporationAdditionalRQVO vo) { | ||
408 | MfTdsCorporationAdditional entity = csbrBeanUtil.convert(vo, MfTdsCorporationAdditional.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsCorporationIdentityServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationIdentity; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationIdentityService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsCorporationIdentityService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 法人用户身份信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:30 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsCorporationIdentityServiceImpl implements TdsCorporationIdentityService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "法人用户身份信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsCorporationIdentityService mfTdsCorporationIdentityService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 法人用户身份信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:30 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsCorporationIdentityRSVO> pageList(TdsCorporationIdentityQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsCorporationIdentity> queryWrapper = mfTdsCorporationIdentityService.csbrQueryWrapper(queryVO, MfTdsCorporationIdentity.class); | ||
62 | queryWrapper.orderByDesc(MfTdsCorporationIdentity::getCreateTime); | ||
63 | PageListVO<MfTdsCorporationIdentity> pageList = mfTdsCorporationIdentityService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsCorporationIdentityRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 法人用户身份信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:30 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsCorporationIdentityRSVO getTdsCorporationIdentityDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsCorporationIdentity entity = mfTdsCorporationIdentityService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 法人用户身份信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:30 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsCorporationIdentity(TdsCorporationIdentityRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsCorporationIdentity entity = convertToEntity(rqVO); | ||
102 | mfTdsCorporationIdentityService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsCorporationIdentityService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 法人用户身份信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:30 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsCorporationIdentity(TdsCorporationIdentityRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsCorporationIdentity oldEntity = mfTdsCorporationIdentityService.getById(rqVO.getGuid()); | ||
122 | MfTdsCorporationIdentity oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsCorporationIdentity entity = convertToEntity(rqVO); | ||
125 | mfTdsCorporationIdentityService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsCorporationIdentityService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 法人用户身份信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:30 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsCorporationIdentityService.isExistsData(guids, MfTdsCorporationIdentity.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsCorporationIdentityService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 法人用户身份信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:30 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsCorporationIdentity entity = mfTdsCorporationIdentityService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsCorporationIdentityService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 法人用户身份信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:30 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsCorporationIdentityRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 法人用户身份信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:30 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsCorporationIdentityRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 法人用户身份信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:30 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsCorporationIdentityRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsCorporationIdentityService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsCorporationIdentity.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 法人用户身份信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:30 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsCorporationIdentityRQVO rqVO, MfTdsCorporationIdentity entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 法人用户身份信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:30 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsCorporationIdentity entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 法人用户身份信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:30 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsCorporationIdentity entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 法人用户身份信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:30 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsCorporationIdentityQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 法人用户身份信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:30 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsCorporationIdentity> pageList, PageListVO<TdsCorporationIdentityRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsCorporationIdentityRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsCorporationIdentity item : pageList.getRecords()){ | ||
358 | TdsCorporationIdentityRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 法人用户身份信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:30 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsCorporationIdentityRSVO> convertToVO(List<MfTdsCorporationIdentity> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsCorporationIdentityRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsCorporationIdentity item : entityList) { | ||
382 | TdsCorporationIdentityRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 法人用户身份信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:30 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationIdentityRSVO | ||
394 | */ | ||
395 | private TdsCorporationIdentityRSVO convertToVO(MfTdsCorporationIdentity entity) { | ||
396 | TdsCorporationIdentityRSVO vo = csbrBeanUtil.convert(entity, TdsCorporationIdentityRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 法人用户身份信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:30 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationIdentity | ||
406 | */ | ||
407 | private MfTdsCorporationIdentity convertToEntity(TdsCorporationIdentityRQVO vo) { | ||
408 | MfTdsCorporationIdentity entity = csbrBeanUtil.convert(vo, MfTdsCorporationIdentity.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsCorporationVerifiableServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationVerifiable; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsCorporationVerifiableService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsCorporationVerifiableService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 法人用户可验信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:30 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsCorporationVerifiableServiceImpl implements TdsCorporationVerifiableService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "法人用户可验信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsCorporationVerifiableService mfTdsCorporationVerifiableService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 法人用户可验信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:30 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsCorporationVerifiableRSVO> pageList(TdsCorporationVerifiableQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsCorporationVerifiable> queryWrapper = mfTdsCorporationVerifiableService.csbrQueryWrapper(queryVO, MfTdsCorporationVerifiable.class); | ||
62 | queryWrapper.orderByDesc(MfTdsCorporationVerifiable::getCreateTime); | ||
63 | PageListVO<MfTdsCorporationVerifiable> pageList = mfTdsCorporationVerifiableService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsCorporationVerifiableRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 法人用户可验信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:30 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsCorporationVerifiableRSVO getTdsCorporationVerifiableDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsCorporationVerifiable entity = mfTdsCorporationVerifiableService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 法人用户可验信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:30 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsCorporationVerifiable(TdsCorporationVerifiableRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsCorporationVerifiable entity = convertToEntity(rqVO); | ||
102 | mfTdsCorporationVerifiableService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsCorporationVerifiableService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 法人用户可验信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:30 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsCorporationVerifiable(TdsCorporationVerifiableRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsCorporationVerifiable oldEntity = mfTdsCorporationVerifiableService.getById(rqVO.getGuid()); | ||
122 | MfTdsCorporationVerifiable oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsCorporationVerifiable entity = convertToEntity(rqVO); | ||
125 | mfTdsCorporationVerifiableService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsCorporationVerifiableService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 法人用户可验信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:30 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsCorporationVerifiableService.isExistsData(guids, MfTdsCorporationVerifiable.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsCorporationVerifiableService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 法人用户可验信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:30 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsCorporationVerifiable entity = mfTdsCorporationVerifiableService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsCorporationVerifiableService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 法人用户可验信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:30 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsCorporationVerifiableRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 法人用户可验信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:30 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsCorporationVerifiableRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 法人用户可验信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:30 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsCorporationVerifiableRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsCorporationVerifiableService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsCorporationVerifiable.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 法人用户可验信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:30 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsCorporationVerifiableRQVO rqVO, MfTdsCorporationVerifiable entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 法人用户可验信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:30 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsCorporationVerifiable entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 法人用户可验信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:30 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsCorporationVerifiable entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 法人用户可验信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:30 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsCorporationVerifiableQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 法人用户可验信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:30 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsCorporationVerifiable> pageList, PageListVO<TdsCorporationVerifiableRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsCorporationVerifiableRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsCorporationVerifiable item : pageList.getRecords()){ | ||
358 | TdsCorporationVerifiableRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 法人用户可验信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:30 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsCorporationVerifiableRSVO> convertToVO(List<MfTdsCorporationVerifiable> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsCorporationVerifiableRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsCorporationVerifiable item : entityList) { | ||
382 | TdsCorporationVerifiableRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 法人用户可验信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:30 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsCorporationVerifiableRSVO | ||
394 | */ | ||
395 | private TdsCorporationVerifiableRSVO convertToVO(MfTdsCorporationVerifiable entity) { | ||
396 | TdsCorporationVerifiableRSVO vo = csbrBeanUtil.convert(entity, TdsCorporationVerifiableRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 法人用户可验信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:30 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsCorporationVerifiable | ||
406 | */ | ||
407 | private MfTdsCorporationVerifiable convertToEntity(TdsCorporationVerifiableRQVO vo) { | ||
408 | MfTdsCorporationVerifiable entity = csbrBeanUtil.convert(vo, MfTdsCorporationVerifiable.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsOperatorAdditionalServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorAdditional; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorAdditionalService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsOperatorAdditionalService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 经办人用户附加信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:31 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsOperatorAdditionalServiceImpl implements TdsOperatorAdditionalService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "经办人用户附加信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsOperatorAdditionalService mfTdsOperatorAdditionalService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 经办人用户附加信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:31 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsOperatorAdditionalRSVO> pageList(TdsOperatorAdditionalQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsOperatorAdditional> queryWrapper = mfTdsOperatorAdditionalService.csbrQueryWrapper(queryVO, MfTdsOperatorAdditional.class); | ||
62 | queryWrapper.orderByDesc(MfTdsOperatorAdditional::getCreateTime); | ||
63 | PageListVO<MfTdsOperatorAdditional> pageList = mfTdsOperatorAdditionalService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsOperatorAdditionalRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 经办人用户附加信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:31 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsOperatorAdditionalRSVO getTdsOperatorAdditionalDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsOperatorAdditional entity = mfTdsOperatorAdditionalService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 经办人用户附加信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:31 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsOperatorAdditional(TdsOperatorAdditionalRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsOperatorAdditional entity = convertToEntity(rqVO); | ||
102 | mfTdsOperatorAdditionalService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsOperatorAdditionalService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 经办人用户附加信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:31 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsOperatorAdditional(TdsOperatorAdditionalRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsOperatorAdditional oldEntity = mfTdsOperatorAdditionalService.getById(rqVO.getGuid()); | ||
122 | MfTdsOperatorAdditional oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsOperatorAdditional entity = convertToEntity(rqVO); | ||
125 | mfTdsOperatorAdditionalService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsOperatorAdditionalService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 经办人用户附加信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:31 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsOperatorAdditionalService.isExistsData(guids, MfTdsOperatorAdditional.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsOperatorAdditionalService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 经办人用户附加信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:31 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsOperatorAdditional entity = mfTdsOperatorAdditionalService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsOperatorAdditionalService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 经办人用户附加信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:31 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsOperatorAdditionalRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 经办人用户附加信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:31 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsOperatorAdditionalRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 经办人用户附加信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:31 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsOperatorAdditionalRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsOperatorAdditionalService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsOperatorAdditional.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 经办人用户附加信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:31 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsOperatorAdditionalRQVO rqVO, MfTdsOperatorAdditional entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 经办人用户附加信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:31 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsOperatorAdditional entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 经办人用户附加信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:31 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsOperatorAdditional entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 经办人用户附加信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:31 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsOperatorAdditionalQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 经办人用户附加信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:31 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsOperatorAdditional> pageList, PageListVO<TdsOperatorAdditionalRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsOperatorAdditionalRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsOperatorAdditional item : pageList.getRecords()){ | ||
358 | TdsOperatorAdditionalRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 经办人用户附加信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:31 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsOperatorAdditionalRSVO> convertToVO(List<MfTdsOperatorAdditional> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsOperatorAdditionalRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsOperatorAdditional item : entityList) { | ||
382 | TdsOperatorAdditionalRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 经办人用户附加信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:31 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorAdditionalRSVO | ||
394 | */ | ||
395 | private TdsOperatorAdditionalRSVO convertToVO(MfTdsOperatorAdditional entity) { | ||
396 | TdsOperatorAdditionalRSVO vo = csbrBeanUtil.convert(entity, TdsOperatorAdditionalRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 经办人用户附加信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:31 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorAdditional | ||
406 | */ | ||
407 | private MfTdsOperatorAdditional convertToEntity(TdsOperatorAdditionalRQVO vo) { | ||
408 | MfTdsOperatorAdditional entity = csbrBeanUtil.convert(vo, MfTdsOperatorAdditional.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorIdentity; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorIdentityService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsOperatorIdentityService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 经办人用户身份信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:31 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsOperatorIdentityServiceImpl implements TdsOperatorIdentityService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "经办人用户身份信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsOperatorIdentityService mfTdsOperatorIdentityService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 经办人用户身份信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:31 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsOperatorIdentityRSVO> pageList(TdsOperatorIdentityQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsOperatorIdentity> queryWrapper = mfTdsOperatorIdentityService.csbrQueryWrapper(queryVO, MfTdsOperatorIdentity.class); | ||
62 | queryWrapper.orderByDesc(MfTdsOperatorIdentity::getCreateTime); | ||
63 | PageListVO<MfTdsOperatorIdentity> pageList = mfTdsOperatorIdentityService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsOperatorIdentityRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 经办人用户身份信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:31 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsOperatorIdentityRSVO getTdsOperatorIdentityDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsOperatorIdentity entity = mfTdsOperatorIdentityService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 经办人用户身份信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:31 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsOperatorIdentity(TdsOperatorIdentityRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsOperatorIdentity entity = convertToEntity(rqVO); | ||
102 | mfTdsOperatorIdentityService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsOperatorIdentityService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 经办人用户身份信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:31 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsOperatorIdentity(TdsOperatorIdentityRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsOperatorIdentity oldEntity = mfTdsOperatorIdentityService.getById(rqVO.getGuid()); | ||
122 | MfTdsOperatorIdentity oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsOperatorIdentity entity = convertToEntity(rqVO); | ||
125 | mfTdsOperatorIdentityService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsOperatorIdentityService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 经办人用户身份信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:31 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsOperatorIdentityService.isExistsData(guids, MfTdsOperatorIdentity.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsOperatorIdentityService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 经办人用户身份信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:31 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsOperatorIdentity entity = mfTdsOperatorIdentityService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsOperatorIdentityService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 经办人用户身份信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:31 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsOperatorIdentityRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 经办人用户身份信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:31 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsOperatorIdentityRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 经办人用户身份信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:31 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsOperatorIdentityRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsOperatorIdentityService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsOperatorIdentity.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 经办人用户身份信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:31 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsOperatorIdentityRQVO rqVO, MfTdsOperatorIdentity entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 经办人用户身份信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:31 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsOperatorIdentity entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 经办人用户身份信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:31 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsOperatorIdentity entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 经办人用户身份信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:31 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsOperatorIdentityQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 经办人用户身份信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:31 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsOperatorIdentity> pageList, PageListVO<TdsOperatorIdentityRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsOperatorIdentityRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsOperatorIdentity item : pageList.getRecords()){ | ||
358 | TdsOperatorIdentityRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 经办人用户身份信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:31 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsOperatorIdentityRSVO> convertToVO(List<MfTdsOperatorIdentity> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsOperatorIdentityRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsOperatorIdentity item : entityList) { | ||
382 | TdsOperatorIdentityRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 经办人用户身份信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:31 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorIdentityRSVO | ||
394 | */ | ||
395 | private TdsOperatorIdentityRSVO convertToVO(MfTdsOperatorIdentity entity) { | ||
396 | TdsOperatorIdentityRSVO vo = csbrBeanUtil.convert(entity, TdsOperatorIdentityRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 经办人用户身份信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:31 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorIdentity | ||
406 | */ | ||
407 | private MfTdsOperatorIdentity convertToEntity(TdsOperatorIdentityRQVO vo) { | ||
408 | MfTdsOperatorIdentity entity = csbrBeanUtil.convert(vo, MfTdsOperatorIdentity.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
src/main/java/com/csbr/qingcloud/portal/service/impl/TdsOperatorVerifiableServiceImpl.java
0 → 100644
1 | package com.csbr.qingcloud.portal.service.impl; | ||
2 | |||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||
4 | import com.csbr.cloud.common.enums.SystemError; | ||
5 | import com.csbr.cloud.common.exception.CsbrSystemException; | ||
6 | import com.csbr.cloud.common.util.CommonUtil; | ||
7 | import com.csbr.cloud.common.util.CsbrBeanUtil; | ||
8 | import com.csbr.cloud.common.util.MessageSourceUtil; | ||
9 | import csbr.cloud.entity.domain.base.vo.PageListVO; | ||
10 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableQueryVO; | ||
11 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRQVO; | ||
12 | import com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO; | ||
13 | import com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorVerifiable; | ||
14 | import com.csbr.qingcloud.portal.mybatis.service.MfTdsOperatorVerifiableService; | ||
15 | import com.csbr.qingcloud.portal.service.TdsOperatorVerifiableService; | ||
16 | import jakarta.annotation.Resource; | ||
17 | import lombok.extern.slf4j.Slf4j; | ||
18 | import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.apache.commons.lang3.StringUtils; | ||
20 | import org.springframework.stereotype.Service; | ||
21 | import org.springframework.transaction.annotation.Transactional; | ||
22 | |||
23 | import java.util.ArrayList; | ||
24 | import java.util.Collections; | ||
25 | import java.util.List; | ||
26 | |||
27 | /** | ||
28 | * @program: | ||
29 | * @description: 经办人用户可验信息业务逻辑实现 | ||
30 | * @author: xup | ||
31 | * @create: 2025-08-14 17:31 | ||
32 | **/ | ||
33 | @Slf4j | ||
34 | @Service | ||
35 | public class TdsOperatorVerifiableServiceImpl implements TdsOperatorVerifiableService { | ||
36 | |||
37 | /** | ||
38 | * 功能名称 | ||
39 | */ | ||
40 | private static final String FUNCTION_NAME = "经办人用户可验信息"; | ||
41 | |||
42 | @Resource | ||
43 | private MfTdsOperatorVerifiableService mfTdsOperatorVerifiableService; | ||
44 | |||
45 | @Resource | ||
46 | private CsbrBeanUtil csbrBeanUtil; | ||
47 | |||
48 | @Resource | ||
49 | private MessageSourceUtil messageSourceUtil; | ||
50 | |||
51 | /** | ||
52 | * 经办人用户可验信息分页查询 | ||
53 | * @author xup | ||
54 | * @date 2025-08-14 17:31 | ||
55 | * @param queryVO | ||
56 | * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO> | ||
57 | */ | ||
58 | @Override | ||
59 | public PageListVO<TdsOperatorVerifiableRSVO> pageList(TdsOperatorVerifiableQueryVO queryVO) { | ||
60 | beforeQuery(queryVO); | ||
61 | LambdaQueryWrapper<MfTdsOperatorVerifiable> queryWrapper = mfTdsOperatorVerifiableService.csbrQueryWrapper(queryVO, MfTdsOperatorVerifiable.class); | ||
62 | queryWrapper.orderByDesc(MfTdsOperatorVerifiable::getCreateTime); | ||
63 | PageListVO<MfTdsOperatorVerifiable> pageList = mfTdsOperatorVerifiableService.csbrPageList(queryVO, queryWrapper); | ||
64 | PageListVO<TdsOperatorVerifiableRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class); | ||
65 | afterQuery(pageList, rsPageList); | ||
66 | return rsPageList; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * 经办人用户可验信息获取详情数据 | ||
71 | * @author xup | ||
72 | * @date 2025-08-14 17:31 | ||
73 | * @param guid | ||
74 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO | ||
75 | */ | ||
76 | @Override | ||
77 | public TdsOperatorVerifiableRSVO getTdsOperatorVerifiableDetail(String guid) { | ||
78 | if (StringUtils.isBlank(guid)) { | ||
79 | // W00012 = {0}:参数[{1}]不能为空! | ||
80 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", | ||
81 | String.format("获取%s详情数据", FUNCTION_NAME), "数据唯一标识")); | ||
82 | } | ||
83 | MfTdsOperatorVerifiable entity = mfTdsOperatorVerifiableService.getById(guid); | ||
84 | if (entity == null) { | ||
85 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | ||
86 | } | ||
87 | return convertToVO(entity); | ||
88 | } | ||
89 | |||
90 | /** | ||
91 | * 经办人用户可验信息数据新增 | ||
92 | * @author xup | ||
93 | * @date 2025-08-14 17:31 | ||
94 | * @param rqVO | ||
95 | * @return boolean | ||
96 | */ | ||
97 | @Transactional(rollbackFor = Exception.class) | ||
98 | @Override | ||
99 | public void saveTdsOperatorVerifiable(TdsOperatorVerifiableRQVO rqVO) { | ||
100 | beforeSave(rqVO); | ||
101 | MfTdsOperatorVerifiable entity = convertToEntity(rqVO); | ||
102 | mfTdsOperatorVerifiableService.csbrAddEntity(entity); | ||
103 | boolean flag = mfTdsOperatorVerifiableService.save(entity); | ||
104 | if (!flag) { | ||
105 | throw new CsbrSystemException(SystemError.DATA_ADD_ERROR, messageSourceUtil.addMessage(FUNCTION_NAME)); | ||
106 | } | ||
107 | afterSave(rqVO); | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * 经办人用户可验信息数据修改 | ||
112 | * @author xup | ||
113 | * @date 2025-08-14 17:31 | ||
114 | * @param rqVO | ||
115 | * @return boolean | ||
116 | */ | ||
117 | @Transactional(rollbackFor = Exception.class) | ||
118 | @Override | ||
119 | public void updateTdsOperatorVerifiable(TdsOperatorVerifiableRQVO rqVO) { | ||
120 | // 将修改前数据查出来缓存下来,传入到修改后方法中,用于一些特殊逻辑处理,如某个值变化才进行 | ||
121 | // MfTdsOperatorVerifiable oldEntity = mfTdsOperatorVerifiableService.getById(rqVO.getGuid()); | ||
122 | MfTdsOperatorVerifiable oldEntity = null; | ||
123 | beforeUpdate(rqVO); | ||
124 | MfTdsOperatorVerifiable entity = convertToEntity(rqVO); | ||
125 | mfTdsOperatorVerifiableService.csbrUpdateEntity(entity); | ||
126 | boolean flag = mfTdsOperatorVerifiableService.updateById(entity); | ||
127 | if (!flag) { | ||
128 | throw new CsbrSystemException(SystemError.DATA_UPDATE_ERROR, messageSourceUtil.updateMessage(FUNCTION_NAME)); | ||
129 | } | ||
130 | afterUpdate(rqVO, oldEntity); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * 经办人用户可验信息数据删除 | ||
135 | * @author xup | ||
136 | * @date 2025-08-14 17:31 | ||
137 | * @param guids | ||
138 | * @return void | ||
139 | */ | ||
140 | @Transactional(rollbackFor = Exception.class) | ||
141 | @Override | ||
142 | public void removeByGuids(List<String> guids) { | ||
143 | if (CollectionUtils.isEmpty(guids)) { | ||
144 | // W00012 = {0}:参数[{1}]不能为空! | ||
145 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
146 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
147 | } | ||
148 | if (!mfTdsOperatorVerifiableService.isExistsData(guids, MfTdsOperatorVerifiable.class)) { | ||
149 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
150 | } | ||
151 | boolean flag = mfTdsOperatorVerifiableService.removeByIds(guids); | ||
152 | if (!flag) { | ||
153 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * 经办人用户可验信息数据删除、并有相关的处理操作 | ||
159 | * @author xup | ||
160 | * @date 2025-08-14 17:31 | ||
161 | * @param guids | ||
162 | * @return void | ||
163 | */ | ||
164 | @Transactional(rollbackFor = Exception.class) | ||
165 | @Override | ||
166 | public void removeHandleByGuids(List<String> guids) { | ||
167 | if (CollectionUtils.isEmpty(guids)) { | ||
168 | // W00012 = {0}:参数[{1}]不能为空! | ||
169 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
170 | String.format("删除%s数据", FUNCTION_NAME), "数据唯一标识")); | ||
171 | } | ||
172 | for (String guid : guids) { | ||
173 | MfTdsOperatorVerifiable entity = mfTdsOperatorVerifiableService.getById(guid); | ||
174 | beforeRemove(entity); | ||
175 | boolean flag = mfTdsOperatorVerifiableService.removeById(guid); | ||
176 | if (!flag) { | ||
177 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.delMessage(FUNCTION_NAME)); | ||
178 | } | ||
179 | afterRemove(entity); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * 经办人用户可验信息新新增前置处理 | ||
185 | * @author xup | ||
186 | * @date 2025-08-14 17:31 | ||
187 | * @param rqVO | ||
188 | * @return void | ||
189 | */ | ||
190 | private void beforeSave(TdsOperatorVerifiableRQVO rqVO) { | ||
191 | //region 1.输入基础验证 | ||
192 | //endregion | ||
193 | |||
194 | //region 2.数据验证特殊处理 | ||
195 | //region 2.1.业务合规性验证 | ||
196 | //endregion 2.1.业务合规性验证 | ||
197 | |||
198 | //region 2.2.业务数据验证 | ||
199 | //endregion 2.2.业务数据验证 | ||
200 | |||
201 | //endregion 2.数据验证特殊处理 | ||
202 | |||
203 | //region 3.数据转换处理 | ||
204 | |||
205 | //region 3.1.数据过程转换 | ||
206 | //endregion 3.1.数据过程转换 | ||
207 | |||
208 | //endregion 3.数据转换处理 | ||
209 | |||
210 | //region 4.数据过滤与补充处理 | ||
211 | |||
212 | //endregion 4.数据过滤与补充处理 | ||
213 | |||
214 | //region 5.过程处理 | ||
215 | |||
216 | //region 5.1.计算逻辑处理 | ||
217 | //endregion 5.1.计算逻辑处理 | ||
218 | |||
219 | //region 5.2.业务逻辑处理 | ||
220 | //endregion 5.2.业务逻辑处理 | ||
221 | |||
222 | //endregion 5.过程处理 | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * 经办人用户可验信息新增后置处理 | ||
227 | * @author xup | ||
228 | * @date 2025-08-14 17:31 | ||
229 | * @param rqVO | ||
230 | * @return void | ||
231 | */ | ||
232 | private void afterSave(TdsOperatorVerifiableRQVO rqVO) { | ||
233 | //region 1.输出特殊转换 | ||
234 | |||
235 | //region 1.1.输出过滤与补充处理 | ||
236 | //endregion 1.1.输出过滤与补充处理 | ||
237 | |||
238 | //endregion 1.输出特殊转换 | ||
239 | } | ||
240 | |||
241 | /** | ||
242 | * 经办人用户可验信息修改前置校验、处理 | ||
243 | * @author xup | ||
244 | * @date 2025-08-14 17:31 | ||
245 | * @param rqVO | ||
246 | * @return void | ||
247 | */ | ||
248 | private void beforeUpdate(TdsOperatorVerifiableRQVO rqVO) { | ||
249 | //region 1.输入基础验证 | ||
250 | if (StringUtils.isBlank(rqVO.getGuid())) { | ||
251 | // W00012 = {0}:参数[{1}]不能为空! | ||
252 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00010", String.format("修改%s数据",FUNCTION_NAME), "数据唯一标识")); | ||
253 | } | ||
254 | //endregion | ||
255 | |||
256 | //region 2.数据验证特殊处理 | ||
257 | //region 2.1.业务合规性验证 | ||
258 | //endregion 2.1.业务合规性验证 | ||
259 | |||
260 | //region 2.2.业务数据验证 | ||
261 | if (!mfTdsOperatorVerifiableService.isExistsData(Collections.singletonList(rqVO.getGuid()), MfTdsOperatorVerifiable.class)) { | ||
262 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToUpdateMessage(FUNCTION_NAME)); | ||
263 | } | ||
264 | //endregion 2.2.业务数据验证 | ||
265 | |||
266 | //endregion 2.数据验证特殊处理 | ||
267 | |||
268 | //region 3.数据转换处理 | ||
269 | |||
270 | //region 3.1.数据过程转换 | ||
271 | //endregion 3.1.数据过程转换 | ||
272 | |||
273 | //endregion 3.数据转换处理 | ||
274 | |||
275 | //region 4.数据过滤与补充处理 | ||
276 | //endregion 4.数据过滤与补充处理 | ||
277 | |||
278 | //region 5.过程处理 | ||
279 | |||
280 | //region 5.1.计算逻辑处理 | ||
281 | //endregion 5.1.计算逻辑处理 | ||
282 | |||
283 | //region 5.2.业务逻辑处理 | ||
284 | //endregion 5.2.业务逻辑处理 | ||
285 | |||
286 | //endregion 5.过程处理 | ||
287 | } | ||
288 | |||
289 | /** | ||
290 | * 经办人用户可验信息修改后置处理 | ||
291 | * @author xup | ||
292 | * @date 2025-08-14 17:31 | ||
293 | * @param rqVO | ||
294 | * @param entity | ||
295 | * @return void | ||
296 | */ | ||
297 | protected void afterUpdate(TdsOperatorVerifiableRQVO rqVO, MfTdsOperatorVerifiable entity) { | ||
298 | //region 1.输出特殊转换 | ||
299 | |||
300 | //region 1.1.输出过滤与补充处理 | ||
301 | //endregion 1.1.输出过滤与补充处理 | ||
302 | |||
303 | //endregion 1.输出特殊转换 | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * 经办人用户可验信息删除前置处理 | ||
309 | * @author xup | ||
310 | * @date 2025-08-14 17:31 | ||
311 | * @param entity | ||
312 | * @return void | ||
313 | */ | ||
314 | private void beforeRemove(MfTdsOperatorVerifiable entity) { | ||
315 | if (entity == null) { | ||
316 | throw new CsbrSystemException(SystemError.DATA_DEL_ERROR, messageSourceUtil.notExistsToDelMessage(FUNCTION_NAME)); | ||
317 | } | ||
318 | } | ||
319 | |||
320 | /** | ||
321 | * 经办人用户可验信息删除后置处理 | ||
322 | * @author xup | ||
323 | * @date 2025-08-14 17:31 | ||
324 | * @param entity | ||
325 | * @return void | ||
326 | */ | ||
327 | private void afterRemove(MfTdsOperatorVerifiable entity) { | ||
328 | |||
329 | } | ||
330 | |||
331 | /** | ||
332 | * 经办人用户可验信息查询方法前置验证、处理 | ||
333 | * @author xup | ||
334 | * @date 2025-08-14 17:31 | ||
335 | * @param rqQueryVO | ||
336 | * @return void | ||
337 | */ | ||
338 | private void beforeQuery(TdsOperatorVerifiableQueryVO rqQueryVO) { | ||
339 | |||
340 | } | ||
341 | |||
342 | /** | ||
343 | * 经办人用户可验信息查询方法后置数据转换、处理 | ||
344 | * @author xup | ||
345 | * @date 2025-08-14 17:31 | ||
346 | * @param pageList 数据库查询数据 | ||
347 | * @param rsPageList 返回的最终数据 | ||
348 | * @return void | ||
349 | */ | ||
350 | private void afterQuery(PageListVO<MfTdsOperatorVerifiable> pageList, PageListVO<TdsOperatorVerifiableRSVO> rsPageList) { | ||
351 | if (CollectionUtils.isNotEmpty(pageList.getRecords())) { | ||
352 | rsPageList.setRecords(convertToVO(pageList.getRecords())); | ||
353 | } | ||
354 | // 需要特殊处理数据时使用 | ||
355 | /*if(CollectionUtils.isNotEmpty(pageList.getRecords())){ | ||
356 | List<TdsOperatorVerifiableRSVO> results = new ArrayList<>(); | ||
357 | for (MfTdsOperatorVerifiable item : pageList.getRecords()){ | ||
358 | TdsOperatorVerifiableRSVO vo = convertToVO(item); | ||
359 | results.add(vo); | ||
360 | } | ||
361 | rsPageList.setRecords(results); | ||
362 | }*/ | ||
363 | } | ||
364 | |||
365 | //region 辅助操作 | ||
366 | |||
367 | /** | ||
368 | * 经办人用户可验信息实体数据转换为视图对象数据(多个) | ||
369 | * @author xup | ||
370 | * @date 2025-08-14 17:31 | ||
371 | * @param entityList 实体数据列表 | ||
372 | * @return java.util.List<com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO> 视图对象列表 | ||
373 | */ | ||
374 | private List<TdsOperatorVerifiableRSVO> convertToVO(List<MfTdsOperatorVerifiable> entityList) { | ||
375 | if (CollectionUtils.isEmpty(entityList)) { | ||
376 | // W00012 = {0}:参数[{1}]不能为空! | ||
377 | throw new CsbrSystemException(SystemError.DATA_INPUT_ERROR, messageSourceUtil.getMessage("W00012", | ||
378 | "实体数据转换为视图对象实体数据", "实体数据")); | ||
379 | } | ||
380 | List<TdsOperatorVerifiableRSVO> voList = new ArrayList<>(entityList.size()); | ||
381 | for (MfTdsOperatorVerifiable item : entityList) { | ||
382 | TdsOperatorVerifiableRSVO vo = convertToVO(item); | ||
383 | voList.add(vo); | ||
384 | } | ||
385 | return voList; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * 经办人用户可验信息实体数据转换为视图对象数据 | ||
390 | * @author xup | ||
391 | * @date 2025-08-14 17:31 | ||
392 | * @param entity | ||
393 | * @return com.csbr.qingcloud.portal.domain.vo.TdsOperatorVerifiableRSVO | ||
394 | */ | ||
395 | private TdsOperatorVerifiableRSVO convertToVO(MfTdsOperatorVerifiable entity) { | ||
396 | TdsOperatorVerifiableRSVO vo = csbrBeanUtil.convert(entity, TdsOperatorVerifiableRSVO.class); | ||
397 | return vo; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * 经办人用户可验信息新增、修改和其他情况的参数转换为实体 | ||
402 | * @author xup | ||
403 | * @date 2025-08-14 17:31 | ||
404 | * @param vo | ||
405 | * @return com.csbr.qingcloud.portal.mybatis.entity.MfTdsOperatorVerifiable | ||
406 | */ | ||
407 | private MfTdsOperatorVerifiable convertToEntity(TdsOperatorVerifiableRQVO vo) { | ||
408 | MfTdsOperatorVerifiable entity = csbrBeanUtil.convert(vo, MfTdsOperatorVerifiable.class); | ||
409 | // 新增时数据默认guid赋值,转换后该guid可能别使用 | ||
410 | if (StringUtils.isBlank(vo.getGuid())) { | ||
411 | entity.setGuid(CommonUtil.newGuid()); | ||
412 | } | ||
413 | return entity; | ||
414 | } | ||
415 | |||
416 | //endregion | ||
417 | |||
418 | } |
-
Please register or sign in to post a comment