From 15da4c4960809e3ef699a470788f2ef3fb8dc8f7 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 19 二月 2025 14:16:56 +0800
Subject: [PATCH] Merge branch 'master' into 部门重构

---
 business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java |   86 +++++++++++++++++++++++++++++++++----------
 1 files changed, 66 insertions(+), 20 deletions(-)

diff --git a/business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java b/business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java
index 2fc8f32..7461909 100644
--- a/business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java
+++ b/business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java
@@ -1,5 +1,7 @@
 package com.ycl.domain.vo;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ycl.domain.entity.File;
 import com.ycl.domain.entity.ProjectInfo;
 import com.ycl.system.domain.base.AbsVo;
 import io.swagger.annotations.ApiModel;
@@ -38,6 +40,9 @@
     @ApiModelProperty("寤鸿鍐呭")
     private String content;
 
+    @ApiModelProperty("寤鸿鎬ц川")
+    private String constructionNature;
+
     /** 椤圭洰绫诲瀷锛�0鎴垮眿寤虹瓚锛�1鍩庡競鍩虹璁炬柦锛�2浜ら�氳繍杈擄紝3姘村埄锛�4鑳芥簮锛�5闈炵叅鐭垮北锛�6鍏朵粬锛� */
     @ApiModelProperty("椤圭洰绫诲瀷锛�0鎴垮眿寤虹瓚锛�1鍩庡競鍩虹璁炬柦锛�2浜ら�氳繍杈擄紝3姘村埄锛�4鑳芥簮锛�5闈炵叅鐭垮北锛�6鍏朵粬锛�")
     private String projectType;
@@ -65,7 +70,7 @@
     /** 涓荤閮ㄩ棬(瀵瑰簲瀹℃壒閮ㄩ棬id) */
     @ApiModelProperty("涓荤閮ㄩ棬(瀵瑰簲瀹℃壒閮ㄩ棬id)")
     private List<Long> competentDepartmentList;
-
+    private String competentDepartment;
     /** 琛屾斂鍖哄煙 */
     @ApiModelProperty("琛屾斂鍖哄煙")
     private String area;
@@ -73,7 +78,7 @@
     /** 绠$悊褰掑彛  (0鍩烘湰寤鸿(鍙戞敼),  1鏇存柊鏀归��(缁忎俊),  2鍗曠函璐疆(鍙戞敼),  3淇℃伅鍖�(鍙戞敼),  4鍏朵粬鎶曡祫) */
     @ApiModelProperty("绠$悊褰掑彛  (0鍩烘湰寤鸿(鍙戞敼),  1鏇存柊鏀归��(缁忎俊),  2鍗曠函璐疆(鍙戞敼),  3淇℃伅鍖�(鍙戞敼),  4鍏朵粬鎶曡祫)")
     private List<String> managementCentralizationList;
-
+    private String managementCentralization;
     /** 椤圭洰瀹℃壒绫诲瀷 */
     @ApiModelProperty("椤圭洰瀹℃壒绫诲瀷")
     private String projectApprovalType;
@@ -83,38 +88,46 @@
     @ApiModelProperty("閲嶇偣鍒嗙被  (0鐪侀噸鐐归」鐩�,  1閬傚畞甯傞噸鐐归」鐩�,  2.灏勬椽甯傞噸鐐归」鐩�,  3.涓�鑸」鐩�)")
     private String importanceType;
 
-    /** 骞村害鎶曡祫璁″垝 */
-    @ApiModelProperty("骞村害鎶曡祫璁″垝")
-    private String year;
-
+//    /** 骞村害鎶曡祫璁″垝 */
+//    @ApiModelProperty("骞村害鎶曡祫璁″垝")
+//    private String year;
+//
+//    /** 骞村害鎶曡祫閲戦 */
+//    @ApiModelProperty("骞村害鎶曡祫閲戦")
+//    private BigDecimal yearInvestAmount;
     /** 骞村害鎶曡祫閲戦 */
     @ApiModelProperty("骞村害鎶曡祫閲戦")
-    private BigDecimal yearInvestAmount;
-
+    private List<ProjectInfoYearPlanVO> yearPlanList;
     /** 绔嬮」鏃堕棿 */
     @ApiModelProperty("绔嬮」鏃堕棿")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date createProjectTime;
 
     /** 璁″垝寮�宸ユ椂闂� */
     @ApiModelProperty("璁″垝寮�宸ユ椂闂�")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date planStartTime;
 
     /** 璁″垝绔e伐鏃堕棿 */
     @ApiModelProperty("璁″垝绔e伐鏃堕棿")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date planCompleteTime;
 
+//    /** 涓爣鍗曚綅 */
+//    @ApiModelProperty("涓爣鍗曚綅")
+//    private String winUnit;
+//
+//    /** 涓爣閲戦 */
+//    @ApiModelProperty("涓爣閲戦")
+//    private String winAmount;
+//
+//    /** 涓爣鏃堕棿 */
+//    @ApiModelProperty("涓爣鏃堕棿")
+//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+//    private Date winTime;
     /** 涓爣鍗曚綅 */
     @ApiModelProperty("涓爣鍗曚綅")
-    private String winUnit;
-
-    /** 涓爣閲戦 */
-    @ApiModelProperty("涓爣閲戦")
-    private String winAmount;
-
-    /** 涓爣鏃堕棿 */
-    @ApiModelProperty("涓爣鏃堕棿")
-    private Date winTime;
-
+    private List<ProjectInfoWinUnitVO> winUnitList;
     /** 璇︾粏鍦板潃 */
     @ApiModelProperty("璇︾粏鍦板潃")
     private String projectAddress;
@@ -129,7 +142,7 @@
 
     /** 椤圭洰涓氫富鍗曚綅 */
     @ApiModelProperty("椤圭洰涓氫富鍗曚綅")
-    private String projectOwnerUnit;
+    private Long projectOwnerUnit;
 
     /** 椤圭洰鑱旂郴浜� */
     @ApiModelProperty("椤圭洰鑱旂郴浜�")
@@ -147,6 +160,24 @@
     @ApiModelProperty("鍒涘缓浜�")
     private Long createBy;
 
+    /** 鐘舵�佺爜 */
+    @ApiModelProperty("鐘舵�佺爜")
+    private String projectColorCode;
+
+    @ApiModelProperty("璧嬬爜")
+    private String coding;
+
+    @ApiModelProperty("鏂囦欢")
+    private List<File> fileList;
+    private Integer usedStatus;
+    private String remark;
+    private Long processId;
+    private ProjectInvestmentInfoVO projectInvestmentInfo;
+    private ProjectInvestmentFundingVO projectInvestmentFunding;
+    private ProjectUnitRegistrationInfoVO projectUnitRegistrationInfo;
+    private ProjectInvestmentPolicyComplianceVO projectInvestmentPolicyCompliance;
+    private Boolean auditRole;
+    private String projectOwnerUnitName;
     public static ProjectInfoVO getVoByEntity(@NonNull ProjectInfo entity, ProjectInfoVO vo) {
         if(vo == null) {
             vo = new ProjectInfoVO();
@@ -167,5 +198,20 @@
         }
         return vo;
     }
-
+    //杞崲瀛楃涓查泦鍚堝瓧娈�
+    public static void transform(@NonNull ProjectInfoVO vo) {
+        //涓荤閮ㄩ棬杞垚list
+        String competentDepartment = vo.getCompetentDepartment();
+        if(!StringUtils.isBlank(competentDepartment)){
+            List<Long> list = Arrays.stream(competentDepartment.split(","))
+                    .map(Long::parseLong)
+                    .collect(Collectors.toList());
+            vo.setCompetentDepartmentList(list);
+        }
+        //绠$悊褰掑彛杞崲
+        String managementCentralization = vo.getManagementCentralization();
+        if(!StringUtils.isBlank(managementCentralization)){
+            vo.setManagementCentralizationList(Arrays.asList(managementCentralization.split(",")));
+        }
+    }
 }

--
Gitblit v1.8.0