47c7e649 by xiaojie

【数据资产】

1、数据需求-修改上架状态
1 parent 4584dd1d
...@@ -70,6 +70,14 @@ public class DemandController { ...@@ -70,6 +70,14 @@ public class DemandController {
70 PageListVO<DemandRSVO> pageVO = demandService.pageList(queryVO); 70 PageListVO<DemandRSVO> pageVO = demandService.pageList(queryVO);
71 return CommonRes.success(pageVO); 71 return CommonRes.success(pageVO);
72 } 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 }
73 81
74 @GetMapping("/detail") 82 @GetMapping("/detail")
75 @SystemLog(value = "数据需求-详情") 83 @SystemLog(value = "数据需求-详情")
......
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.csbr.cloud.workflow.domain.vo.appove.BizApproveVO;
4 import com.fasterxml.jackson.annotation.JsonFormat;
5 import csbr.cloud.entity.domain.base.vo.BaseVO;
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
12 /**
13 * @program: D:/git/ms-data-circulation-portal-service
14 * @description: 数据需求门户返回参数
15 * @author: xcq
16 * @create: 2024-12-31 18:46
17 **/
18 @Data
19 @Schema(title = "数据需求门户返回参数")
20 public class DemandPortalRSVO extends BaseVO {
21
22 /**
23 * 系统唯一标识
24 */
25 @Schema(description = "系统唯一标识")
26 private String guid;
27
28 /**
29 * 数据需求名称
30 */
31 @Schema(description = "数据需求名称")
32 private String dataDemandName;
33
34 /**
35 * 需求类型
36 */
37 @Schema(description = "需求类型")
38 private String requirementType;
39
40 /**
41 * 需求开始时间
42 */
43 @Schema(description = "需求开始时间")
44 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
45 private Date requirementTermSdate;
46
47 /**
48 * 需求结束时间
49 */
50 @Schema(description = "需求结束时间")
51 @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
52 private Date requirementTermEdate;
53
54 /**
55 * 需求内容
56 */
57 @Schema(description = "需求内容")
58 private String requirementContent;
59
60 /**
61 * 交付标的
62 */
63 @Schema(description = "交付标的")
64 private String updateCycle;
65
66 }
...@@ -25,6 +25,13 @@ public interface DemandService { ...@@ -25,6 +25,13 @@ public interface DemandService {
25 PageListVO<DemandRSVO> pageList(DemandQueryVO queryVO); 25 PageListVO<DemandRSVO> pageList(DemandQueryVO queryVO);
26 26
27 /** 27 /**
28 * 数据需求-门户分页
29 * @param queryVO
30 * @return
31 */
32 PageListVO<DemandPortalRSVO> portalPageList(DemandPortalQueryVO queryVO);
33
34 /**
28 * 数据需求获取详情数据 35 * 数据需求获取详情数据
29 * @author xcq 36 * @author xcq
30 * @date 2024-12-31 18:46 37 * @date 2024-12-31 18:46
......
...@@ -117,7 +117,20 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService ...@@ -117,7 +117,20 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService
117 afterQuery(pageList, rsPageList); 117 afterQuery(pageList, rsPageList);
118 return rsPageList; 118 return rsPageList;
119 } 119 }
120 return new PageListVO<>(0L,0L); 120 return new PageListVO<>(queryVO.getPageSize(), queryVO.getPageIndex());
121 }
122
123 @Override
124 public PageListVO<DemandPortalRSVO> portalPageList(DemandPortalQueryVO queryVO) {
125 LambdaQueryWrapper<MfDemand> queryWrapper = mfDemandService.csbrQueryWrapper(queryVO, MfDemand.class);
126 queryWrapper.orderByDesc(MfDemand::getCreateTime);
127 mfDemandService.csbrExcludeShardingLambdaQueryWrapper(queryWrapper);
128 PageListVO<MfDemand> pageList = mfDemandService.csbrPageList(queryVO, queryWrapper);
129 PageListVO<DemandPortalRSVO> rsPageList = csbrBeanUtil.convert(pageList, PageListVO.class);
130 if(CollectionUtils.isNotEmpty(pageList.getRecords())){
131 rsPageList.setRecords(csbrBeanUtil.convert(pageList.getRecords(), DemandPortalRSVO.class));
132 }
133 return rsPageList;
121 } 134 }
122 135
123 /** 136 /**
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!