2dd45760 by xiaojie

Merge branch 'develop' into 'master'

合并代码

See merge request !4
2 parents 8f0eb5d7 fcb36ea3
Showing 82 changed files with 4853 additions and 2 deletions
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
36 <artifactId>csbr-cloud-base</artifactId> 36 <artifactId>csbr-cloud-base</artifactId>
37 <version>${cabr-package.version}</version> 37 <version>${cabr-package.version}</version>
38 </dependency> 38 </dependency>
39 <dependency> 39 <!-- <dependency>
40 <groupId>com.csbr.qingcloud</groupId> 40 <groupId>com.csbr.qingcloud</groupId>
41 <artifactId>csbr-cloud-log</artifactId> 41 <artifactId>csbr-cloud-log</artifactId>
42 <version>${cabr-package.version}</version> 42 <version>${cabr-package.version}</version>
43 </dependency> 43 </dependency>-->
44 <dependency> 44 <dependency>
45 <groupId>com.csbr.qingcloud</groupId> 45 <groupId>com.csbr.qingcloud</groupId>
46 <artifactId>csbr-cloud-mybatis</artifactId> 46 <artifactId>csbr-cloud-mybatis</artifactId>
...@@ -92,6 +92,8 @@ ...@@ -92,6 +92,8 @@
92 <exclude>release/*</exclude> 92 <exclude>release/*</exclude>
93 <exclude>develop/*</exclude> 93 <exclude>develop/*</exclude>
94 <exclude>release-test/*</exclude> 94 <exclude>release-test/*</exclude>
95 <exclude>zq-release/*</exclude>
96 <exclude>enterprise-release/*</exclude>
95 </excludes> 97 </excludes>
96 <!--开启过滤器,此处不能忽略!--> 98 <!--开启过滤器,此处不能忽略!-->
97 <filtering>true</filtering> 99 <filtering>true</filtering>
...@@ -207,6 +209,78 @@ ...@@ -207,6 +209,78 @@
207 <subPath>project</subPath> 209 <subPath>project</subPath>
208 </properties> 210 </properties>
209 </profile> 211 </profile>
212 <profile>
213 <id>zq-production-daop-master</id>
214 <properties>
215 <profileActive>zq-release</profileActive>
216 <subPath></subPath>
217 </properties>
218 </profile>
219 <profile>
220 <id>zq-production-daop-lt</id>
221 <properties>
222 <profileActive>zq-release</profileActive>
223 <subPath>lt</subPath>
224 </properties>
225 </profile>
226 <profile>
227 <id>zq-production-daop-zcgl</id>
228 <properties>
229 <profileActive>zq-release</profileActive>
230 <subPath>zcgl</subPath>
231 </properties>
232 </profile>
233 <profile>
234 <id>zq-production-daop-jgjf</id>
235 <properties>
236 <profileActive>zq-release</profileActive>
237 <subPath>jgjf</subPath>
238 </properties>
239 </profile>
240 <profile>
241 <id>zq-production-daop-project</id>
242 <properties>
243 <profileActive>zq-release</profileActive>
244 <subPath>project</subPath>
245 </properties>
246 </profile>
247
248 <profile>
249 <id>enterprise-production-daop-master</id>
250 <properties>
251 <profileActive>enterprise-release</profileActive>
252 <subPath></subPath>
253 </properties>
254 </profile>
255 <profile>
256 <id>enterprise-production-daop-lt</id>
257 <properties>
258 <profileActive>enterprise-release</profileActive>
259 <subPath>lt</subPath>
260 </properties>
261 </profile>
262 <profile>
263 <id>enterprise-production-daop-zcgl</id>
264 <properties>
265 <profileActive>enterprise-release</profileActive>
266 <subPath>zcgl</subPath>
267 </properties>
268 </profile>
269 <profile>
270 <id>enterprise-production-daop-jgjf</id>
271 <properties>
272 <profileActive>enterprise-release</profileActive>
273 <subPath>jgjf</subPath>
274 </properties>
275 </profile>
276 <profile>
277 <id>enterprise-production-daop-project</id>
278 <properties>
279 <profileActive>enterprise-release</profileActive>
280 <subPath>project</subPath>
281 </properties>
282 </profile>
283
210 </profiles> 284 </profiles>
211 285
212 </project> 286 </project>
......
1 package com.csbr.qingcloud.portal.controller;
2
3 import com.csbr.cloud.common.entity.CsbrUpdate;
4 import com.csbr.cloud.common.response.CommonRes;
5 import com.csbr.qingcloud.portal.domain.vo.*;
6 import csbr.cloud.entity.annotation.SystemLog;
7 import csbr.cloud.entity.domain.base.vo.PageListVO;
8 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
9 import com.csbr.qingcloud.portal.service.DemandService;
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.validation.annotation.Validated;
16 import org.springframework.web.bind.annotation.*;
17
18 import java.util.List;
19
20 /**
21 * @program: D:/git/ms-data-circulation-portal-service
22 * @description: 数据需求-控制器
23 * @author: xcq
24 * @create: 2024-12-31 18:46
25 **/
26 @RestController
27 @RequestMapping("/demand")
28 @Tag(name = "数据需求-控制器")
29 public class DemandController {
30
31 @Resource
32 private DemandService demandService;
33
34 //region 基本操作
35
36 @PostMapping("/save")
37 @SystemLog(value = "数据需求-新增")
38 @Operation(summary = "数据需求-新增")
39 public CommonRes<Boolean> saveDemand(@RequestBody @Valid DemandRQVO vo) {
40 demandService.saveDemand(vo);
41 return CommonRes.success(true);
42 }
43
44 @PutMapping("/update")
45 @SystemLog(value = "数据需求-修改")
46 @Operation(summary = "数据需求-修改")
47 public CommonRes<Boolean> updateDemand(@RequestBody @Valid DemandRQVO vo) {
48 demandService.updateDemand(vo);
49 return CommonRes.success(true);
50 }
51
52 @PostMapping("/update-grounding-pick")
53 @Operation(summary= "数据需求-修改上架状态")
54 public CommonRes<Boolean> updateGroundingPick(@Validated(value = {CsbrUpdate.class})@RequestBody @Valid DemandRQVO vo) {
55 return CommonRes.success(demandService.updateGroundingPick(vo));
56 }
57
58 @DeleteMapping("/delete")
59 @SystemLog(value = "数据需求-批量删除")
60 @Operation(summary = "数据需求-批量删除")
61 public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) {
62 demandService.removeByGuids(guids);
63 return CommonRes.success(true);
64 }
65
66 @PostMapping("/page-list")
67 @SystemLog(value = "数据需求-分页")
68 @Operation(summary = "数据需求-分页")
69 public CommonRes<PageListVO<DemandRSVO>> pageList(@RequestBody @Valid DemandQueryVO queryVO) {
70 PageListVO<DemandRSVO> pageVO = demandService.pageList(queryVO);
71 return CommonRes.success(pageVO);
72 }
73
74 @PostMapping("/portal/page-list")
75 @SystemLog(value = "数据需求-门户分页")
76 @Operation(summary = "数据需求-门户分页")
77 public CommonRes<PageListVO<DemandPortalRSVO>> portalPageList(@RequestBody @Valid DemandPortalQueryVO queryVO) {
78 PageListVO<DemandPortalRSVO> pageVO = demandService.portalPageList(queryVO);
79 return CommonRes.success(pageVO);
80 }
81
82 @GetMapping("/detail")
83 @SystemLog(value = "数据需求-详情")
84 @Operation(summary = "数据需求-详情",parameters = {
85 @Parameter(name = "guid", description = "数据需求唯一标识", required = true)})
86 public CommonRes<DemandRSVO> getDemandDetail(@RequestParam String guid) {
87 DemandRSVO vo = demandService.getDemandDetail(guid);
88 return CommonRes.success(vo);
89 }
90
91 @GetMapping("/detail-by-process")
92 @SystemLog(value = "按加工单查数据需求详情")
93 @Operation(summary = "按加工单查数据需求详情",parameters = {
94 @Parameter(name = "processOrderNo", description = "加工单单号", required = true)})
95 public CommonRes<DemandRSVO> getDemandDetailByProcess(@RequestParam String processOrderNo) {
96 DemandRSVO vo = demandService.getDemandDetailByProcess(processOrderNo);
97 return CommonRes.success(vo);
98 }
99
100 @PostMapping("/flow-call-back")
101 @SystemLog(value = "数据需求-流程结束后进行业务回调")
102 @Operation(summary = "数据需求-流程结束后进行业务回调", hidden = true)
103 public CommonRes<Boolean> flowCallBack(@RequestBody @Valid BizCallbackDTO dto) {
104 demandService.flowCallBack(dto);
105 return CommonRes.success(true);
106 }
107
108 @PostMapping("/cross-flow-call-back")
109 @SystemLog(value = "数据需求-流程结束后进行业务回调(跨服务审批)")
110 @Operation(summary = "数据需求-流程结束后进行业务回调(跨服务审批)", hidden = true)
111 public CommonRes<Boolean> crossFlowCallBack(@RequestBody @Valid BizCallbackDTO dto) {
112 demandService.crossFlowCallBack(dto);
113 return CommonRes.success(true);
114 }
115
116 @PostMapping("/last-approve")
117 @SystemLog(value = "数据需求审批")
118 @Operation(summary = "数据需求审批-最后一个节点时调用")
119 public CommonRes<Boolean> lastApprove(@RequestBody DemandApproveVO dto) {
120 Boolean vo = demandService.lastApprove(dto);
121 return CommonRes.success(vo);
122 }
123
124 @PostMapping("/process-order-list")
125 @Operation(summary = "查询加工单列表")
126 public CommonRes<List<ProcessOrderProcessDtlRSVO>> listByProcessOrderNo() {
127 List<ProcessOrderProcessDtlRSVO> pageVO = demandService.listByProcessOrderNo();
128 return CommonRes.success(pageVO);
129 }
130
131 //endregion
132
133 }
1 package com.csbr.qingcloud.portal.controller;
2
3 import com.alibaba.fastjson.JSON;
4 import com.alibaba.fastjson.JSONObject;
5 import com.csbr.cloud.common.response.CommonRes;
6 import com.csbr.cloud.workflow.domain.dto.appove.FlowQueryDTO;
7 import com.csbr.cloud.workflow.domain.dto.appove.FlowUpdateStateDTO;
8 import com.csbr.qingcloud.portal.domain.vo.*;
9 import com.csbr.qingcloud.portal.service.EnterpriseChangeApproveService;
10 import csbr.cloud.entity.annotation.SystemLog;
11 import csbr.cloud.entity.domain.base.vo.PageListVO;
12 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
13 import com.csbr.qingcloud.portal.service.EnterpriseService;
14 import io.swagger.v3.oas.annotations.Operation;
15 import io.swagger.v3.oas.annotations.Parameter;
16 import io.swagger.v3.oas.annotations.tags.Tag;
17 import jakarta.annotation.Resource;
18 import jakarta.validation.Valid;
19 import org.springframework.validation.annotation.Validated;
20 import org.springframework.web.bind.annotation.*;
21 import java.util.List;
22
23 /**
24 * @program: D:/git/ms-data-circulation-portal-service
25 * @description: 企业信息-控制器
26 * @author: xcq
27 * @create: 2024-12-26 16:18
28 **/
29 @RestController
30 @RequestMapping("/enterprise")
31 @Tag(name = "企业信息-控制器")
32 public class EnterpriseController {
33
34 @Resource
35 private EnterpriseService enterpriseService;
36
37 @Resource
38 private EnterpriseChangeApproveService enterpriseChangeApproveService;
39
40 //region 基本操作
41
42 @PostMapping("/save")
43 @SystemLog(value = "企业信息-新增")
44 @Operation(summary = "企业信息-新增")
45 public CommonRes<Boolean> saveEnterprise(@RequestBody @Valid EnterpriseRQVO vo) {
46 enterpriseService.saveEnterprise(vo);
47 return CommonRes.success(true);
48 }
49
50 @PutMapping("/update")
51 @SystemLog(value = "企业信息-修改")
52 @Operation(summary = "企业信息-修改")
53 public CommonRes<Boolean> updateEnterprise(@RequestBody @Valid EnterpriseRQVO vo) {
54 enterpriseService.updateEnterprise(vo);
55 return CommonRes.success(true);
56 }
57
58 @DeleteMapping("/delete")
59 @SystemLog(value = "企业信息-批量删除")
60 @Operation(summary = "企业信息-批量删除")
61 public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) {
62 enterpriseService.removeByGuids(guids);
63 return CommonRes.success(true);
64 }
65
66 @PostMapping("/page-list")
67 @SystemLog(value = "企业信息-分页")
68 @Operation(summary = "企业信息-分页")
69 public CommonRes<PageListVO<EnterpriseRSVO>> pageList(@RequestBody @Valid EnterpriseQueryVO queryVO) {
70 PageListVO<EnterpriseRSVO> pageVO = enterpriseService.pageList(queryVO);
71 return CommonRes.success(pageVO);
72 }
73
74 @PostMapping("/flow/page-list")
75 @SystemLog(value = "企业信息-分页(调用流程)")
76 @Operation(summary = "企业信息-分页(调用流程)")
77 public CommonRes<PageListVO<EnterpriseApproveRSVO>> flowPageList(@RequestBody @Valid FlowQueryDTO dto) {
78 PageListVO<EnterpriseApproveRSVO> pageVO = enterpriseService.flowPageList(dto);
79 return CommonRes.success(pageVO);
80 }
81
82 @GetMapping("/detail")
83 @SystemLog(value = "企业信息-详情")
84 @Operation(summary = "企业信息-详情",
85 parameters = {@Parameter(name = "guid", description = "企业信息唯一标识", required = true)} )
86 public CommonRes<EnterpriseRSVO> getEnterpriseDetail(@RequestParam String guid) {
87 EnterpriseRSVO vo = enterpriseChangeApproveService.getEnterpriseChangeDetail(guid);
88 return CommonRes.success(vo);
89 }
90
91 @GetMapping("/detail-by-logonUser")
92 @SystemLog(value = "企业信息-根据登陆账号查询详情")
93 @Operation(summary = "企业信息-根据登陆账号查询详情",
94 parameters = {@Parameter(name = "logonUser", description = "登陆账号", required = true)} )
95 public CommonRes<EnterpriseRSVO> getEnterpriseDetailByLogonUser(@RequestParam String logonUser) {
96 EnterpriseRSVO vo = enterpriseService.getEnterpriseDetailByLogonUser(logonUser);
97 return CommonRes.success(vo);
98 }
99
100 @GetMapping("/detail-by-name")
101 @SystemLog(value = "按名称查企业信息详情")
102 @Operation(summary = "按名称查企业信息详情",
103 parameters = {@Parameter(name = "tenantName", description = "企业名称", required = true)} )
104 public CommonRes<EnterpriseRSVO> getEnterpriseDetailByName(@RequestParam String tenantName) {
105 EnterpriseRSVO vo = enterpriseService.getEnterpriseDetailByName(tenantName);
106 return CommonRes.success(vo);
107 }
108
109 @PostMapping("/flow-call-back")
110 @SystemLog(value = "企业信息-流程结束后进行业务回调")
111 @Operation(summary = "企业信息-流程结束后进行业务回调", hidden = true)
112 public CommonRes<Boolean> flowCallBack(@RequestBody @Valid BizCallbackDTO dto) {
113 enterpriseService.flowCallBack(dto);
114 return CommonRes.success(true);
115 }
116
117 @PostMapping("/cross-flow-call-back")
118 @SystemLog(value = "企业信息-流程结束后进行业务回调(跨服务审批)")
119 @Operation(summary = "企业信息-流程结束后进行业务回调(跨服务审批)", hidden = true)
120 public CommonRes<Boolean> crossFlowCallBack(@RequestBody @Valid BizCallbackDTO dto) {
121 enterpriseService.crossFlowCallBack(dto);
122 return CommonRes.success(true);
123 }
124
125 @PostMapping("/move-old-data")
126 @SystemLog(value = "将此账号提交的数据需求迁移到新的企业")
127 @Operation(summary = "将此账号提交的数据需求迁移到新的企业", hidden = true)
128 public CommonRes<Boolean> moveOldData(@RequestBody @Valid TenantRQVO vo) {
129 enterpriseService.moveOldData(vo);
130 return CommonRes.success(true);
131 }
132
133 //endregion
134
135 //region 变更申请
136
137 /**
138 * 前置校验
139 */
140 @PostMapping("/check")
141 @SystemLog(value = "前置校验")
142 @Operation(summary = "前置校验")
143 public CommonRes<Boolean> check(@RequestBody EnterpriseRQVO vo) {
144 Boolean result = enterpriseService.check(vo);
145 return CommonRes.success(result);
146 }
147
148 @PostMapping("/change/update")
149 @SystemLog(value = "变更审批-最终更新")
150 @Operation( summary = "变更审批-最终更新" )
151 public CommonRes<Boolean> changeUpdate(@RequestBody BizCallbackDTO dto) {
152 enterpriseChangeApproveService.changeUpdate(dto);
153 return CommonRes.success(true);
154 }
155
156 @PostMapping("/change/cross-flow-call-back")
157 @SystemLog(value = "变更审批-最终更新(跨平台)")
158 @Operation( summary = "变更审批-最终更新(跨平台)" )
159 public CommonRes<Boolean> changeCrossFlowCallBack(@RequestBody BizCallbackDTO dto) {
160 enterpriseChangeApproveService.crossFlowCallBack(dto);
161 return CommonRes.success(true);
162 }
163
164 @PostMapping("/change/save")
165 @SystemLog(value = "变更申请-保存数据")
166 @Operation(summary = "变更申请-保存数据")
167 public CommonRes<Boolean> changeSave(@Validated @RequestBody ChangeApproveVO vo) {
168 enterpriseChangeApproveService.changeSave(vo);
169 return CommonRes.success(true);
170 }
171
172
173 @GetMapping("/change/detail")
174 @SystemLog(value = "变更申请-查询详情")
175 @Operation(summary = "变更申请-详情",parameters = { @Parameter(name = "guid", description = "申请唯一标识", required = true)})
176 public CommonRes<ChangeApproveVO> changeDetail(@RequestParam String guid) {
177 return CommonRes.success(enterpriseChangeApproveService.changeDetail(guid));
178 }
179
180 @DeleteMapping("/change/delete")
181 @SystemLog(value = "变更申请-批量删除")
182 @Operation(summary = "变更申请-批量删除")
183 public CommonRes<Boolean> changeRemoveByGuids(@RequestBody List<String> guids) {
184 enterpriseChangeApproveService.removeByGuids(guids);
185 return CommonRes.success(true);
186 }
187
188 @DeleteMapping("/change/cross-delete")
189 @SystemLog(value = "变更申请-批量删除(跨平台)")
190 @Operation(summary = "变更申请-批量删除(跨平台)", hidden = true)
191 public CommonRes<Boolean> crossRemoveByGuids(@RequestBody List<String> zqBizGuids) {
192 enterpriseChangeApproveService.crossRemoveByBizGuid(zqBizGuids);
193 return CommonRes.success(true);
194 }
195
196 //endregion
197
198 }
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.cloud.workflow.domain.dto.callback.BizCallbackDTO;
7 import com.csbr.qingcloud.portal.domain.vo.ServicerMaintainQueryVO;
8 import com.csbr.qingcloud.portal.domain.vo.ServicerMaintainRQVO;
9 import com.csbr.qingcloud.portal.domain.vo.ServicerMaintainRSVO;
10 import com.csbr.qingcloud.portal.service.ServicerMaintainService;
11 import io.swagger.v3.oas.annotations.Operation;
12 import io.swagger.v3.oas.annotations.Parameter;
13 import io.swagger.v3.oas.annotations.tags.Tag;
14 import jakarta.annotation.Resource;
15 import jakarta.validation.Valid;
16 import org.springframework.web.bind.annotation.*;
17
18 import java.util.List;
19
20 /**
21 * @program: D:/git/ms-data-circulation-portal-service
22 * @description: 服务商维护-控制器
23 * @author: xcq
24 * @create: 2024-12-31 18:49
25 **/
26 @RestController
27 @RequestMapping("/servicer-maintain")
28 @Tag(name = "服务商维护-控制器")
29 public class ServicerMaintainController {
30
31 @Resource
32 private ServicerMaintainService servicerMaintainService;
33
34 //region 基本操作
35
36 @PostMapping("/save")
37 @SystemLog(value = "服务商维护-新增")
38 @Operation(summary = "服务商维护-新增")
39 public CommonRes<Boolean> saveServicerMaintain(@RequestBody @Valid ServicerMaintainRQVO vo) {
40 servicerMaintainService.saveServicerMaintain(vo);
41 return CommonRes.success(true);
42 }
43
44 @PutMapping("/update")
45 @SystemLog(value = "服务商维护-修改")
46 @Operation(summary = "服务商维护-修改")
47 public CommonRes<Boolean> updateServicerMaintain(@RequestBody @Valid ServicerMaintainRQVO vo) {
48 servicerMaintainService.updateServicerMaintain(vo);
49 return CommonRes.success(true);
50 }
51
52 @DeleteMapping("/delete")
53 @SystemLog(value = "服务商维护-批量删除")
54 @Operation(summary = "服务商维护-批量删除")
55 public CommonRes<Boolean> removeByGuids(@RequestBody List<String> guids) {
56 servicerMaintainService.removeByGuids(guids);
57 return CommonRes.success(true);
58 }
59
60 @PostMapping("/page-list")
61 @SystemLog(value = "服务商维护-分页")
62 @Operation(summary = "服务商维护-分页")
63 public CommonRes<PageListVO<ServicerMaintainRSVO>> pageList(@RequestBody @Valid ServicerMaintainQueryVO queryVO) {
64 PageListVO<ServicerMaintainRSVO> pageVO = servicerMaintainService.pageList(queryVO);
65 return CommonRes.success(pageVO);
66 }
67
68 @GetMapping("/detail")
69 @SystemLog(value = "服务商维护-详情")
70 @Operation(
71 summary = "服务商维护-详情",
72 parameters = {
73 @Parameter(name = "guid", description = "服务商维护唯一标识", required = true)}
74 )
75 public CommonRes<ServicerMaintainRSVO> getServicerMaintainDetail(@RequestParam String guid) {
76 ServicerMaintainRSVO vo = servicerMaintainService.getServicerMaintainDetail(guid);
77 return CommonRes.success(vo);
78 }
79
80 @PostMapping("/flow-call-back")
81 @SystemLog(value = "服务商维护-流程结束后进行业务回调")
82 @Operation(summary = "服务商维护-流程结束后进行业务回调", hidden = true)
83 public CommonRes<Boolean> flowCallBack(@RequestBody @Valid BizCallbackDTO dto) {
84 servicerMaintainService.flowCallBack(dto);
85 return CommonRes.success(true);
86 }
87
88 //endregion
89
90 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import lombok.Data;
4
5 /**
6 * @program: ms-user-scm-service
7 * @description: 行政区
8 * @author: yio
9 * @create: 2021-01-14 15:39
10 **/
11 @Data
12 public class BoroughPOJO {
13 private String code;
14 private String name;
15 private String parentId;
16 private String isPCapital;
17 private String isDeleted;
18 /** 城市等级 (0 一线城市,1 新一线城市,2 二线城市,3 三线城市,4 四线城市,5 五线城市,6 六线城市)*/
19 private String areaLevel;
20 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import io.swagger.v3.oas.annotations.media.Schema;
4 import lombok.Data;
5
6 /**
7 * @program: ms-hc-workflow-service
8 * @description: 通用变更审批对象
9 * @author: XiaoCQ
10 * @create: 2024-01-20
11 **/
12 @Data
13 @Schema(name = "通用变更审批对象")
14 public class ChangeApproveVO {
15
16 /**
17 * 各变更业务唯一标识
18 */
19 @Schema(description = "各变更业务唯一标识")
20 private String guid;
21
22 /**
23 * 审批流唯一标识
24 */
25 @Schema(description = "审批流唯一标识")
26 private String approveGuid;
27
28 @Schema(description = "业务审批状态")
29 private String bizApproveState;
30
31 @Schema(description = "原审批流唯一标识")
32 private String sourceApproveGuid;
33
34 /**
35 * 源数据GUID
36 */
37 @Schema(description = "源数据GUID")
38 private String sourceGuid;
39
40 /**
41 * 业务数据
42 */
43 @Schema(description = "业务数据")
44 private String bizDataJson;
45
46 @Schema(description = "业务数据明细")
47 private String bizDataDetailJson;
48
49 /**
50 * 原业务数据
51 */
52 @Schema(description = "原业务数据")
53 private String oldBizDataJson;
54
55 @Schema(description = "原业务数据明细")
56 private String oldBizDataDetailJson;
57
58 private String zqName;
59 private String zqBizGuid;
60
61 }
...\ No newline at end of file ...\ No newline at end of file
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import io.swagger.v3.oas.annotations.media.Schema;
4 import lombok.Data;
5
6 /**
7 * @description: 审批变更检查实体
8 * @author: XiaoCQ
9 * @create: 2025-02-20
10 */
11 @Data
12 @Schema(name = "审批变更检查实体")
13 public class ChangeCheckDTO {
14
15 @Schema(description = "json")
16 private String json;
17
18 public ChangeCheckDTO(){
19 }
20
21 public ChangeCheckDTO(String json){
22 this.json = json;
23 }
24
25 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import csbr.cloud.entity.domain.base.vo.CsbrBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6 import lombok.EqualsAndHashCode;
7 import lombok.experimental.Accessors;
8
9 import java.math.BigDecimal;
10 import java.time.LocalDateTime;
11
12 /**
13 * 变更信息视图对象类
14 *
15 * @author xiaocq
16 * @date 2024-12-30
17 */
18 @Data
19 public class ChangeInfoVO extends CsbrBaseVO {
20
21 @Schema(description = "英文名称")
22 private String nameEn;
23
24 @Schema(description = "名称")
25 private String name;
26
27 @Schema(description = "日期")
28 private String date;
29
30 @Schema(description = "变更前")
31 private String before;
32
33 @Schema(description = "变更后")
34 private String after;
35
36 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import lombok.Data;
4
5 /** 对比对象 */
6 @Data
7 public class CompareResult {
8 /** 字段名 */
9 private String fieldName;
10 /** 旧值 */
11 private Object oldValue;
12 /** 新值 */
13 private Object newValue;
14 /** 字段中文名 */
15 private String fieldComment;
16 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.dto.appove.FlowUpdateStateDTO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6 import lombok.experimental.Accessors;
7
8 import java.math.BigDecimal;
9
10 /**
11 * 项目结项表 视图对象类
12 *
13 * @author xiaocq
14 * @date 2024-03-04
15 */
16 @Data
17 @Accessors(chain = true)
18 @Schema(name = "项目结项审批传参")
19 public class DemandApproveVO extends FlowUpdateStateDTO {
20
21 @Schema(description = "业务唯一标识")
22 private String bizGuid;
23
24 @Schema(description = "合同附件")
25 private String contractAttachJson;
26
27 @Schema(description = "加工单位类型")
28 private String processCompanyType;
29
30 @Schema(description = "加工单位唯一标识")
31 private String processCompanyGuid;
32
33 @Schema(description = "加工单位名称")
34 private String processCompanyName;
35
36
37 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.mybatis.annotations.LikeQuery;
4 import com.csbr.cloud.mybatis.enums.LikeQueryEnum;
5 import com.csbr.cloud.workflow.domain.dto.appove.FlowBizGuidQueryDTO;
6 import csbr.cloud.entity.domain.base.dto.BasePageDTO;
7 import io.swagger.v3.oas.annotations.media.Schema;
8 import lombok.Data;
9 import lombok.EqualsAndHashCode;
10
11 import java.util.List;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 数据需求查询参数
16 * @author: xcq
17 * @create: 2024-12-31 18:46
18 **/
19 @EqualsAndHashCode(callSuper = true)
20 @Data
21 @Schema(title = "数据需求查询参数")
22 public class DemandPortalQueryVO extends BasePageDTO {
23
24 @Schema(description = "数据需求名称")
25 @LikeQuery(type = LikeQueryEnum.ALL)
26 private String dataDemandName;
27
28 @Schema(description = "需求类型")
29 private String requirementType;
30
31 @Schema(description = "交付标的")
32 private String updateCycle;
33
34 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import csbr.cloud.entity.domain.base.vo.BaseVO;
5 import io.swagger.v3.oas.annotations.media.Schema;
6 import lombok.Data;
7
8 import java.math.BigDecimal;
9 import java.util.Date;
10
11 /**
12 * @program: D:/git/ms-data-circulation-portal-service
13 * @description: 数据需求门户返回参数
14 * @author: xcq
15 * @create: 2024-12-31 18:46
16 **/
17 @Data
18 @Schema(title = "数据需求门户返回参数")
19 public class DemandPortalRSVO extends BaseVO {
20 @Schema(description = "系统唯一标识")
21 private String guid;
22
23 @Schema(description = "数据需求名称")
24 private String dataDemandName;
25
26 @Schema(description = "需求类型")
27 private String requirementType;
28
29 @Schema(description = "需求开始时间")
30 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
31 private Date requirementTermSdate;
32
33 @Schema(description = "需求结束时间")
34 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
35 private Date requirementTermEdate;
36
37 @Schema(description = "最低预算")
38 private BigDecimal minBudget;
39
40 @Schema(description = "最高预算")
41 private BigDecimal maxBudget;
42
43 @Schema(description = "数据价格")
44 private String costSource;
45
46 @Schema(description = "需求内容")
47 private String requirementContent;
48
49 @Schema(description = "交付标的")
50 private String updateCycle;
51
52 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.mybatis.annotations.LikeQuery;
4 import com.csbr.cloud.mybatis.enums.LikeQueryEnum;
5 import com.csbr.cloud.workflow.domain.dto.appove.FlowBizGuidQueryDTO;
6 import io.swagger.v3.oas.annotations.media.Schema;
7 import lombok.EqualsAndHashCode;
8 import lombok.Data;
9 import java.math.BigDecimal;
10 import java.util.Date;
11 import java.util.List;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 数据需求查询参数
16 * @author: xcq
17 * @create: 2024-12-31 18:46
18 **/
19 @EqualsAndHashCode(callSuper = true)
20 @Data
21 @Schema(title = "数据需求查询参数")
22 public class DemandQueryVO extends FlowBizGuidQueryDTO {
23
24 @LikeQuery(type = LikeQueryEnum.ALL)
25 @Schema(description = "数据需求名称")
26 private String dataDemandName;
27
28 @Schema(description = "需求类型")
29 private String requirementType;
30
31 @Schema(description = "需求分类【1新增 2调整】")
32 private String demandCategory;
33
34 @LikeQuery(type = LikeQueryEnum.ALL)
35 @Schema(description = "发起人")
36 private String createUserName;
37
38 /**
39 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃】
40 */
41 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃】")
42 private String bizApproveState;
43
44 /******** 自定义扩展 *****/
45
46 /**
47 * 数据唯一标识【List集合】
48 */
49 @Schema(description = "数据唯一标识", hidden = true)
50 private List<String> guidList;
51
52 /**
53 * 是否调用查询的判断
54 */
55 @Schema(description = "是否调用查询的判断", hidden = true)
56 private Boolean isNeedQuery;
57
58 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import com.fasterxml.jackson.annotation.JsonFormat;
6 import jdk.jfr.Name;
7 import lombok.Data;
8 import java.math.BigDecimal;
9 import java.util.Date;
10
11 /**
12 * @program: D:/git/ms-data-circulation-portal-service
13 * @description: 数据需求新增、修改参数
14 * @author: xcq
15 * @create: 2024-12-31 18:46
16 **/
17 @Data
18 @Schema(title = "数据需求新增、修改参数")
19 public class DemandRQVO extends FlowRQBaseVO {
20
21 /**
22 * 数据需求名称
23 */
24 @Schema(description = "数据需求名称")
25 private String dataDemandName;
26
27 /**
28 * 需求类型
29 */
30 @Schema(description = "需求类型")
31 private String requirementType;
32
33 @Schema(title = "专区名称")
34 private String zqName;
35
36 /**
37 * 需求分类【1新增 2调整】
38 */
39 @Schema(description = "需求分类【1新增 2调整】")
40 private String demandCategory;
41
42 /**
43 * 数据产品唯一标识
44 */
45 @Schema(description = "数据产品唯一标识")
46 private String dataProductGuid;
47
48 /**
49 * 需求开始时间
50 */
51 @Schema(description = "需求开始时间")
52 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
53 private Date requirementTermSdate;
54
55 /**
56 * 需求结束时间
57 */
58 @Schema(description = "需求结束时间")
59 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
60 private Date requirementTermEdate;
61
62 /**
63 * 需求内容
64 */
65 @Schema(description = "需求内容")
66 private String requirementContent;
67
68 /**
69 * 数据需求字段【数据格式:[{"name":"","path":""},{"name":"","path":""}]】
70 */
71 @Schema(description = "数据需求字段【数据格式:[{\"name\":\"\",\"path\":\"\"},{\"name\":\"\",\"path\":\"\"}]】")
72 private String dataDemandFieldAttachJson;
73
74 /**
75 * 期望交付日期
76 */
77 @Schema(description = "期望交付日期")
78 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
79 private Date deliveryTime;
80
81 /**
82 * 最低预算
83 */
84 @Schema(description = "最低预算")
85 private BigDecimal minBudget;
86
87 /**
88 * 最高预算
89 */
90 @Schema(description = "最高预算")
91 private BigDecimal maxBudget;
92
93 /**
94 * 费用来源
95 */
96 @Schema(description = "费用来源")
97 private String costSource;
98
99 /**
100 * 更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】
101 */
102 @Schema(description = "更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】")
103 private String updateCycle;
104
105 /**
106 * 获取路径方式
107 */
108 @Schema(description = "获取路径方式")
109 private String requestType;
110
111 /**
112 * 场景名称
113 */
114 @Schema(description = "场景名称")
115 private String sceneName;
116
117 /**
118 * 应用场景描述
119 */
120 @Schema(description = "应用场景描述")
121 private String sceneDescription;
122
123 /**
124 * 数据质量要求
125 */
126 @Schema(description = "数据质量要求")
127 private String qualityDemand;
128
129 /**
130 * 隐私合规要求
131 */
132 @Schema(description = "隐私合规要求")
133 private String privacyDemand;
134
135 /**
136 * 其他补充内容
137 */
138 @Schema(description = "其他补充内容")
139 private String otherContent;
140
141 /**
142 * 联系人
143 */
144 @Schema(description = "联系人")
145 private String contacts;
146
147 /**
148 * 需求单位
149 */
150 @Schema(description = "需求单位")
151 private String requirementUnit;
152
153 /**
154 * 联系方式
155 */
156 @Schema(description = "联系方式")
157 private String contactInformation;
158
159 /**
160 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
161 */
162 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
163 private String bizApproveState;
164
165 /**
166 * 加工单生成时间
167 */
168 @Schema(description = "加工单生成时间")
169 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
170 private Date processingGenerateTime;
171
172 /**
173 * 验收完成时间
174 */
175 @Schema(description = "验收完成时间")
176 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
177 private Date acceptFinishTime;
178
179 /**
180 * 完成周期
181 */
182 @Schema(description = "完成周期")
183 private Integer finishCycle;
184
185 /**
186 * 资源获取状态【N未开始 A进行中 Y已完成】
187 */
188 @Schema(description = "资源获取状态【N未开始 A进行中 Y已完成】")
189 private String resourceAcquisitionState;
190
191 /**
192 * 产品加工状态【N未开始 A进行中 Y已完成】
193 */
194 @Schema(description = "产品加工状态【N未开始 A进行中 Y已完成】")
195 private String productProcessingState;
196
197 /**
198 * 产品交付状态【N未开始 A进行中 Y已完成】
199 */
200 @Schema(description = "产品交付状态【N未开始 A进行中 Y已完成】")
201 private String productDeliveryState;
202
203 /**
204 * 产品验收状态【N未开始 A进行中 Y已完成】
205 */
206 @Schema(description = "产品验收状态【N未开始 A进行中 Y已完成】")
207 private String productAcceptState;
208
209 /******** 库表存储属性 需处理 *****/
210
211 /******** 自定义扩展 *****/
212
213 @Schema(description = "合同附件")
214 private String contractAttachJson;
215
216 @Schema(description = "加工单位类型")
217 private String processCompanyType;
218
219 @Schema(description = "加工单位唯一标识")
220 private String processCompanyGuid;
221
222 @Schema(description = "加工单位名称")
223 private String processCompanyName;
224
225 @Schema(title = "上架状态(Y 上架 N 下架)")
226 private String listingStatus;
227
228 /******** 子对象 *****/
229
230 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
4 import com.fasterxml.jackson.annotation.JsonFormat;
5 import io.swagger.v3.oas.annotations.media.Schema;
6 import lombok.Data;
7
8 import java.math.BigDecimal;
9 import java.util.Date;
10
11 /**
12 * @program: D:/git/ms-data-circulation-portal-service
13 * @description: 数据需求返回参数
14 * @author: xcq
15 * @create: 2024-12-31 18:46
16 **/
17 @Data
18 @Schema(title = "数据需求返回参数")
19 public class DemandRSVO {
20
21 /**
22 * 系统唯一标识
23 */
24 @Schema(description = "系统唯一标识")
25 private String guid;
26
27 /**
28 * 数据需求名称
29 */
30 @Schema(description = "数据需求名称")
31 private String dataDemandName;
32
33 /**
34 * 需求类型
35 */
36 @Schema(description = "需求类型")
37 private String requirementType;
38
39 /**
40 * 需求分类【1新增 2调整】
41 */
42 @Schema(description = "需求分类【1新增 2调整】")
43 private String demandCategory;
44
45 /**
46 * 数据产品唯一标识
47 */
48 @Schema(description = "数据产品唯一标识")
49 private String dataProductGuid;
50
51 /**
52 * 需求开始时间
53 */
54 @Schema(description = "需求开始时间")
55 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
56 private Date requirementTermSdate;
57
58 /**
59 * 需求结束时间
60 */
61 @Schema(description = "需求结束时间")
62 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
63 private Date requirementTermEdate;
64
65 /**
66 * 需求内容
67 */
68 @Schema(description = "需求内容")
69 private String requirementContent;
70
71 /**
72 * 数据需求字段【数据格式:[{"name":"","path":""},{"name":"","path":""}]】
73 */
74 @Schema(description = "数据需求字段【数据格式:[{\"name\":\"\",\"path\":\"\"},{\"name\":\"\",\"path\":\"\"}]】")
75 private String dataDemandFieldAttachJson;
76
77 /**
78 * 期望交付时间
79 */
80 @Schema(description = "期望交付时间")
81 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
82 private Date deliveryTime;
83
84 /**
85 * 最低预算
86 */
87 @Schema(description = "最低预算")
88 private BigDecimal minBudget;
89
90 /**
91 * 最高预算
92 */
93 @Schema(description = "最高预算")
94 private BigDecimal maxBudget;
95
96 /**
97 * 费用来源
98 */
99 @Schema(description = "费用来源")
100 private String costSource;
101
102 /**
103 * 更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】
104 */
105 @Schema(description = "更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】")
106 private String updateCycle;
107
108 /**
109 * 获取路径方式
110 */
111 @Schema(description = "获取路径方式")
112 private String requestType;
113
114 /**
115 * 场景名称
116 */
117 @Schema(description = "场景名称")
118 private String sceneName;
119
120 /**
121 * 应用场景描述
122 */
123 @Schema(description = "应用场景描述")
124 private String sceneDescription;
125
126 /**
127 * 数据质量要求
128 */
129 @Schema(description = "数据质量要求")
130 private String qualityDemand;
131
132 /**
133 * 隐私合规要求
134 */
135 @Schema(description = "隐私合规要求")
136 private String privacyDemand;
137
138 /**
139 * 其他补充内容
140 */
141 @Schema(description = "其他补充内容")
142 private String otherContent;
143
144 /**
145 * 联系人
146 */
147 @Schema(description = "联系人")
148 private String contacts;
149
150 /**
151 * 需求单位
152 */
153 @Schema(description = "需求单位")
154 private String requirementUnit;
155
156 /**
157 * 联系方式
158 */
159 @Schema(description = "联系方式")
160 private String contactInformation;
161
162 /**
163 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
164 */
165 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
166 private String bizApproveState;
167
168 /**
169 * 加工单生成时间
170 */
171 @Schema(description = "加工单生成时间")
172 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
173 private Date processingGenerateTime;
174
175 /**
176 * 验收完成时间
177 */
178 @Schema(description = "验收完成时间")
179 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
180 private Date acceptFinishTime;
181
182 /**
183 * 完成周期
184 */
185 @Schema(description = "完成周期")
186 private Integer finishCycle;
187
188 /**
189 * 资源获取状态【N未开始 A进行中 Y已完成】
190 */
191 @Schema(description = "资源获取状态【N未开始 A进行中 Y已完成】")
192 private String resourceAcquisitionState;
193
194 /**
195 * 产品加工状态【N未开始 A进行中 Y已完成】
196 */
197 @Schema(description = "产品加工状态【N未开始 A进行中 Y已完成】")
198 private String productProcessingState;
199
200 /**
201 * 产品交付状态【N未开始 A进行中 Y已完成】
202 */
203 @Schema(description = "产品交付状态【N未开始 A进行中 Y已完成】")
204 private String productDeliveryState;
205
206 /**
207 * 产品验收状态【N未开始 A进行中 Y已完成】
208 */
209 @Schema(description = "产品验收状态【N未开始 A进行中 Y已完成】")
210 private String productAcceptState;
211
212 @Schema(description = "合同附件")
213 private String contractAttachJson;
214
215 @Schema(description = "加工单位类型")
216 private String processCompanyType;
217
218 @Schema(description = "加工单位唯一标识")
219 private String processCompanyGuid;
220
221 @Schema(description = "加工单位名称")
222 private String processCompanyName;
223
224 @Schema(description = "发起人")
225 private String createUserName;
226
227 @Schema(description = "提交时间")
228 private Date createTime;
229
230 @Schema(description = "需求单编号")
231 private String requirementOrderNo;
232
233 @Schema(description = "加工单编号")
234 private String processOrderNo;
235
236 @Schema(title = "专区名称")
237 private String zqName;
238
239 @Schema(description ="业务名称")
240 private String bizName;
241
242 /**
243 * 跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)
244 */
245 @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
246 private String crossPlatformApproveState;
247
248 @Schema(title = "上架状态(Y 上架 N 下架)")
249 private String listingStatus;
250
251 /******** 库表存储属性 需处理 *****/
252
253 /******** 自定义扩展 *****/
254
255 /**
256 * 审批信息
257 */
258 @Schema(description = "审批信息")
259 private BizApproveVO approveVO;
260
261 /******** 子对象 *****/
262
263 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6
7 import java.util.Date;
8 import java.util.List;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 数据需求状态修改参数
13 * @author: xcq
14 * @create: 2025-02-10
15 **/
16 @Data
17 @Schema(title = "数据需求状态修改参数")
18 public class DemandUpdateStateVO {
19
20 @Schema(description = "加工单位唯一标识列表")
21 private List<String> processCompanyGuidList;
22
23 @Schema(description = "加工单位唯一标识")
24 private String processOrderGuid;
25
26 @Schema(description = "资源获取状态【N未开始 A进行中 Y已完成】")
27 private String resourceAcquisitionState;
28
29 @Schema(description = "产品加工状态【N未开始 A进行中 Y已完成】")
30 private String productProcessingState;
31
32 @Schema(description = "产品交付状态【N未开始 A进行中 Y已完成】")
33 private String productDeliveryState;
34
35 @Schema(description = "产品验收状态【N未开始 A进行中 Y已完成】")
36 private String productAcceptState;
37
38 @Schema(description ="产品验收验收完成时间")
39 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
40 private Date acceptFinishTime;
41
42 @Schema(description ="业务名称")
43 private String bizName;
44
45 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.vo.appove.ApproveVO;
4 import com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
5 import com.fasterxml.jackson.annotation.JsonFormat;
6 import io.swagger.v3.oas.annotations.media.Schema;
7 import lombok.Data;
8
9 import java.math.BigDecimal;
10 import java.util.Date;
11 import java.util.List;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 企业信息返回参数
16 * @author: xcq
17 * @create: 2024-12-26 16:18
18 **/
19 @Data
20 @Schema(title = "企业信息返回参数")
21 public class EnterpriseApproveRSVO extends ApproveVO {
22
23 @Schema(description = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
24 private String crossPlatformApproveState;
25
26 @Schema(description = "专区名称")
27 private String zqName;
28
29 /******** 子对象 *****/
30
31 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.mybatis.annotations.LikeQuery;
4 import com.csbr.cloud.mybatis.enums.LikeQueryEnum;
5 import com.csbr.cloud.workflow.domain.dto.appove.FlowBizGuidQueryDTO;
6 import io.swagger.v3.oas.annotations.media.Schema;
7 import lombok.EqualsAndHashCode;
8 import lombok.Data;
9 import java.math.BigDecimal;
10 import java.util.Date;
11 import java.util.List;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 企业信息查询参数
16 * @author: xcq
17 * @create: 2024-12-26 16:18
18 **/
19 @EqualsAndHashCode(callSuper = true)
20 @Data
21 @Schema(title = "企业信息查询参数")
22 public class EnterpriseQueryVO extends FlowBizGuidQueryDTO {
23
24 @Schema(description = "企业名称")
25 @LikeQuery(type = LikeQueryEnum.ALL)
26 private String tenantName;
27
28 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
29 private String tenantType;
30
31 /**
32 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃】
33 */
34 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中;】")
35 private String bizApproveState;
36
37 @Schema(description = "排除业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中;】")
38 private List<String> bizApproveStateNotList;
39
40 @Schema(description = "创建人姓名")
41 private String createUserName;
42
43 @Schema(description = "登录账号")
44 private String logonUser;
45
46 /******** 自定义扩展 *****/
47
48 /**
49 * 数据唯一标识【List集合】
50 */
51 @Schema(description = "数据唯一标识", hidden = true)
52 private List<String> guidList;
53
54 /**
55 * 是否调用查询的判断
56 */
57 @Schema(description = "是否调用查询的判断", hidden = true)
58 private Boolean isNeedQuery;
59
60 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import com.fasterxml.jackson.annotation.JsonFormat;
6 import lombok.Data;
7 import java.math.BigDecimal;
8 import java.util.Date;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 企业信息新增、修改参数
13 * @author: xcq
14 * @create: 2024-12-26 16:18
15 **/
16 @Data
17 @Schema(title = "企业信息新增、修改参数")
18 public class EnterpriseRQVO extends FlowRQBaseVO {
19
20 @Schema(description = "会员GUID")
21 private String tenantGuid;
22 /**
23 * 公司名称
24 */
25 @Schema(description = "公司名称")
26 private String tenantName;
27
28 @Schema(title = "专区名称")
29 private String zqName;
30
31 /**
32 * 统一社会信用代码
33 */
34 @Schema(description = "统一社会信用代码")
35 private String socialCreditCode;
36
37 /**
38 * 企业类型【选择平台字典【公司类型】的选项】
39 */
40 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
41 private String tenantType;
42
43 /**
44 * 注册日期
45 */
46 @Schema(description = "注册日期")
47 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
48 private Date registrationDate;
49
50 /**
51 * 注册资本【(万元)】
52 */
53 @Schema(description = "注册资本【(万元)】")
54 private BigDecimal registeredCapital;
55
56 /**
57 * 税号
58 */
59 @Schema(description = "税号")
60 private String bankTaxNo;
61
62 /**
63 * 省
64 */
65 @Schema(description = "省")
66 private String province;
67
68 /**
69 * 市
70 */
71 @Schema(description = "市")
72 private String city;
73
74 /**
75 * 区
76 */
77 @Schema(description = "区")
78 private String district;
79
80 /**
81 * 营业期限【1 长期有效;2 自定义】
82 */
83 @Schema(description = "营业期限【1 长期有效;2 自定义】")
84 private String businessLicenseTerm;
85
86 /**
87 * 营业开始日期
88 */
89 @Schema(description = "营业开始日期")
90 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
91 private Date businessLicenseStartDate;
92
93 /**
94 * 营业结束日期
95 */
96 @Schema(description = "营业结束日期")
97 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
98 private Date businessLicenseEndDate;
99
100 /**
101 * 营业执照
102 */
103 @Schema(description = "营业执照")
104 private String businessLicenseJson;
105
106 /**
107 * 营业执照经营范围
108 */
109 @Schema(description = "营业执照经营范围")
110 private String businessLicenseScope;
111
112 /**
113 * 公司法人
114 */
115 @Schema(description = "公司法人")
116 private String juridicalPerson;
117
118 /**
119 * 法人证件类型
120 */
121 @Schema(description = "法人证件类型")
122 private String juridicalPersonIdType;
123
124 /**
125 * 法人证件号
126 */
127 @Schema(description = "法人证件号")
128 private String juridicalPersonId;
129
130 /**
131 * 法人证件照
132 */
133 @Schema(description = "法人证件照")
134 private String juridicalPersonIdPhotoJson;
135
136 /**
137 * 登录账号
138 */
139 @Schema(description = "登录账号")
140 private String logonUser;
141
142 /**
143 * 联系人
144 */
145 @Schema(description = "联系人")
146 private String contacts;
147
148 /**
149 * 联系人电话
150 */
151 @Schema(description = "联系人电话")
152 private String contactTel;
153
154 /**
155 * 管理员证件号
156 */
157 @Schema(description = "管理员证件号")
158 private String managerPersonId;
159
160 /**
161 * 管理员证件照
162 */
163 @Schema(description = "管理员证件照")
164 private String managerPersonIdPhotoJson;
165
166 /**
167 * 授权委托书
168 */
169 @Schema(description = "授权委托书")
170 private String authorizationLetter;
171
172 /**
173 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
174 */
175 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中; 默认 N】")
176 private String bizApproveState;
177
178 /******** 库表存储属性 需处理 *****/
179
180 /******** 自定义扩展 *****/
181
182 /******** 子对象 *****/
183
184 }
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 com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
7 import java.math.BigDecimal;
8 import java.util.Date;
9 import java.util.List;
10
11 /**
12 * @program: D:/git/ms-data-circulation-portal-service
13 * @description: 企业信息返回参数
14 * @author: xcq
15 * @create: 2024-12-26 16:18
16 **/
17 @Data
18 @Schema(title = "企业信息返回参数")
19 public class EnterpriseRSVO {
20
21 /**
22 * 系统唯一标识
23 */
24 @Schema(description = "系统唯一标识")
25 private String guid;
26
27 @Schema(description = "会员GUID")
28 private String tenantGuid;
29
30 /**
31 * 公司名称
32 */
33 @Schema(description = "公司名称")
34 private String tenantName;
35
36 /**
37 * 统一社会信用代码
38 */
39 @Schema(description = "统一社会信用代码")
40 private String socialCreditCode;
41
42 /**
43 * 企业类型【选择平台字典【公司类型】的选项】
44 */
45 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
46 private String tenantType;
47
48 /**
49 * 注册日期
50 */
51 @Schema(description = "注册日期")
52 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
53 private Date registrationDate;
54
55 /**
56 * 注册资本【(万元)】
57 */
58 @Schema(description = "注册资本【(万元)】")
59 private BigDecimal registeredCapital;
60
61 /**
62 * 税号
63 */
64 @Schema(description = "税号")
65 private String bankTaxNo;
66
67 /**
68 * 省
69 */
70 @Schema(description = "省")
71 private String province;
72
73 /**
74 * 市
75 */
76 @Schema(description = "市")
77 private String city;
78
79 /**
80 * 区
81 */
82 @Schema(description = "区")
83 private String district;
84
85 @Schema(description = "注册地")
86 private String venue;
87
88 /**
89 * 营业期限【1 长期有效;2 自定义】
90 */
91 @Schema(description = "营业期限【1 长期有效;2 自定义】")
92 private String businessLicenseTerm;
93
94 /**
95 * 营业开始日期
96 */
97 @Schema(description = "营业开始日期")
98 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
99 private Date businessLicenseStartDate;
100
101 /**
102 * 营业结束日期
103 */
104 @Schema(description = "营业结束日期")
105 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
106 private Date businessLicenseEndDate;
107
108 @Schema(description = "营业日期范围")
109 private String businessLicenseStartEnd;
110
111 /**
112 * 营业执照
113 */
114 @Schema(description = "营业执照")
115 private String businessLicenseJson;
116
117 /**
118 * 营业执照经营范围
119 */
120 @Schema(description = "营业执照经营范围")
121 private String businessLicenseScope;
122
123 /**
124 * 公司法人
125 */
126 @Schema(description = "公司法人")
127 private String juridicalPerson;
128
129 /**
130 * 法人证件类型
131 */
132 @Schema(description = "法人证件类型")
133 private String juridicalPersonIdType;
134
135 /**
136 * 法人证件号
137 */
138 @Schema(description = "法人证件号")
139 private String juridicalPersonId;
140
141 /**
142 * 法人证件照
143 */
144 @Schema(description = "法人证件照")
145 private String juridicalPersonIdPhotoJson;
146
147 /**
148 * 登录账号
149 */
150 @Schema(description = "登录账号")
151 private String logonUser;
152
153 /**
154 * 联系人
155 */
156 @Schema(description = "联系人")
157 private String contacts;
158
159 /**
160 * 联系人电话
161 */
162 @Schema(description = "联系人电话")
163 private String contactTel;
164
165 /**
166 * 管理员证件号
167 */
168 @Schema(description = "管理员证件号")
169 private String managerPersonId;
170
171 /**
172 * 管理员证件照
173 */
174 @Schema(description = "管理员证件照")
175 private String managerPersonIdPhotoJson;
176
177 /**
178 * 授权委托书
179 */
180 @Schema(description = "授权委托书")
181 private String authorizationLetter;
182
183 /**
184 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
185 */
186 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃;B 变更中; 默认 N】")
187 private String bizApproveState;
188
189 @Schema(description = "提交时间")
190 private Date createTime;
191
192 @Schema(title = "专区名称")
193 private String zqName;
194
195 /**
196 * 跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)
197 */
198 @Schema(title = "跨平台审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
199 private String crossPlatformApproveState;
200
201 /******** 库表存储属性 需处理 *****/
202
203 /******** 自定义扩展 *****/
204
205 /**
206 * 审批信息
207 */
208 @Schema(description = "审批信息")
209 private BizApproveVO approveVO;
210
211 @Schema(description = "变更信息列表")
212 private List<ChangeInfoVO> changeList;
213
214 @Schema(description = "变更前信息列表")
215 private List<ChangeInfoVO> beforeChangeList;
216
217 /******** 子对象 *****/
218
219 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.dto.appove.FlowUpdateStateDTO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6 import org.springframework.util.MultiValueMap;
7
8 /**
9 * @description: 审批变更检查实体
10 * @author: XiaoCQ
11 * @create: 2025-02-20
12 */
13 @Data
14 @Schema(name = "审批变更检查实体")
15 public class KafkaApproveDTO {
16
17 @Schema(description = "审批流参数")
18 private FlowUpdateStateDTO updateStateDTO;
19
20 @Schema(description = "请求头")
21 private MultiValueMap<String, String> header;
22
23 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6
7 import java.util.Date;
8
9 /**
10 * @program:
11 * @description: 加工单加工明细返回参数
12 * @author: xup
13 * @create: 2025-02-10 17:57
14 **/
15 @Data
16 @Schema(title = "加工单加工明细返回参数")
17 public class ProcessOrderProcessDtlRSVO {
18
19 /**
20 * 系统唯一标识
21 */
22 @Schema(description = "系统唯一标识")
23 private String guid;
24
25 /**
26 * 会员Guid
27 */
28 @Schema(description = "会员Guid")
29 private String tenantGuid;
30
31 /**
32 * 加工单Guid
33 */
34 @Schema(description = "加工单Guid")
35 private String processOrderGuid;
36
37 /**
38 * 加工单号
39 */
40 @Schema(description = "加工单号")
41 private String processOrderNo;
42
43 /**
44 * 加工单名称
45 */
46 @Schema(description = "加工单名称")
47 private String processOrderName;
48
49 /**
50 * 加工方式(1 数据服务;2 需求申请)
51 */
52 @Schema(description = "加工方式(1 数据服务;2 需求申请)")
53 private Integer processType;
54
55 /**
56 * 业务Guid
57 */
58 @Schema(description = "业务Guid")
59 private String bizGuid;
60
61 /**
62 * 业务名称
63 */
64 @Schema(description = "业务名称")
65 private String bizName;
66
67 /**
68 * 加工状态(N 未开始;A 进行中;Y 已完成)
69 */
70 @Schema(description = "加工状态(N 未开始;A 进行中;Y 已完成)")
71 private String processState;
72
73 /**
74 * 加工时间
75 */
76 @Schema(description = "加工时间")
77 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
78 private Date processTime;
79
80 /**
81 * 交付时间
82 */
83 @Schema(description = "交付时间")
84 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
85 private Date deliverTime;
86
87 /******** 库表存储属性 需处理 *****/
88
89 /******** 自定义扩展 *****/
90
91 /******** 子对象 *****/
92
93 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6
7 import java.util.Date;
8
9 /**
10 * @program:
11 * @description: 加工单管理新增、修改参数
12 * @author: makejava
13 * @create: 2024-12-06 15:41
14 **/
15 @Data
16 @Schema(title = "加工单管理新增、修改参数")
17 public class ProcessOrderRQVO {
18
19 /**
20 * 系统唯一标识
21 */
22 @Schema(description = "系统唯一标识")
23 private String guid;
24
25 /**
26 * 企业唯一标识
27 */
28 @Schema(description = "企业唯一标识")
29 private String tenantGuid;
30
31 @Schema(description = "加工单位唯一标识")
32 private String processCompanyGuid;
33
34 @Schema(description = "加工人员唯一标识")
35 private String processStaffGuid;
36
37 /**
38 * 公司名称
39 */
40 @Schema(description = "公司名称")
41 private String tenantName;
42
43 /**
44 * 加工单编号
45 */
46 @Schema(description = "加工单编号")
47 private String processOrderNo;
48
49 /**
50 * 受理单编号
51 */
52 @Schema(description = "受理单编号")
53 private String acceptanceOrderNo;
54
55 /**
56 * 需求单编号
57 */
58 @Schema(description = "需求单编号")
59 private String requirementOrderNo;
60
61 /**
62 * 需求单名称
63 */
64 @Schema(description = "需求单名称")
65 private String requirementOrderName;
66
67 /**
68 * 需求单位
69 */
70 @Schema(description = "需求单位")
71 private String requirementUnit;
72
73 /**
74 * 需求开始时间
75 */
76 @Schema(description = "需求开始时间")
77 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
78 private Date requirementTermSdate;
79
80 /**
81 * 需求结束时间
82 */
83 @Schema(description = "需求结束时间")
84 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
85 private Date requirementTermEdate;
86
87 /**
88 * 更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】
89 */
90 @Schema(description = "更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】")
91 private String updateCycle;
92
93 /**
94 * 获取路径【API路径】
95 */
96 @Schema(description = "获取路径【API路径】")
97 private String requestPath;
98
99 /**
100 * 需求内容
101 */
102 @Schema(description = "需求内容")
103 private String requirementContent;
104
105 /**
106 * 需求附件【数据格式:[{"name":"","path":""},{"name":"","path":""}]】
107 */
108 @Schema(description = "需求附件【数据格式:[{\"name\":\"\",\"path\":\"\"},{\"name\":\"\",\"path\":\"\"}]】")
109 private String fileUrl;
110
111 /**
112 * 应用场景说明
113 */
114 @Schema(description = "应用场景说明")
115 private String applicationSceneDesc;
116
117 /**
118 * 受理原因
119 */
120 @Schema(description = "受理原因")
121 private String acceptanceReason;
122
123 /**
124 * 加工状态(N 未分派;A 处理中;J 已交付;Y 已验收)
125 */
126 @Schema(description = "加工状态(N 未分派;A 处理中;J 已交付;Y 已验收)")
127 private String processState;
128
129 /**
130 * 联系人
131 */
132 @Schema(description = "联系人")
133 private String contacts;
134
135 /**
136 * 联系人电话
137 */
138 @Schema(description = "联系人电话")
139 private String contactTel;
140
141 /**
142 * 受理日期
143 */
144 @Schema(description = "受理日期")
145 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
146 private Date acceptanceDate;
147
148 /**
149 * 接收人
150 */
151 @Schema(description = "接收人")
152 private String acceptanceName;
153
154 /**
155 * 接收人唯一标识
156 */
157 @Schema(description = "接收人唯一标识")
158 private String acceptanceNameGuid;
159
160 /**
161 * 关联合同信息
162 */
163 @Schema(description = "关联合同信息")
164 private String linkContractInfoJson;
165
166 @Schema(description = "加工单位类型")
167 private String processCompanyType;
168
169 /**
170 * 负责人姓名
171 */
172 @Schema(description = "负责人姓名")
173 private String chargeStaffName;
174
175 /**
176 * 负责人GUID
177 */
178 @Schema(description = "负责人GUID")
179 private String chargeStaffGuid;
180
181 /**
182 * 加加工成员【数据格式:[{"guid":"","name":""}]】
183 */
184 @Schema(description = "加工成员【数据格式:[{‘guid’:‘’,‘name’:‘’}]")
185 private String processMemberJson;
186
187 /**
188 * 最后操作人唯一标识
189 */
190 @Schema(description = "最后操作人唯一标识")
191 private String lastOperatorUserId;
192
193 /**
194 * 最后操作人姓名
195 */
196 @Schema(description = "最后操作人姓名")
197 private String lastOperatorUserName;
198
199 /**
200 * 指派时间
201 */
202 @Schema(description = "指派时间")
203 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
204 private Date assignDay;
205
206 /**
207 * 加工时间
208 */
209 @Schema(description = "加工时间")
210 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
211 private Date processTime;
212
213 /**
214 * 交付时间
215 */
216 @Schema(description = "交付时间")
217 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
218 private Date deliverTime;
219
220 /**
221 * 分库标识
222 */
223 @Schema(description = "分库标识")
224 private String shardingFlag;
225
226 /******** 库表存储属性 需处理 *****/
227
228 /******** 自定义扩展 *****/
229
230 /******** 子对象 *****/
231
232 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import lombok.Data;
4 import lombok.experimental.Accessors;
5
6 /**
7 * @program: common-admin-platform-auth-service
8 * @description: 订单编号DTO
9 * @author: Huanglh
10 * @create: 2020-08-14 09:41
11 **/
12 @Data
13 @Accessors(chain = true)
14 public class RuleDTO {
15 /** 规则名称 */
16 private String ruleName;
17
18 /** 规则类型 */
19 private String ruleType;
20 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.mybatis.annotations.LikeQuery;
4 import com.csbr.cloud.mybatis.enums.LikeQueryEnum;
5 import com.csbr.cloud.workflow.domain.dto.appove.FlowBizGuidQueryDTO;
6 import io.swagger.v3.oas.annotations.media.Schema;
7 import lombok.EqualsAndHashCode;
8 import lombok.Data;
9 import java.util.Date;
10 import java.util.List;
11
12 /**
13 * @program: D:/git/ms-data-circulation-portal-service
14 * @description: 服务商维护查询参数
15 * @author: xcq
16 * @create: 2024-12-31 18:49
17 **/
18 @EqualsAndHashCode(callSuper = true)
19 @Data
20 @Schema(title = "服务商维护查询参数")
21 public class ServicerMaintainQueryVO extends FlowBizGuidQueryDTO {
22
23 @Schema(description = "公司名称")
24 @LikeQuery(type = LikeQueryEnum.ALL)
25 private String tenantName;
26
27 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
28 private String tenantType;
29
30 @Schema(description = "能否继续合作【Y 能;N 不能;】")
31 private String canContinueCollaborate;
32
33 /**
34 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃】
35 */
36 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃】")
37 private String bizApproveState;
38
39 /******** 自定义扩展 *****/
40
41 /**
42 * 数据唯一标识【List集合】
43 */
44 @Schema(description = "数据唯一标识", hidden = true)
45 private List<String> guidList;
46
47 /**
48 * 是否调用查询的判断
49 */
50 @Schema(description = "是否调用查询的判断", hidden = true)
51 private Boolean isNeedQuery;
52
53 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import com.fasterxml.jackson.annotation.JsonFormat;
6 import lombok.Data;
7 import java.util.Date;
8
9 /**
10 * @program: D:/git/ms-data-circulation-portal-service
11 * @description: 服务商维护新增、修改参数
12 * @author: xcq
13 * @create: 2024-12-31 18:49
14 **/
15 @Data
16 @Schema(title = "服务商维护新增、修改参数")
17 public class ServicerMaintainRQVO extends FlowRQBaseVO {
18
19 /**
20 * 企业唯一标识
21 */
22 @Schema(description = "企业唯一标识")
23 private String tenantGuid;
24
25 /**
26 * 公司名称
27 */
28 @Schema(description = "公司名称")
29 private String tenantName;
30
31 /**
32 * 企业类型【选择平台字典【公司类型】的选项】
33 */
34 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
35 private String tenantType;
36
37 /**
38 * 提交时间
39 */
40 @Schema(description = "提交时间")
41 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
42 private Date submitTime;
43
44 /**
45 * 联系人
46 */
47 @Schema(description = "联系人")
48 private String contacts;
49
50 /**
51 * 联系人电话
52 */
53 @Schema(description = "联系人电话")
54 private String contactTel;
55
56 /**
57 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
58 */
59 @Schema(description = "业务审批状态(传Y表示不走审批流)【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
60 private String bizApproveState;
61
62 /**
63 * 能否继续合作【Y 能;N 不能;】
64 */
65 @Schema(description = "能否继续合作【Y 能;N 不能;】")
66 private String canContinueCollaborate;
67
68 /**
69 * 维护信息
70 */
71 @Schema(description = "维护信息")
72 private String maintainJson;
73
74 /******** 库表存储属性 需处理 *****/
75
76 /******** 自定义扩展 *****/
77
78 /******** 子对象 *****/
79
80 }
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 com.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
7 import java.util.Date;
8
9 /**
10 * @program: D:/git/ms-data-circulation-portal-service
11 * @description: 服务商维护返回参数
12 * @author: xcq
13 * @create: 2024-12-31 18:49
14 **/
15 @Data
16 @Schema(title = "服务商维护返回参数")
17 public class ServicerMaintainRSVO {
18
19 /**
20 * 系统唯一标识
21 */
22 @Schema(description = "系统唯一标识")
23 private String guid;
24
25 /**
26 * 企业唯一标识
27 */
28 @Schema(description = "企业唯一标识")
29 private String tenantGuid;
30
31 /**
32 * 公司名称
33 */
34 @Schema(description = "公司名称")
35 private String tenantName;
36
37 /**
38 * 企业类型【选择平台字典【公司类型】的选项】
39 */
40 @Schema(description = "企业类型【选择平台字典【公司类型】的选项】")
41 private String tenantType;
42
43 /**
44 * 提交时间
45 */
46 @Schema(description = "提交时间")
47 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
48 private Date submitTime;
49
50 /**
51 * 联系人
52 */
53 @Schema(description = "联系人")
54 private String contacts;
55
56 /**
57 * 联系人电话
58 */
59 @Schema(description = "联系人电话")
60 private String contactTel;
61
62 /**
63 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
64 */
65 @Schema(description = "业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
66 private String bizApproveState;
67
68 /**
69 * 能否继续合作【Y 能;N 不能;】
70 */
71 @Schema(description = "能否继续合作【Y 能;N 不能;】")
72 private String canContinueCollaborate;
73
74 /**
75 * 维护信息
76 */
77 @Schema(description = "维护信息")
78 private String maintainJson;
79
80 @Schema(description = "创建人")
81 private String createUserName;
82
83 @Schema(description = "创建时间")
84 private Date createTime;
85
86 /******** 库表存储属性 需处理 *****/
87
88 /******** 自定义扩展 *****/
89
90 @Schema(description = "企业类型名称")
91 private String tenantTypeName;
92
93 /**
94 * 审批信息
95 */
96 @Schema(description = "审批信息")
97 private BizApproveVO approveVO;
98
99 /******** 子对象 *****/
100
101 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import csbr.cloud.entity.domain.base.vo.CsbrBaseVO;
4 import csbr.cloud.entity.domain.common.CommonJson;
5 import io.swagger.v3.oas.annotations.media.Schema;
6 import jdk.jfr.Name;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors;
10 import java.util.List;
11
12 /**
13 * 人员表 视图对象类
14 *
15 * @author xiaocq
16 * @date 2023-12-19
17 */
18 @Data
19 @Accessors(chain = true)
20 @EqualsAndHashCode(callSuper = true)
21 @Schema(name = "人员详情返回实体")
22 public class StaffRSVO extends CsbrBaseVO {
23
24 /**
25 * 上级guid
26 */
27 @Schema(description = "上级guid")
28 private String leaderGuid;
29
30 /**
31 * 用户guid
32 */
33 @Schema(description = "用户guid")
34 private String userGuid;
35
36 /**
37 * 微信小程序openId
38 */
39 @Schema(description = "微信小程序openId")
40 private String wechatOpenId;
41
42 /**
43 * 微信公众号openId
44 */
45 @Name("微信公众号openId")
46 @Schema(description = "微信公众号openId")
47 private String openId;
48
49 /**
50 * 微信唯一码
51 */
52 @Name("微信唯一码")
53 @Schema(description = "微信唯一码")
54 private String unionId;
55
56 /**
57 * 工作地
58 */
59 @Schema(description = "工作地")
60 private String workAddress;
61
62 /**
63 * 是否部门负责人
64 */
65 @Schema(description = "是否部门负责人")
66 private String isLeader;
67
68 /**
69 * 公司邮箱
70 */
71 @Schema(description = "公司邮箱")
72 private String companyEmail;
73
74 /**
75 * 姓名
76 */
77 @Schema(description = "姓名")
78 private String staffName;
79
80
81 /**
82 * 工号
83 */
84 @Schema(description = "工号")
85 private String staffNo;
86
87 /**
88 * 手机号码
89 */
90 @Schema(description = "手机号码")
91 private String mobileNo;
92
93 /**
94 * 身份证号
95 */
96 @Schema(description = "身份证号")
97 private String idCode;
98
99 /**
100 * 企业guid
101 */
102 @Schema(description = "企业guid")
103 private String tenantGuid;
104
105
106 /**
107 * 部门guidJson
108 */
109 @Schema(description = "部门guidJson")
110 private String organisationGuidJson;
111
112 /**
113 * 组织架构guid列表
114 */
115 @Schema(description = "组织架构guid列表")
116 private String organisationRelGuidJson;
117
118 /**
119 * 岗位guidJson
120 */
121 @Schema(description = "岗位guidJson")
122 private String postGuidJson;
123
124 @Schema(description = "是否管理员")
125 private String isAdmin;
126
127 /********非库表存储属性*****/
128
129
130 /** 职级名称 */
131 @Schema(description = "上级名称")
132 private String leaderName;
133
134 /** 企业名称 */
135 @Schema(description = "企业名称")
136 private String tenantName;
137
138 @Schema(description = "状态Y 期用;S 停用")
139 private String bizState;
140
141 /** 部门guid列表 */
142 @Schema(description = "部门guid列表")
143 private List<String> organisationGuidList;
144
145 /** 部门列表名称 */
146 @Schema(description = "部门列表名称")
147 private List<String> organisationNameList;
148
149 /** 岗位guid列表 */
150 @Schema(description = "岗位guid列表")
151 private List<String> postGuidList;
152
153 /** 岗位列表名称 */
154 @Schema(description = "岗位列表名称")
155 private List<String> postNameList;
156
157 /********字典类*****/
158
159 /********实体类、用户单选、组织机构单选*****/
160
161 /********范围查询*****/
162
163 /********自定义扩展*****/
164
165 /********子对象*****/
166
167 @Schema(description = "菜单模板")
168 private List<CommonJson> funcPermissionTemplateJson;
169
170
171 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import csbr.cloud.entity.domain.base.vo.CsbrBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6 import lombok.EqualsAndHashCode;
7 import lombok.experimental.Accessors;
8
9 /**
10 * 企业证照表 视图对象类
11 *
12 * @author xiaocq
13 * @date 2023-12-19
14 */
15 @Data
16 @Accessors(chain = true)
17 @EqualsAndHashCode(callSuper = true)
18 @Schema(name = "企业证照表")
19 public class TenantLicRQVO extends CsbrBaseVO {
20 /**
21 * 企业唯一标识
22 */
23 @Schema(description = "企业唯一标识")
24 private String tenantGuid;
25
26 /**
27 * 证照类型
28 */
29 @Schema(description = "证照类型")
30 private String licenseType;
31
32 /**
33 * 图片内容
34 */
35 @Schema(description = "图片内容")
36 private String pictContentJson;
37
38
39 /********非库表存储属性*****/
40
41
42
43 /********字典类*****/
44
45 /********实体类、用户单选、组织机构单选*****/
46
47 /********范围查询*****/
48
49 /********自定义扩展*****/
50
51 /********子对象*****/
52
53
54
55
56 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import csbr.cloud.entity.domain.base.vo.CsbrBaseVO;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6 import lombok.EqualsAndHashCode;
7 import lombok.experimental.Accessors;
8
9 import java.math.BigDecimal;
10 import java.time.LocalDateTime;
11 import java.util.List;
12
13 /**
14 * 企业表 视图对象类
15 *
16 * @author xiaocq
17 * @date 2023-12-19
18 */
19 @Data
20 @Accessors(chain = true)
21 @EqualsAndHashCode(callSuper = true)
22 @Schema(name = "企业表")
23 public class TenantRQVO extends CsbrBaseVO {
24
25 @Schema(description = "上级企业GUID")
26 private String parentGuid;
27
28 /**
29 * 公司编号
30 */
31 @Schema(description = "公司编号")
32 private String tenantCode;
33
34 /**
35 * 公司名称
36 */
37 @Schema(description = "公司名称")
38 private String tenantName;
39
40 /**
41 * 公司简称
42 */
43 @Schema(description = "公司简称")
44 private String abbreviation;
45
46 @Schema(description = "企业类型")
47 private String tenantType;
48
49 /**
50 * 公司法人
51 */
52 @Schema(description = "公司法人")
53 private String personIncharge;
54
55 /**
56 * 注册日期
57 */
58 @Schema(description = "注册日期")
59 private LocalDateTime registrationDate;
60
61 /**
62 * 注册资本
63 */
64 @Schema(description = "注册资本")
65 private BigDecimal registeredCapital;
66
67 /**
68 * 税号
69 */
70 @Schema(description = "税号")
71 private String bankTaxNo;
72
73 /**
74 * 单位地址
75 */
76 @Schema(description = "单位地址")
77 private String companyAddress;
78
79 /**
80 * 状态
81 */
82 @Schema(description = "状态 N草稿 Y正常 S停用")
83 private String bizState;
84
85 /**
86 * 营业执照经营范围
87 */
88 @Schema(description = "营业执照经营范围")
89 private String businessLicenseScope;
90
91 /**
92 * 联系人
93 */
94 @Schema(description = "联系人")
95 private String contacts;
96
97 /**
98 * 联系人电话
99 */
100 @Schema(description = "联系人电话")
101 private String contactTel;
102
103 /**
104 * 公司电话
105 */
106 @Schema(description = "公司电话")
107 private String enterprisePhone;
108
109 /**
110 * 省
111 */
112 @Schema(description = "省")
113 private String province;
114
115 /**
116 * 市
117 */
118 @Schema(description = "市")
119 private String city;
120
121 /**
122 * 区
123 */
124 @Schema(description = "区")
125 private String district;
126
127 /**
128 * 地址
129 */
130 @Schema(description = "地址")
131 private String venue;
132
133 /**
134 * 详细地址
135 */
136 @Schema(description = "详细地址")
137 private String address;
138
139 /**
140 * 登录账号
141 */
142 @Schema(description = "登录账号")
143 private String logonUser;
144
145 @Schema(description = "会员状态 来自字典")
146 private String memberStatus;
147
148 @Schema(description = "持股类型 来自字典")
149 private String holdType;
150
151
152 /********非库表存储属性*****/
153
154 @Schema(description = "token后台赋值")
155 private String token;
156
157 @Schema(description = "业务唯一标识")
158 private String bizGuid;
159
160 /********字典类*****/
161
162 /********实体类、用户单选、组织机构单选*****/
163
164 /********范围查询*****/
165
166 /********自定义扩展*****/
167
168 /********子对象*****/
169
170 @Schema(description = "企业证照列表")
171 private List<TenantLicRQVO> tenantLicList;
172
173 @Schema(hidden = true,description = "分库标识")
174 private String shardingFlag;
175 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.csbr.cloud.mybatis.annotations.LikeQuery;
4 import com.csbr.cloud.mybatis.enums.LikeQueryEnum;
5 import csbr.cloud.entity.domain.base.dto.BasePageDTO;
6 import io.swagger.v3.oas.annotations.media.Schema;
7 import jakarta.validation.constraints.Pattern;
8 import lombok.Data;
9
10 import java.util.List;
11
12 /**
13 * @program: common-admin-platform-auth-service
14 * @description: 用户查询参数
15 * @author: yio
16 * @create: 2020-07-28 13:47
17 **/
18 @Data
19 @Schema(name = "用户查询参数")
20 public class UserQueryDTO extends BasePageDTO {
21 /** 系统唯一标识 */
22 @Schema(name = "guid",title = "系统唯一标识")
23 private String guid;
24
25 /** 锁定(Y 是;N 否) */
26 @Schema(name = "guid",title = "锁定(Y 是;N 否)")
27 @Pattern(regexp = "^Y|N$", message = "锁定应该为Y、N中的值。")
28 private String isLocked;
29
30 /** 登录账号 */
31 @Schema(name = "guid",title = "登录账号")
32 @LikeQuery(type = LikeQueryEnum.ALL)
33 private String logonUser;
34
35 /** 登录账号(多个) */
36 @Schema(name = "guid",title = "登录账号(多个)")
37 private List<String> logonUserList;
38
39 /** 手机号 */
40 @Schema(name = "guid",title = "手机号")
41 @LikeQuery(type = LikeQueryEnum.ALL)
42 private String mobileNo;
43
44 /** 手机号 */
45 @Schema(name = "guid",title = "手机号(多个)")
46 @LikeQuery(type = LikeQueryEnum.ALL)
47 private List<String> mobileNoList;
48
49 /** 姓名 */
50 @Schema(name = "guid",title = "姓名")
51 @LikeQuery(type = LikeQueryEnum.ALL)
52 private String name;
53
54 /** 平台GUID */
55 @Schema(name = "guid",title = "平台GUID")
56 private String platformGuid;
57
58 /** 业务状态(Y 有效;S 停用) */
59 @Schema(name = "guid",title = "业务状态(Y 有效;S 停用)")
60 @Pattern(regexp = "^Y|S$", message = "业务状态应该为Y、S中的值。")
61 private String bizState;
62
63 }
1 package com.csbr.qingcloud.portal.domain.vo;
2
3 import com.baomidou.mybatisplus.annotation.TableLogic;
4 import io.swagger.v3.oas.annotations.media.Schema;
5 import lombok.Data;
6
7 import java.sql.Timestamp;
8
9 /**
10 * @program: common-admin-platform-auth-service
11 * @description: 获取用户查询的返回值对象
12 * @author: yio
13 * @create: 2020-07-28 14:46
14 **/
15 @Data
16 @Schema(name = "获取用户查询的返回值对象")
17 public class UserVO {
18
19 /** 业务状态(Y 有效;S 停用) */
20 @Schema(name = "guid",title = "业务状态(Y 有效;S 停用)")
21 private String bizState;
22
23 /** 创建时间 */
24 @Schema(name = "guid",title = "创建时间")
25 private Timestamp createTime;
26
27 /** 创建人 */
28 @Schema(name = "guid",title = "创建人")
29 private String createUserId;
30
31 /** 创建人姓名 */
32 @Schema(name = "guid",title = "创建人姓名")
33 private String createUserName;
34
35 /** 系统唯一标识 */
36 @Schema(name = "guid",title = "系统唯一标识")
37 private String guid;
38
39 /** 是否删除(null 是;N 否 默认 N) */
40 @Schema(name = "guid",title = "是否删除(Y 是;N 否 默认 N)")
41 @TableLogic
42 private String isDeleted;
43
44 /** 锁定(Y 是;N 否) */
45 @Schema(name = "guid",title = "锁定(Y 是;N 否)")
46 private String isLocked;
47
48 /** 最后登录时间 */
49 @Schema(name = "guid",title = "最后登录时间")
50 private Timestamp lastLoginTime;
51
52 /** 登录失败次数 */
53 @Schema(name = "guid",title = "登录失败次数")
54 private Integer loginErrorCount;
55
56 /** 登录账号 */
57 @Schema(name = "guid",title = "登录账号")
58 private String logonUser;
59
60 /** 手机号 */
61 @Schema(name = "guid",title = "手机号")
62 private String mobileNo;
63
64 /** 姓名 */
65 @Schema(name = "guid",title = "姓名")
66 private String name;
67
68 /** 平台GUID */
69 @Schema(name = "guid",title = "平台GUID")
70 private String platformGuid;
71
72 /** 密码 */
73 @Schema(name = "guid",title = "密码")
74 private String pwd;
75
76 /** 修改时间 */
77 @Schema(name = "guid",title = "修改时间")
78 private Timestamp updateTime;
79
80 /** 修改人 */
81 @Schema(name = "guid",title = "修改人")
82 private String updateUserId;
83
84 /** 修改姓名 */
85 @Schema(name = "guid",title = "修改姓名")
86 private String updateUserName;
87
88 @Schema(name = "guid",title = "微信授权认证的unionId")
89 private String unionId;
90 }
1 package com.csbr.qingcloud.portal.feign;
2
3 import com.csbr.cloud.common.config.FastCallFeignConfiguration;
4 import com.csbr.cloud.common.entity.DictModel;
5 import com.csbr.cloud.common.entity.DictionaryVO;
6 import com.csbr.cloud.common.response.CommonRes;
7 import com.csbr.qingcloud.portal.domain.vo.BoroughPOJO;
8 import com.csbr.qingcloud.portal.domain.vo.RuleDTO;
9 import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
10 import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
11 import jakarta.validation.Valid;
12 import org.springframework.cloud.openfeign.FeignClient;
13 import org.springframework.http.MediaType;
14 import org.springframework.web.bind.annotation.*;
15 import java.util.List;
16
17 /**
18 * @author Xiaocq
19 */
20 @FeignClient(value = "ms-daop-configure-service", configuration = FastCallFeignConfiguration.class)
21
22 public interface ConfigureFeign {
23
24 /**
25 * 通过字典类型获取字典数据
26 */
27 @HystrixCommand(fallbackMethod = "CommonUtil.sleepFallback", commandProperties =
28 {
29 @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1500")
30 })
31 @RequestMapping(value = "/dict/data/get-by-dictType", method = RequestMethod.GET)
32 CommonRes<List<DictModel>> getDictListByType(@RequestParam String dictType);
33
34
35 /**
36 * 获取全部字典
37 */
38 @GetMapping(value = "/dict/data/get-all",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
39 CommonRes<List<DictionaryVO>> getAll();
40
41 /**
42 * 编码生成
43 */
44 @PostMapping(value = "/rule/new-code",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
45 CommonRes<String> newCode(@RequestBody RuleDTO dto);
46
47 @GetMapping(value = "/borough/get-borough",produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
48 CommonRes<List<BoroughPOJO>> getBoroughCodeName();
49
50
51 }
1 package com.csbr.qingcloud.portal.feign;
2
3 import com.csbr.cloud.common.config.FastCallFeignConfiguration;
4 import com.csbr.cloud.common.response.CommonRes;
5 import com.csbr.qingcloud.portal.domain.vo.DemandUpdateStateVO;
6 import com.csbr.qingcloud.portal.domain.vo.ProcessOrderProcessDtlRSVO;
7 import com.csbr.qingcloud.portal.domain.vo.ProcessOrderRQVO;
8 import jakarta.validation.Valid;
9 import org.springframework.cloud.openfeign.FeignClient;
10 import org.springframework.http.MediaType;
11 import org.springframework.web.bind.annotation.PostMapping;
12 import org.springframework.web.bind.annotation.RequestBody;
13 import java.util.List;
14 import java.util.Map;
15
16 /**
17 * @author Xiaocq
18 */
19 @FeignClient(value = "ms-data-process-basic-service",url = "${dataProcessUrl}", configuration = FastCallFeignConfiguration.class)
20 public interface DataProcessBasicFeign {
21
22 @PostMapping(value = "/process-order/saveOrUpdate", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
23 CommonRes<Boolean> saveProcessOrder(@RequestBody @Valid ProcessOrderRQVO vo);
24
25 @PostMapping(value = "/process-order-process-dtl/get-order-state", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
26 CommonRes<Map<String, DemandUpdateStateVO>> getOrderState(@RequestBody List<String> processOrderGuids);
27
28 @PostMapping(value = "/process-order-process-dtl/process-order-list", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
29 CommonRes<List<ProcessOrderProcessDtlRSVO>> processOrderList(@RequestBody List<String> processOrderGuids);
30
31 @PostMapping(value = "/process-order-process-dtl/get-order-state-and-name", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
32 CommonRes<Map<String, DemandUpdateStateVO>> getOrderStateAndBizName(@RequestBody List<String> bizGuids);
33
34 }
1 package com.csbr.qingcloud.portal.feign;
2
3 import com.csbr.cloud.common.config.FastCallFeignConfiguration;
4 import com.csbr.cloud.common.response.CommonRes;
5 import com.csbr.qingcloud.portal.domain.vo.StaffRSVO;
6 import com.csbr.qingcloud.portal.domain.vo.TenantRQVO;
7 import org.springframework.cloud.openfeign.FeignClient;
8 import org.springframework.http.MediaType;
9 import org.springframework.validation.annotation.Validated;
10 import org.springframework.web.bind.annotation.*;
11
12 import java.util.Map;
13
14 /**
15 * @author Xiaocq
16 */
17 @FeignClient(value = "ms-daop-personel-service", configuration = FastCallFeignConfiguration.class)
18 public interface PersonelFeign {
19
20 @PostMapping(value = "/tenant/auth", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
21 CommonRes<TenantRQVO> authTenant(@RequestBody TenantRQVO vo);
22
23 @PutMapping(value = "/tenant/update", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
24 CommonRes<String> updateTenant(@RequestBody TenantRQVO vo);
25
26 @PutMapping(value = "/tenant/change-update", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
27 CommonRes<Boolean> changeUpdate(@RequestBody TenantRQVO vo);
28
29 @GetMapping(value = "/tenant/get-all-tenant-guid-name-map", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
30 CommonRes<Map<String, String>> getAllTenantGuidNameMap();
31
32 @PostMapping(value = "/tenant/check", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
33 CommonRes<Boolean> checkTenant(@Validated @RequestBody TenantRQVO vo);
34
35 @GetMapping(value = "/staff/getByUserGuid", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
36 CommonRes<StaffRSVO> getByUserGuid(@RequestParam String userGuid);
37
38 }
1 package com.csbr.qingcloud.portal.feign;
2
3 import com.csbr.cloud.common.config.FastCallFeignConfiguration;
4 import com.csbr.cloud.common.response.CommonRes;
5 import com.csbr.qingcloud.portal.domain.vo.UserQueryDTO;
6 import com.csbr.qingcloud.portal.domain.vo.UserVO;
7 import csbr.cloud.entity.domain.base.vo.PageListVO;
8 import org.springframework.cloud.openfeign.FeignClient;
9 import org.springframework.http.MediaType;
10 import org.springframework.web.bind.annotation.*;
11 import java.util.List;
12
13 /**
14 * @author Xiaocq
15 */
16 @FeignClient(value = "ms-daop-user-service", configuration = FastCallFeignConfiguration.class)
17 public interface UserFeign {
18
19 @PostMapping(value = "/user/data/get-some-info", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
20 CommonRes<PageListVO<UserVO>> getUserSomeInfo(@RequestBody UserQueryDTO dto);
21
22 /**
23 * 通过手机查用户
24 */
25 @PostMapping(value = "/user/data/get/mobile", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
26 CommonRes<List<UserVO>> getUserByMobileOrIdCode(@RequestBody UserQueryDTO dto);
27
28 }
1 package com.csbr.qingcloud.portal.feign;
2
3 import com.csbr.cloud.common.config.FastCallFeignConfiguration;
4 import com.csbr.cloud.common.response.CommonRes;
5 import com.csbr.cloud.workflow.domain.dto.appove.FlowQueryDTO;
6 import com.csbr.cloud.workflow.domain.dto.appove.FlowUpdateStateDTO;
7 import com.csbr.cloud.workflow.domain.vo.appove.ApproveVO;
8 import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
9 import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
10 import csbr.cloud.entity.domain.base.vo.PageListVO;
11 import jakarta.validation.Valid;
12 import org.springframework.cloud.openfeign.FeignClient;
13 import org.springframework.http.MediaType;
14 import org.springframework.util.MultiValueMap;
15 import org.springframework.web.bind.annotation.RequestBody;
16 import org.springframework.web.bind.annotation.RequestHeader;
17 import org.springframework.web.bind.annotation.RequestMapping;
18 import org.springframework.web.bind.annotation.RequestMethod;
19
20 /**
21 * @author Xiaocq
22 */
23 @FeignClient(value = "ms-daop-workflow-service", configuration = FastCallFeignConfiguration.class)
24 public interface WorkflowFeign {
25
26 /** 动态业务处理 */
27 @HystrixCommand(fallbackMethod = "CommonUtil.sleepFallback", commandProperties = {
28 @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "4500")})
29 @RequestMapping(value = "/work-flow/data/allow-flow-core", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
30 CommonRes<Boolean> allowFlowCore(@RequestBody FlowUpdateStateDTO dto, @RequestHeader(required = false) MultiValueMap<String, String> headers);
31
32 @HystrixCommand(fallbackMethod = "CommonUtil.sleepFallback", commandProperties = {
33 @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "4500")})
34 @RequestMapping(value = "/work-flow/data/get-flow-list-tenant", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
35 CommonRes<PageListVO<ApproveVO>> getFlowListCrossTenant(@RequestBody @Valid FlowQueryDTO dto);
36
37 }
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.BaseShardingDO;
6 import jdk.jfr.Name;
7 import lombok.Data;
8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors;
10 import java.math.BigDecimal;
11 import java.util.Date;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 数据需求实体
16 * @author: xcq
17 * @create: 2024-12-31 18:46
18 **/
19 @Data
20 @EqualsAndHashCode(callSuper = true)
21 @Accessors(chain = true)
22 @Name("数据需求")
23 public class MfDemand extends BaseShardingDO {
24
25 /**
26 * 数据需求名称
27 */
28 @Name("数据需求名称")
29 private String dataDemandName;
30
31 /**
32 * 需求类型
33 */
34 @Name("需求类型")
35 private String requirementType;
36
37 /**
38 * 需求分类【1新增 2调整】
39 */
40 @Name("需求分类【1新增 2调整】")
41 private String demandCategory;
42
43 /**
44 * 数据产品唯一标识
45 */
46 @Name("数据产品唯一标识")
47 private String dataProductGuid;
48
49 /**
50 * 需求开始时间
51 */
52 @Name("需求开始时间")
53 private Date requirementTermSdate;
54
55 /**
56 * 需求结束时间
57 */
58 @Name("需求结束时间")
59 private Date requirementTermEdate;
60
61 /**
62 * 需求内容
63 */
64 @Name("需求内容")
65 private String requirementContent;
66
67 /**
68 * 数据需求字段【数据格式:[{"name":"","path":""},{"name":"","path":""}]】
69 */
70 @Name("数据需求字段【数据格式:[{\"name\":\"\",\"path\":\"\"},{\"name\":\"\",\"path\":\"\"}]】")
71 @TableField(updateStrategy = FieldStrategy.ALWAYS)
72 private String dataDemandFieldAttachJson;
73
74 /**
75 * 期望交付时间
76 */
77 @Name("期望交付时间")
78 private Date deliveryTime;
79
80 /**
81 * 最低预算
82 */
83 @Name("最低预算")
84 private BigDecimal minBudget;
85
86 /**
87 * 最高预算
88 */
89 @Name("最高预算")
90 private BigDecimal maxBudget;
91
92 /**
93 * 费用来源
94 */
95 @Name("费用来源")
96 private String costSource;
97
98 /**
99 * 更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】
100 */
101 @Name("更新周期【取数据字典:周期,1 年度,2 半年度,3 季度,4 月度】")
102 private String updateCycle;
103
104 /**
105 * 获取路径方式
106 */
107 @Name("获取路径方式")
108 private String requestType;
109
110 /**
111 * 场景名称
112 */
113 @Name("场景名称")
114 private String sceneName;
115
116 /**
117 * 应用场景描述
118 */
119 @Name("应用场景描述")
120 private String sceneDescription;
121
122 /**
123 * 数据质量要求
124 */
125 @Name("数据质量要求")
126 private String qualityDemand;
127
128 /**
129 * 隐私合规要求
130 */
131 @Name("隐私合规要求")
132 private String privacyDemand;
133
134 /**
135 * 其他补充内容
136 */
137 @Name("其他补充内容")
138 private String otherContent;
139
140 /**
141 * 联系人
142 */
143 @Name("联系人")
144 private String contacts;
145
146 /**
147 * 需求单位
148 */
149 @Name("需求单位")
150 private String requirementUnit;
151
152 /**
153 * 联系方式
154 */
155 @Name("联系方式")
156 private String contactInformation;
157
158 /**
159 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
160 */
161 @Name("业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
162 private String bizApproveState;
163
164 /**
165 * 加工单生成时间
166 */
167 @Name("加工单生成时间")
168 private Date processingGenerateTime;
169
170 /**
171 * 验收完成时间
172 */
173 @Name("验收完成时间")
174 private Date acceptFinishTime;
175
176 /**
177 * 完成周期
178 */
179 @Name("完成周期")
180 private Integer finishCycle;
181
182 /**
183 * 资源获取状态【N未开始 A进行中 Y已完成】
184 */
185 @Name("资源获取状态【N未开始 A进行中 Y已完成】")
186 private String resourceAcquisitionState;
187
188 /**
189 * 产品加工状态【N未开始 A进行中 Y已完成】
190 */
191 @Name("产品加工状态【N未开始 A进行中 Y已完成】")
192 private String productProcessingState;
193
194 /**
195 * 产品交付状态【N未开始 A进行中 Y已完成】
196 */
197 @Name("产品交付状态【N未开始 A进行中 Y已完成】")
198 private String productDeliveryState;
199
200 /**
201 * 产品验收状态【N未开始 A进行中 Y已完成】
202 */
203 @Name("产品验收状态【N未开始 A进行中 Y已完成】")
204 private String productAcceptState;
205
206 @Name("合同附件")
207 private String contractAttachJson;
208
209 @Name("加工单位类型")
210 private String processCompanyType;
211
212 @Name("加工单位唯一标识")
213 private String processCompanyGuid;
214
215 @Name("加工单位名称")
216 private String processCompanyName;
217
218 @Name("需求单编号")
219 private String requirementOrderNo;
220
221 @Name("加工单编号")
222 private String processOrderNo;
223
224 @Name("资产Guid")
225 private String zqBizGuid;
226
227 @Name("专区名称")
228 private String zqName;
229
230 @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
231 private String crossPlatformApproveState;
232
233 @Name("上架状态(Y 上架 N 下架)")
234 private String listingStatus;
235
236 }
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.math.BigDecimal;
11 import java.util.Date;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 企业信息实体
16 * @author: xcq
17 * @create: 2024-12-26 16:18
18 **/
19 @Data
20 @EqualsAndHashCode(callSuper = true)
21 @Accessors(chain = true)
22 @Name("企业信息")
23 public class MfEnterprise extends BaseDO {
24
25 @Name("会员GUID")
26 private String tenantGuid;
27
28 /**
29 * 公司名称
30 */
31 @Name("公司名称")
32 private String tenantName;
33
34 /**
35 * 统一社会信用代码
36 */
37 @Name("统一社会信用代码")
38 private String socialCreditCode;
39
40 /**
41 * 企业类型【选择平台字典【公司类型】的选项】
42 */
43 @Name("企业类型")
44 private String tenantType;
45
46 /**
47 * 注册日期
48 */
49 @Name("注册日期")
50 private Date registrationDate;
51
52 /**
53 * 注册资本【(万元)】
54 */
55 @Name("注册资本")
56 private BigDecimal registeredCapital;
57
58 /**
59 * 税号
60 */
61 @Name("税号")
62 private String bankTaxNo;
63
64 /**
65 * 省
66 */
67 @Name("省")
68 private String province;
69
70 /**
71 * 市
72 */
73 @Name("市")
74 private String city;
75
76 /**
77 * 区
78 */
79 @Name("区")
80 private String district;
81
82 /**
83 * 营业期限【1 长期有效;2 自定义】
84 */
85 @Name("营业期限")
86 private String businessLicenseTerm;
87
88 /**
89 * 营业开始日期
90 */
91 @Name("营业开始日期")
92 private Date businessLicenseStartDate;
93
94 /**
95 * 营业结束日期
96 */
97 @Name("营业结束日期")
98 private Date businessLicenseEndDate;
99
100 /**
101 * 营业执照
102 */
103 @Name("营业执照")
104 @TableField(updateStrategy = FieldStrategy.ALWAYS)
105 private String businessLicenseJson;
106
107 /**
108 * 经营范围
109 */
110 @Name("经营范围")
111 private String businessLicenseScope;
112
113 /**
114 * 公司法人
115 */
116 @Name("公司法人")
117 private String juridicalPerson;
118
119 /**
120 * 法人证件类型
121 */
122 @Name("法人证件类型")
123 private String juridicalPersonIdType;
124
125 /**
126 * 法人证件号
127 */
128 @Name("法人证件号")
129 private String juridicalPersonId;
130
131 /**
132 * 法人证件照
133 */
134 @Name("法人证件照")
135 @TableField(updateStrategy = FieldStrategy.ALWAYS)
136 private String juridicalPersonIdPhotoJson;
137
138 /**
139 * 登录账号
140 */
141 @Name("登录账号")
142 private String logonUser;
143
144 /**
145 * 联系人
146 */
147 @Name("联系人")
148 private String contacts;
149
150 /**
151 * 联系人电话
152 */
153 @Name("联系人电话")
154 private String contactTel;
155
156 /**
157 * 管理员证件号
158 */
159 @Name("管理员证件号")
160 private String managerPersonId;
161
162 /**
163 * 管理员证件照
164 */
165 @Name("管理员证件照")
166 @TableField(updateStrategy = FieldStrategy.ALWAYS)
167 private String managerPersonIdPhotoJson;
168
169 /**
170 * 授权委托书
171 */
172 @Name("授权委托书")
173 private String authorizationLetter;
174
175 @Name("资产Guid")
176 private String zqBizGuid;
177
178 @Name("专区名称")
179 private String zqName;
180
181 @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
182 private String crossPlatformApproveState;
183
184 /**
185 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
186 */
187 @Name("业务审批状态")
188 private String bizApproveState;
189
190 }
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.math.BigDecimal;
11 import java.util.Date;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 企业信息变更审批实体
16 * @author: xcq
17 * @create: 2024-12-27 15:10
18 **/
19 @Data
20 @EqualsAndHashCode(callSuper = true)
21 @Accessors(chain = true)
22 @Name("企业信息变更审批")
23 public class MfEnterpriseChangeApprove extends BaseDO {
24
25 @Name("会员GUID")
26 private String tenantGuid;
27
28 /**
29 * 公司名称
30 */
31 @Name("公司名称")
32 private String tenantName;
33
34 /**
35 * 统一社会信用代码
36 */
37 @Name("统一社会信用代码")
38 private String socialCreditCode;
39
40 /**
41 * 企业类型【选择平台字典【公司类型】的选项】
42 */
43 @Name("企业类型")
44 private String tenantType;
45
46 /**
47 * 注册日期
48 */
49 @Name("注册日期")
50 private Date registrationDate;
51
52 /**
53 * 注册资本【(万元)】
54 */
55 @Name("注册资本")
56 private BigDecimal registeredCapital;
57
58 /**
59 * 税号
60 */
61 @Name("税号")
62 private String bankTaxNo;
63
64 /**
65 * 省
66 */
67 @Name("省")
68 private String province;
69
70 /**
71 * 市
72 */
73 @Name("市")
74 private String city;
75
76 /**
77 * 区
78 */
79 @Name("区")
80 private String district;
81
82 /**
83 * 营业期限【1 长期有效;2 自定义】
84 */
85 @Name("营业期限")
86 private String businessLicenseTerm;
87
88 /**
89 * 营业开始日期
90 */
91 @Name("营业开始日期")
92 private Date businessLicenseStartDate;
93
94 /**
95 * 营业结束日期
96 */
97 @Name("营业结束日期")
98 private Date businessLicenseEndDate;
99
100 /**
101 * 营业执照
102 */
103 @Name("营业执照")
104 @TableField(updateStrategy = FieldStrategy.ALWAYS)
105 private String businessLicenseJson;
106
107 /**
108 * 营业执照经营范围
109 */
110 @Name("营业执照经营范围")
111 private String businessLicenseScope;
112
113 /**
114 * 公司法人
115 */
116 @Name("公司法人")
117 private String juridicalPerson;
118
119 /**
120 * 法人证件类型
121 */
122 @Name("法人证件类型")
123 private String juridicalPersonIdType;
124
125 /**
126 * 法人证件号
127 */
128 @Name("法人证件号")
129 private String juridicalPersonId;
130
131 /**
132 * 法人证件照
133 */
134 @Name("法人证件照")
135 @TableField(updateStrategy = FieldStrategy.ALWAYS)
136 private String juridicalPersonIdPhotoJson;
137
138 /**
139 * 登录账号
140 */
141 @Name("登录账号")
142 private String logonUser;
143
144 /**
145 * 联系人
146 */
147 @Name("联系人")
148 private String contacts;
149
150 /**
151 * 联系人电话
152 */
153 @Name("联系人电话")
154 private String contactTel;
155
156 /**
157 * 管理员证件号
158 */
159 @Name("管理员证件号")
160 private String managerPersonId;
161
162 /**
163 * 管理员证件照
164 */
165 @Name("管理员证件照")
166 @TableField(updateStrategy = FieldStrategy.ALWAYS)
167 private String managerPersonIdPhotoJson;
168
169 /**
170 * 授权委托书
171 */
172 @Name("授权委托书")
173 private String authorizationLetter;
174
175 /**
176 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
177 */
178 @Name("业务审批状态")
179 private String bizApproveState;
180
181 /**
182 * 审批流唯一标识
183 */
184 @Name("审批流唯一标识")
185 private String approveGuid;
186
187 /**
188 * 原数据唯一标识
189 */
190 @Name("原数据唯一标识")
191 private String sourceGuid;
192
193 @Name("资产Guid")
194 private String zqBizGuid;
195
196 @Name("专区名称")
197 private String zqName;
198
199 @Name("审批状态(N 初始 A 审批中 Y 已通过 R 驳回 C 已撤销)")
200 private String crossPlatformApproveState;
201
202 /**
203 * 数据类型【数据类型 1原数据 2新数据 0认证表数据】
204 */
205 @Name("数据类型")
206 private String dataType;
207
208 }
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: D:/git/ms-data-circulation-portal-service
14 * @description: 服务商维护实体
15 * @author: xcq
16 * @create: 2024-12-31 18:49
17 **/
18 @Data
19 @EqualsAndHashCode(callSuper = true)
20 @Accessors(chain = true)
21 @Name("服务商维护")
22 public class MfServicerMaintain extends BaseDO {
23
24 /**
25 * 企业唯一标识
26 */
27 @Name("企业唯一标识")
28 private String tenantGuid;
29
30 /**
31 * 公司名称
32 */
33 @Name("公司名称")
34 private String tenantName;
35
36 /**
37 * 企业类型【选择平台字典【公司类型】的选项】
38 */
39 @Name("企业类型【选择平台字典【公司类型】的选项】")
40 private String tenantType;
41
42 /**
43 * 提交时间
44 */
45 @Name("提交时间")
46 private Date submitTime;
47
48 /**
49 * 联系人
50 */
51 @Name("联系人")
52 private String contacts;
53
54 /**
55 * 联系人电话
56 */
57 @Name("联系人电话")
58 private String contactTel;
59
60 /**
61 * 业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】
62 */
63 @Name("业务审批状态【N 草稿中,A 审批中,Y 已通过,R 驳回,C 已撤销,D 已废弃; 默认 N】")
64 private String bizApproveState;
65
66 /**
67 * 能否继续合作【Y 能;N 不能;】
68 */
69 @Name("能否继续合作【Y 能;N 不能;】")
70 private String canContinueCollaborate;
71
72 /**
73 * 维护信息
74 */
75 @Name("维护信息")
76 @TableField(updateStrategy = FieldStrategy.ALWAYS)
77 private String maintainJson;
78
79 }
1 package com.csbr.qingcloud.portal.mybatis.entity;
2
3 import csbr.cloud.entity.domain.base.dao.BaseDO;
4 import jdk.jfr.Name;
5 import lombok.Data;
6 import lombok.EqualsAndHashCode;
7 import lombok.experimental.Accessors;
8 import java.util.Date;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 服务商维护明细实体
13 * @author: xcq
14 * @create: 2024-12-31 18:52
15 **/
16 @Data
17 @EqualsAndHashCode(callSuper = true)
18 @Accessors(chain = true)
19 @Name("服务商维护明细")
20 public class MfServicerMaintainDetail extends BaseDO {
21
22 /**
23 * 企业唯一标识
24 */
25 @Name("企业唯一标识")
26 private String tenantGuid;
27
28 /**
29 * 父唯一标识
30 */
31 @Name("父唯一标识")
32 private String parentGuid;
33
34 /**
35 * 字典唯一标识
36 */
37 @Name("字典唯一标识")
38 private String dicGuid;
39
40 /**
41 * 字典值
42 */
43 @Name("字典值")
44 private String dicValue;
45
46 }
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.MfDemand;
6
7 /**
8 * @program: D:/git/ms-data-circulation-portal-service
9 * @description: 数据需求 Mapper 接口
10 * @author: xcq
11 * @create: 2024-12-31 18:46
12 **/
13 @Mapper
14 public interface MfDemandMapper extends BaseMapper<MfDemand> {
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.MfEnterpriseChangeApprove;
6
7 /**
8 * @program: D:/git/ms-data-circulation-portal-service
9 * @description: 企业信息变更审批 Mapper 接口
10 * @author: xcq
11 * @create: 2024-12-27 15:10
12 **/
13 @Mapper
14 public interface MfEnterpriseChangeApproveMapper extends BaseMapper<MfEnterpriseChangeApprove> {
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.MfEnterprise;
6
7 /**
8 * @program: D:/git/ms-data-circulation-portal-service
9 * @description: 企业信息 Mapper 接口
10 * @author: xcq
11 * @create: 2024-12-26 16:18
12 **/
13 @Mapper
14 public interface MfEnterpriseMapper extends BaseMapper<MfEnterprise> {
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.MfServicerMaintainDetail;
6
7 /**
8 * @program: D:/git/ms-data-circulation-portal-service
9 * @description: 服务商维护明细 Mapper 接口
10 * @author: xcq
11 * @create: 2024-12-31 18:52
12 **/
13 @Mapper
14 public interface MfServicerMaintainDetailMapper extends BaseMapper<MfServicerMaintainDetail> {
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.MfServicerMaintain;
6
7 /**
8 * @program: D:/git/ms-data-circulation-portal-service
9 * @description: 服务商维护 Mapper 接口
10 * @author: xcq
11 * @create: 2024-12-31 18:49
12 **/
13 @Mapper
14 public interface MfServicerMaintainMapper extends BaseMapper<MfServicerMaintain> {
15
16 }
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.MfDemand;
5
6 /**
7 * @program: D:/git/ms-data-circulation-portal-service
8 * @description: 数据需求逻辑层接口
9 * @author: xcq
10 * @create: 2024-12-31 18:46
11 **/
12 public interface MfDemandService extends CsbrService<MfDemand> {
13
14 }
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.MfEnterpriseChangeApprove;
5
6 /**
7 * @program: D:/git/ms-data-circulation-portal-service
8 * @description: 企业信息变更审批逻辑层接口
9 * @author: xcq
10 * @create: 2024-12-27 15:10
11 **/
12 public interface MfEnterpriseChangeApproveService extends CsbrService<MfEnterpriseChangeApprove> {
13
14 }
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.MfEnterprise;
5
6 /**
7 * @program: D:/git/ms-data-circulation-portal-service
8 * @description: 企业信息逻辑层接口
9 * @author: xcq
10 * @create: 2024-12-26 16:18
11 **/
12 public interface MfEnterpriseService extends CsbrService<MfEnterprise> {
13
14 }
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.MfServicerMaintainDetail;
5
6 /**
7 * @program: D:/git/ms-data-circulation-portal-service
8 * @description: 服务商维护明细逻辑层接口
9 * @author: xcq
10 * @create: 2024-12-31 18:52
11 **/
12 public interface MfServicerMaintainDetailService extends CsbrService<MfServicerMaintainDetail> {
13
14 }
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.MfServicerMaintain;
5
6 /**
7 * @program: D:/git/ms-data-circulation-portal-service
8 * @description: 服务商维护逻辑层接口
9 * @author: xcq
10 * @create: 2024-12-31 18:49
11 **/
12 public interface MfServicerMaintainService extends CsbrService<MfServicerMaintain> {
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.MfDemandMapper;
5 import com.csbr.qingcloud.portal.mybatis.entity.MfDemand;
6 import com.csbr.qingcloud.portal.mybatis.service.MfDemandService;
7 import jakarta.annotation.Resource;
8 import org.springframework.stereotype.Service;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 数据需求逻辑层接口实现
13 * @author: xcq
14 * @create: 2024-12-31 18:46
15 **/
16 @Service
17 public class MfDemandServiceImpl extends CsbrServiceImpl<MfDemandMapper, MfDemand> implements MfDemandService {
18
19 @Resource
20 private MfDemandMapper mfDemandMapper;
21
22 }
1 package com.csbr.qingcloud.portal.mybatis.service.impl;
2
3 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
5 import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl;
6 import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise;
7 import com.csbr.qingcloud.portal.mybatis.mapper.MfEnterpriseChangeApproveMapper;
8 import com.csbr.qingcloud.portal.mybatis.entity.MfEnterpriseChangeApprove;
9 import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseChangeApproveService;
10 import jakarta.annotation.Resource;
11 import org.springframework.stereotype.Service;
12
13 import java.io.Serializable;
14 import java.util.Collection;
15 import java.util.List;
16
17 /**
18 * @program: D:/git/ms-data-circulation-portal-service
19 * @description: 企业信息变更审批逻辑层接口实现
20 * @author: xcq
21 * @create: 2024-12-27 15:10
22 **/
23 @Service
24 public class MfEnterpriseChangeApproveServiceImpl extends CsbrServiceImpl<MfEnterpriseChangeApproveMapper, MfEnterpriseChangeApprove> implements MfEnterpriseChangeApproveService {
25
26 @Resource
27 private MfEnterpriseChangeApproveMapper mfEnterpriseChangeApproveMapper;
28
29 @Override
30 public List<MfEnterpriseChangeApprove> listByIds(Collection<? extends Serializable> idList) {
31 LambdaQueryWrapper<MfEnterpriseChangeApprove> queryWrapper = Wrappers.lambdaQuery(MfEnterpriseChangeApprove.class);
32 queryWrapper.in(MfEnterpriseChangeApprove::getGuid, idList);
33 csbrExcludeShardingLambdaQueryWrapper(queryWrapper);
34 return list(queryWrapper);
35 }
36
37 }
1 package com.csbr.qingcloud.portal.mybatis.service.impl;
2
3 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
5 import com.csbr.cloud.mybatis.service.impl.CsbrServiceImpl;
6 import com.csbr.qingcloud.portal.mybatis.mapper.MfEnterpriseMapper;
7 import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise;
8 import com.csbr.qingcloud.portal.mybatis.service.MfEnterpriseService;
9 import jakarta.annotation.Resource;
10 import org.springframework.stereotype.Service;
11
12 import java.io.Serializable;
13 import java.util.Collection;
14 import java.util.List;
15
16 /**
17 * @program: D:/git/ms-data-circulation-portal-service
18 * @description: 企业信息逻辑层接口实现
19 * @author: xcq
20 * @create: 2024-12-26 16:18
21 **/
22 @Service
23 public class MfEnterpriseServiceImpl extends CsbrServiceImpl<MfEnterpriseMapper, MfEnterprise> implements MfEnterpriseService {
24
25 @Resource
26 private MfEnterpriseMapper mfEnterpriseMapper;
27
28 @Override
29 public List<MfEnterprise> listByIds(Collection<? extends Serializable> idList) {
30 LambdaQueryWrapper<MfEnterprise> queryWrapper = Wrappers.lambdaQuery(MfEnterprise.class);
31 queryWrapper.in(MfEnterprise::getGuid, idList);
32 csbrExcludeShardingLambdaQueryWrapper(queryWrapper);
33 return list(queryWrapper);
34 }
35 }
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.MfServicerMaintainDetailMapper;
5 import com.csbr.qingcloud.portal.mybatis.entity.MfServicerMaintainDetail;
6 import com.csbr.qingcloud.portal.mybatis.service.MfServicerMaintainDetailService;
7 import jakarta.annotation.Resource;
8 import org.springframework.stereotype.Service;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 服务商维护明细逻辑层接口实现
13 * @author: xcq
14 * @create: 2024-12-31 18:52
15 **/
16 @Service
17 public class MfServicerMaintainDetailServiceImpl extends CsbrServiceImpl<MfServicerMaintainDetailMapper, MfServicerMaintainDetail> implements MfServicerMaintainDetailService {
18
19 @Resource
20 private MfServicerMaintainDetailMapper mfServicerMaintainDetailMapper;
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.MfServicerMaintainMapper;
5 import com.csbr.qingcloud.portal.mybatis.entity.MfServicerMaintain;
6 import com.csbr.qingcloud.portal.mybatis.service.MfServicerMaintainService;
7 import jakarta.annotation.Resource;
8 import org.springframework.stereotype.Service;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 服务商维护逻辑层接口实现
13 * @author: xcq
14 * @create: 2024-12-31 18:49
15 **/
16 @Service
17 public class MfServicerMaintainServiceImpl extends CsbrServiceImpl<MfServicerMaintainMapper, MfServicerMaintain> implements MfServicerMaintainService {
18
19 @Resource
20 private MfServicerMaintainMapper mfServicerMaintainMapper;
21
22 }
1 package com.csbr.qingcloud.portal.service;
2
3 import com.csbr.qingcloud.portal.domain.vo.*;
4 import csbr.cloud.entity.domain.base.vo.PageListVO;
5 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
6 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
7
8 import java.util.List;
9
10 /**
11 * @program: D:/git/ms-data-circulation-portal-service
12 * @description: 数据需求业务逻辑接口
13 * @author: xcq
14 * @create: 2024-12-31 18:46
15 **/
16 public interface DemandService {
17
18 /**
19 * 数据需求分页查询
20 * @author xcq
21 * @date 2024-12-31 18:46
22 * @param queryVO
23 * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.DemandRSVO>
24 */
25 PageListVO<DemandRSVO> pageList(DemandQueryVO queryVO);
26
27 /**
28 * 数据需求-门户分页
29 * @param queryVO
30 * @return
31 */
32 PageListVO<DemandPortalRSVO> portalPageList(DemandPortalQueryVO queryVO);
33
34 /**
35 * 数据需求获取详情数据
36 * @author xcq
37 * @date 2024-12-31 18:46
38 * @param guid
39 * @return com.csbr.qingcloud.portal.domain.vo.DemandRSVO
40 */
41 DemandRSVO getDemandDetail(String guid);
42
43 /**
44 * 数据需求数据新增
45 * @author xcq
46 * @date 2024-12-31 18:46
47 * @param flowBaseVO
48 * @return void
49 */
50 void saveDemand(FlowRQBaseVO flowBaseVO);
51
52 /**
53 * 数据需求数据修改
54 * @author xcq
55 * @date 2024-12-31 18:46
56 * @param flowBaseVO
57 * @return void
58 */
59 void updateDemand(FlowRQBaseVO flowBaseVO);
60
61 /**
62 * 数据需求数据删除、并有相关的处理操作
63 * @author xcq
64 * @date 2024-12-31 18:46
65 * @param guids
66 * @return void
67 */
68 void removeByGuids(List<String> guids);
69
70 /**
71 * 流程结束后进行业务回调
72 * @author xcq
73 * @date 2024-12-31 18:46
74 * @param dto
75 * @return void
76 */
77 void flowCallBack(BizCallbackDTO dto);
78
79 /**
80 * 数据需求-流程结束后进行业务回调(跨服务审批)
81 * @param dto
82 */
83 void crossFlowCallBack(BizCallbackDTO dto);
84
85 Boolean lastApprove(DemandApproveVO dto);
86
87 DemandRSVO getDemandDetailByProcess(String processOrderNo);
88
89 /**
90 * 根据加工单编号查询资产列表
91 * @return
92 */
93 List<ProcessOrderProcessDtlRSVO> listByProcessOrderNo();
94
95 /**
96 * 数据需求-修改上架状态
97 * @param vo
98 * @return
99 */
100 Boolean updateGroundingPick(DemandRQVO vo);
101 }
1 package com.csbr.qingcloud.portal.service;
2
3 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
4 import com.csbr.qingcloud.portal.domain.vo.ChangeApproveVO;
5 import com.csbr.qingcloud.portal.domain.vo.ChangeInfoVO;
6 import com.csbr.qingcloud.portal.domain.vo.EnterpriseRSVO;
7
8 import java.util.List;
9
10 /**
11 * @description: 供应商商品变更
12 * @author: XiaoCQ
13 * @create: 2024-12-27
14 **/
15 public interface EnterpriseChangeApproveService {
16 void changeSave(ChangeApproveVO vo);
17
18 ChangeApproveVO changeDetail(String guid);
19
20 void changeUpdate(BizCallbackDTO dto);
21
22 void removeByGuids(List<String> guids);
23
24 void crossFlowCallBack(BizCallbackDTO dto);
25
26 void crossRemoveByBizGuid(List<String> zqBizGuids);
27
28 EnterpriseRSVO getEnterpriseChangeDetail(String guid);
29 }
1 package com.csbr.qingcloud.portal.service;
2
3 import com.csbr.cloud.workflow.domain.dto.appove.FlowQueryDTO;
4 import com.csbr.qingcloud.portal.domain.vo.*;
5 import com.csbr.qingcloud.portal.mybatis.entity.MfEnterprise;
6 import csbr.cloud.entity.domain.base.vo.PageListVO;
7 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
8 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
9
10 import java.util.Date;
11 import java.util.List;
12
13 /**
14 * @program: D:/git/ms-data-circulation-portal-service
15 * @description: 企业信息业务逻辑接口
16 * @author: xcq
17 * @create: 2024-12-26 16:18
18 **/
19 public interface EnterpriseService {
20
21 /**
22 * 企业信息分页查询
23 * @author xcq
24 * @date 2024-12-26 16:18
25 * @param queryVO
26 * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.EnterpriseRSVO>
27 */
28 PageListVO<EnterpriseRSVO> pageList(EnterpriseQueryVO queryVO);
29
30 /**
31 * 企业信息-分页(调用流程)
32 * @param dto
33 * @return
34 */
35 PageListVO<EnterpriseApproveRSVO> flowPageList(FlowQueryDTO dto);
36
37 /**
38 * 企业信息获取详情数据
39 * @author xcq
40 * @date 2024-12-26 16:18
41 * @param guid
42 * @return com.csbr.qingcloud.portal.domain.vo.EnterpriseRSVO
43 */
44 EnterpriseRSVO getEnterpriseDetail(String guid);
45
46 /**
47 * 企业信息数据新增
48 * @author xcq
49 * @date 2024-12-26 16:18
50 * @param flowBaseVO
51 * @return void
52 */
53 void saveEnterprise(FlowRQBaseVO flowBaseVO);
54
55 /**
56 * 企业信息数据修改
57 * @author xcq
58 * @date 2024-12-26 16:18
59 * @param flowBaseVO
60 * @return void
61 */
62 void updateEnterprise(FlowRQBaseVO flowBaseVO);
63
64 /**
65 * 企业信息数据删除、并有相关的处理操作
66 * @author xcq
67 * @date 2024-12-26 16:18
68 * @param guids
69 * @return void
70 */
71 void removeByGuids(List<String> guids);
72
73 /**
74 * 流程结束后进行业务回调
75 * @author xcq
76 * @date 2024-12-26 16:18
77 * @param dto
78 * @return void
79 */
80 void flowCallBack(BizCallbackDTO dto);
81
82 /**
83 * 流程结束后进行业务回调(跨服务审批)
84 * @param dto
85 */
86 void crossFlowCallBack(BizCallbackDTO dto);
87
88 Boolean check(EnterpriseRQVO vo);
89
90 List<ChangeInfoVO> getChange(String sourceGuid, Date createTime);
91
92 List<ChangeInfoVO> beforeChangeList(String approveGuid);
93
94 EnterpriseRSVO getEnterpriseDetailByName(String tenantName);
95
96 /** 将此账号提交的数据需求迁移到新的企业 */
97 void moveOldData(TenantRQVO vo);
98
99 /** 更新会员信息 */
100 void updateTenant(MfEnterprise vo);
101
102 /**
103 * 企业信息-根据登陆账号查询详情
104 * @param logonUser
105 * @return
106 */
107 EnterpriseRSVO getEnterpriseDetailByLogonUser(String logonUser);
108 }
1 package com.csbr.qingcloud.portal.service;
2
3 import csbr.cloud.entity.domain.base.vo.PageListVO;
4 import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO;
5 import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO;
6 import com.csbr.qingcloud.portal.domain.vo.ServicerMaintainQueryVO;
7 import com.csbr.qingcloud.portal.domain.vo.ServicerMaintainRSVO;
8
9 import java.util.List;
10
11 /**
12 * @program: D:/git/ms-data-circulation-portal-service
13 * @description: 服务商维护业务逻辑接口
14 * @author: xcq
15 * @create: 2024-12-31 18:49
16 **/
17 public interface ServicerMaintainService {
18
19 /**
20 * 服务商维护分页查询
21 * @author xcq
22 * @date 2024-12-31 18:49
23 * @param queryVO
24 * @return com.csbr.cloud.mybatis.entity.PageListVO<com.csbr.qingcloud.portal.domain.vo.ServicerMaintainRSVO>
25 */
26 PageListVO<ServicerMaintainRSVO> pageList(ServicerMaintainQueryVO queryVO);
27
28 /**
29 * 服务商维护获取详情数据
30 * @author xcq
31 * @date 2024-12-31 18:49
32 * @param guid
33 * @return com.csbr.qingcloud.portal.domain.vo.ServicerMaintainRSVO
34 */
35 ServicerMaintainRSVO getServicerMaintainDetail(String guid);
36
37 /**
38 * 服务商维护数据新增
39 * @author xcq
40 * @date 2024-12-31 18:49
41 * @param flowBaseVO
42 * @return void
43 */
44 void saveServicerMaintain(FlowRQBaseVO flowBaseVO);
45
46 /**
47 * 服务商维护数据修改
48 * @author xcq
49 * @date 2024-12-31 18:49
50 * @param flowBaseVO
51 * @return void
52 */
53 void updateServicerMaintain(FlowRQBaseVO flowBaseVO);
54
55 /**
56 * 服务商维护数据删除、并有相关的处理操作
57 * @author xcq
58 * @date 2024-12-31 18:49
59 * @param guids
60 * @return void
61 */
62 void removeByGuids(List<String> guids);
63
64 /**
65 * 流程结束后进行业务回调
66 * @author xcq
67 * @date 2024-12-31 18:49
68 * @param dto
69 * @return void
70 */
71 void flowCallBack(BizCallbackDTO dto);
72
73 }
1 package com.csbr.qingcloud.portal.util;
2
3 import com.csbr.cloud.common.util.CommonUtil;
4 import com.csbr.cloud.common.util.CsbrBeanUtil;
5 import com.csbr.qingcloud.portal.domain.vo.BoroughPOJO;
6 import com.csbr.qingcloud.portal.domain.vo.ChangeInfoVO;
7 import com.csbr.qingcloud.portal.domain.vo.CompareResult;
8 import com.csbr.qingcloud.portal.feign.ConfigureFeign;
9 import com.csbr.qingcloud.portal.service.impl.EnterpriseServiceImpl;
10 import jakarta.annotation.Resource;
11 import org.apache.commons.collections.CollectionUtils;
12 import org.apache.commons.lang3.StringUtils;
13 import org.springframework.stereotype.Component;
14
15 import java.math.BigDecimal;
16 import java.math.RoundingMode;
17 import java.util.ArrayList;
18 import java.util.Comparator;
19 import java.util.Date;
20 import java.util.List;
21 import java.util.stream.Collectors;
22
23 @Component
24 public class ChangeInfoUtil {
25
26 public static List<BoroughPOJO> areaList;
27
28 /** 计算变更信息 */
29 public static List<ChangeInfoVO> getChangeList(List<EnterpriseServiceImpl.ChangeApproveBean> beanList) throws IllegalAccessException {
30 List<ChangeInfoVO> list = new ArrayList<>();
31 //循环对比每组记录生来变更内容
32 for(EnterpriseServiceImpl.ChangeApproveBean item : beanList){
33 if(item.oldBean == null || item.newBean == null){
34 continue;
35 }
36 List<CompareResult> diffList = ObjectUtil.getBeanDiff(item.oldBean,item.newBean);
37 getVenueResult(item,list);
38 getStartEndResult(item,list);
39 getRegistrationDateResult(item,list);
40 getRegisteredCapitalResult(item,list);
41 for(CompareResult diffItem : diffList){
42 if(diffItem.getFieldComment().contains("审批状态") || diffItem.getFieldComment().contains("营业执照")
43 || diffItem.getFieldComment().contains("法人证件照") || diffItem.getFieldComment().contains("管理员证件照")
44 || diffItem.getFieldComment().contains("授权委托书") || diffItem.getFieldComment().contains("省")
45 || diffItem.getFieldComment().contains("市") || diffItem.getFieldComment().contains("区")
46 || diffItem.getFieldComment().contains("营业开始日期") || diffItem.getFieldComment().contains("营业结束日期") || diffItem.getFieldComment().contains("营业期限")
47 || diffItem.getFieldComment().contains("注册日期") || diffItem.getFieldComment().contains("注册资本")){
48 continue;
49 }
50 list.add(getChangeInfoVO(item,diffItem));
51 }
52 }
53 list = list.stream().sorted(Comparator.comparing(ChangeInfoVO::getNameEn).thenComparing(ChangeInfoVO::getDate).reversed()).collect(Collectors.toList());
54 return list;
55 }
56
57 private static ChangeInfoVO getChangeInfoVO(EnterpriseServiceImpl.ChangeApproveBean item,CompareResult diffItem){
58 ChangeInfoVO vo = new ChangeInfoVO();
59 vo.setNameEn(diffItem.getFieldName());
60 vo.setName(diffItem.getFieldComment());
61 vo.setDate(DateUtil.getDateToString(item.oldBean.getCreateTime()));
62 vo.setBefore(diffItem.getOldValue() == null ? "" : diffItem.getOldValue().toString());
63 vo.setAfter(diffItem.getNewValue() == null ? "" : diffItem.getNewValue().toString());
64 vo.setGuid(CommonUtil.newGuid());
65 return vo;
66 }
67
68 private static void getRegisteredCapitalResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) {
69 String oldValue = getRegisteredCapital(item.oldBean.getRegisteredCapital());
70 String newValue = getRegisteredCapital(item.newBean.getRegisteredCapital());
71 if(!oldValue.equals(newValue)){
72 list.add(getChangeInfoVO(item,getCompareResult("注册资本(万元)","registeredCapital",oldValue,newValue)));
73 }
74 }
75
76 private static String getRegisteredCapital(BigDecimal v) {
77 if(v == null){
78 return "";
79 }
80 return v.setScale(2, RoundingMode.HALF_DOWN).toString();
81 }
82
83 public static void getVenueResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) {
84 String oldValue = getVenue(item.oldBean.getProvince(),item.oldBean.getCity(),item.oldBean.getDistrict());
85 String newValue = getVenue(item.newBean.getProvince(),item.newBean.getCity(),item.newBean.getDistrict());
86 if(!oldValue.equals(newValue)){
87 list.add(getChangeInfoVO(item,getCompareResult("注册地","venue",oldValue,newValue)));
88 }
89 }
90
91 public static void getRegistrationDateResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) {
92 String oldValue = getRegistrationDate(item.oldBean.getRegistrationDate());
93 String newValue = getRegistrationDate(item.newBean.getRegistrationDate());
94 if(!oldValue.equals(newValue)){
95 list.add(getChangeInfoVO(item,getCompareResult("注册日期","registrationDate",oldValue,newValue)));
96 }
97 }
98
99 private static String getRegistrationDate(Date date) {
100 return DateUtil.getShortDateToString(date);
101 }
102
103 private static CompareResult getCompareResult(String comment,String name,String oldVenue,String newVenue){
104 CompareResult result = new CompareResult();
105 result.setFieldComment(comment);
106 result.setFieldName(name);
107 result.setOldValue(oldVenue);
108 result.setNewValue(newVenue);
109 return result;
110 }
111
112 public static void getStartEndResult(EnterpriseServiceImpl.ChangeApproveBean item, List<ChangeInfoVO> list) {
113 String oldValue = getStartEnd(item.oldBean.getBusinessLicenseTerm(),item.oldBean.getBusinessLicenseStartDate(),item.oldBean.getBusinessLicenseEndDate());
114 String newValue = getStartEnd(item.newBean.getBusinessLicenseTerm(),item.newBean.getBusinessLicenseStartDate(),item.newBean.getBusinessLicenseEndDate());
115 if(!oldValue.equals(newValue)){
116 list.add(getChangeInfoVO(item,getCompareResult("营业期限","businessLicenseStartEnd",oldValue,newValue)));
117 }
118 }
119
120 public static String getVenue(String province, String city, String district) {
121 if(StringUtils.isBlank(district)){
122 return String.format("%s/%s",getName(province),getName(city));
123 }
124 else{
125 return String.format("%s/%s/%s",getName(province),getName(city),getName(district));
126 }
127 }
128
129 private static String getName(String code){
130 List<String> names = areaList.stream().filter(x->x.getCode().equals(code)).map(BoroughPOJO::getName).collect(Collectors.toList());
131 if(CollectionUtils.isEmpty(names)){
132 return "";
133 }
134 return names.get(0);
135 }
136
137
138 public static String getStartEnd(String businessLicenseTerm, Date businessLicenseStartDate, Date businessLicenseEndDate) {
139 if("1".equals(businessLicenseTerm)){
140 return "长期有效";
141 }
142 return String.format("%s至%s",DateUtil.getShortDateToString(businessLicenseStartDate),DateUtil.getShortDateToString(businessLicenseEndDate));
143 }
144
145 }
1 package com.csbr.qingcloud.portal.util;
2
3 import java.text.SimpleDateFormat;
4 import java.time.LocalDateTime;
5 import java.time.ZoneId;
6 import java.util.Date;
7
8 public class DateUtil {
9
10 /** 时间相差多少天 无视小时 */
11 public static int getDiffDay(Date one, Date two) {
12 if(one == null || two == null){
13 return 0;
14 }
15 one = getDateByString(getShortDateToString(one));
16 two = getDateByString(getShortDateToString(two));
17 long difference = (one.getTime() - two.getTime()) / 86400000;
18 return (int) Math.abs(difference);
19 }
20
21 /** 字符串时间转日期 */
22 public static Date getDateByString(String time){
23 try {
24 return new SimpleDateFormat("yyyy-MM-dd").parse(time);
25 } catch (Exception e) {
26 return new Date();
27 }
28 }
29
30 /** 时间转字符串 */
31 public static String getDateToString(Date time){
32 if(time == null) {
33 return "";
34 }
35 return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time);
36 }
37
38 /** 时间转字符串 */
39 public static String getShortDateToString(Date time){
40 if(time == null) {
41 return "";
42 }
43 return new SimpleDateFormat("yyyy-MM-dd").format(time);
44 }
45
46 /** 时间转本地时间 */
47 public static LocalDateTime getDateToLocal(Date time){
48 if(time == null) {
49 return null;
50 }
51 return time.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime();
52 }
53
54 /** 字符串时间转日期 */
55 public static Date getShortDate(Date time){
56 if(time == null) {
57 return null;
58 }
59 try {
60 return new SimpleDateFormat("yyyy-MM-dd").parse(getShortDateToString(time));
61 } catch (Exception e) {
62 return new Date();
63 }
64 }
65
66 }
1 package com.csbr.qingcloud.portal.util;
2
3 import com.alibaba.fastjson.JSON;
4 import com.alibaba.fastjson.JSONObject;
5 import com.csbr.cloud.common.enums.SystemError;
6 import com.csbr.cloud.common.exception.CsbrSystemException;
7 import com.csbr.cloud.common.response.CommonRes;
8 import lombok.extern.slf4j.Slf4j;
9 import org.apache.hc.client5.http.config.RequestConfig;
10 import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
11 import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
12 import org.apache.hc.core5.util.Timeout;
13 import org.springframework.beans.factory.annotation.Autowired;
14 import org.springframework.http.HttpEntity;
15 import org.springframework.http.HttpHeaders;
16 import org.springframework.http.MediaType;
17 import org.springframework.http.client.ClientHttpRequestFactory;
18 import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
19 import org.springframework.stereotype.Component;
20 import org.springframework.web.client.RestTemplate;
21
22 /**
23 * @program: daop-projects
24 * @description:
25 * @author: xiaojie
26 * @create: 2025-03-13 14:52
27 **/
28 @Component
29 @Slf4j
30 public class InvokeUtil {
31
32 @Autowired
33 private RestTemplate restTemplate;
34
35 /**
36 * open调用接口
37 * @param jsonObject
38 * @param appKey
39 * @param zqDelUrl
40 */
41 public void invokeMainDel(JSONObject jsonObject, String appKey, String zqDelUrl) {
42 HttpHeaders headers = new HttpHeaders();
43 headers.setContentType(MediaType.APPLICATION_JSON);
44 headers.set("appKey", appKey);
45 HttpEntity<JSONObject> requestEntity = new HttpEntity<>(jsonObject, headers);
46 restTemplate.setRequestFactory(getFactory());
47 CommonRes commonRes = restTemplate.postForObject(zqDelUrl, requestEntity, CommonRes.class);
48 if (!CommonRes.success().getCode().equals(commonRes.getCode())) {
49 throw new CsbrSystemException(SystemError.ERROR_CODE, commonRes.getMsg());
50 } else {
51 CommonRes commonResData = JSON.parseObject(String.valueOf(commonRes.getData()), CommonRes.class);
52 if (!CommonRes.success().getCode().equals(commonResData.getCode())) {
53 throw new CsbrSystemException(SystemError.ERROR_CODE, commonResData.getMsg());
54 }
55 }
56 }
57
58 private ClientHttpRequestFactory getFactory() {
59 RequestConfig config = RequestConfig.custom()
60 .setConnectTimeout(Timeout.ofSeconds(5000)) // 连接超时
61 .setConnectionRequestTimeout(Timeout.ofSeconds(5000)) // 从连接池获取连接的超时时间
62 .setResponseTimeout(Timeout.ofSeconds(10000)) // 数据读取超时
63 .build();
64
65 CloseableHttpClient httpClient = HttpClientBuilder.create()
66 .setDefaultRequestConfig(config)
67 .build();
68
69 return new HttpComponentsClientHttpRequestFactory(httpClient);
70 }
71 }
...\ No newline at end of file ...\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!