verguenza 4 years ago
parent
commit
b339227645

+ 0 - 5
src/main/java/com/galaxis/manatee/task/ChuanyunBasicDataScheduledTask.java

@@ -86,7 +86,6 @@ public class ChuanyunBasicDataScheduledTask {
         this.getUserList();
     }
 
-
     public void getCompanyManually(){
         this.getCompany();
     }
@@ -99,7 +98,6 @@ public class ChuanyunBasicDataScheduledTask {
 
     public void getGroupProjectForSynchronizationManually() {this.getGroupProjectForSynchronization();}
 
-
     /**
      * 定时将氚云中的数据保存到manatee
      */
@@ -993,7 +991,6 @@ public class ChuanyunBasicDataScheduledTask {
         }
     }
 
-
     @Data
     class CashFlowDTO {
         @JsonProperty("F0000001")
@@ -1090,8 +1087,6 @@ public class ChuanyunBasicDataScheduledTask {
         }
     }
 
-
-
     /**
      * 用于刷新项目经理权限的对象
      */

+ 242 - 242
src/main/java/com/galaxis/manatee/task/ChuanyunProjectScheduledTask.java

@@ -769,268 +769,268 @@ public class ChuanyunProjectScheduledTask {
             log.error(e.getMessage());
         }
     }
-}
-
-@Data
-class ChuanyunMemberMonthCostDTO{
-    /**
-     * 项目ID
-     */
-    @JsonProperty("F0000003")
-    private String projectId;
-
-    /**
-     * 项目类型
-     */
-    @JsonProperty("F0000008")
-    private String projectType;
-
-    /**
-     * 日志流程状态
-     */
-    @JsonProperty("F0000009")
-    private String status;
-
-    /**
-     * 用户ID
-     */
-    @JsonProperty("F0000002")
-    private String userId;
-
-    /**
-     * 日期
-     */
-    @JsonProperty("F0000004")
-    @JsonSerialize(using = ChuanyunLocalDateTimeSerializer.class)
-    @JsonDeserialize(using = ChuanyunLocalDateTimeDeserializer.class)
-    private LocalDateTime dayLogDate;
-
-    /**
-     * 工时
-     */
-    @JsonProperty("F0000005")
-    private BigDecimal workHour;
-
-    /**
-     * 成本
-     */
-    @JsonProperty("F0000006")
-    private BigDecimal cost;
-
-    /**
-     * 月度工时汇总
-     */
-    @JsonProperty("F0000007")
-    private BigDecimal monthWorkHour;
-
-    /**
-     * 部门Id
-     */
-    @JsonProperty("F0000010")
-    private String departmentId;
-}
-
-@Data
-class ChuanyunProjectMemberCostDTO {
-
-    /**
-     * 项目ID
-     */
-    @JsonProperty("F0000001")
-    private String projectId;
-
-    /**
-     * 项目类型
-     */
-    @JsonProperty("F0000005")
-    private String projectType;
-
-    /**
-     * 用户ID
-     */
-    @JsonProperty("F0000002")
-    private String userId;
-
-    /**
-     * 工时
-     */
-    @JsonProperty("F0000003")
-    private BigDecimal workHour;
-
-    /**
-     * 成本
-     */
-    @JsonProperty("F0000004")
-    private BigDecimal cost;
-
-    /**
-     * 总人天
-     */
-    @JsonProperty("F0000006")
-    private BigDecimal personDays;
-
-    /**
-     * 工时状态
-     */
-    @JsonProperty("F0000007")
-    private String status;
-}
-
-/**
- * 人员项目周度工时
- */
-@Data
-class ChuanyunProjectMemberWeekHourDTO{
-
-    @JsonProperty("F0000001")
-    private String projectId;
-
-    @JsonProperty("F0000002")
-    private String userId;
-
-    @JsonProperty("F0000003")
-    private String projectType;
-
-    @JsonProperty("F0000004")
-    private BigDecimal totalHour;
-
-    @JsonProperty("F0000005")
-    private BigDecimal personDays;
-
-    @JsonProperty("F0000008")
-    private String year;
 
-    @JsonProperty("F0000006")
-    private String week;
-
-    @JsonProperty("F0000007")
-    private String hourStatus;
-
-    /**
-     * 部门信息
-     */
-    @JsonProperty("F0000009")
-    private String departmentId;
-}
-
-/**
- * 项目汇总工时
- */
-@Data
-class ChuanyunProjectTotalCostDTO{
-
-    /**
-     * 项目ID
-     */
-    @JsonProperty("F0000001")
-    private String projectId;
-
-    /**
-     * 项目类型
-     */
-    @JsonProperty("F0000004")
-    private String projectType;
-
-    /**
-     * 工时
-     */
-    @JsonProperty("F0000003")
-    private BigDecimal workHour;
-
-    /**
-     * 成本
-     */
-    @JsonProperty("F0000002")
-    private BigDecimal cost;
+    @Data
+    class ChuanyunMemberMonthCostDTO{
+        /**
+         * 项目ID
+         */
+        @JsonProperty("F0000003")
+        private String projectId;
+
+        /**
+         * 项目类型
+         */
+        @JsonProperty("F0000008")
+        private String projectType;
+
+        /**
+         * 日志流程状态
+         */
+        @JsonProperty("F0000009")
+        private String status;
+
+        /**
+         * 用户ID
+         */
+        @JsonProperty("F0000002")
+        private String userId;
+
+        /**
+         * 日期
+         */
+        @JsonProperty("F0000004")
+        @JsonSerialize(using = ChuanyunLocalDateTimeSerializer.class)
+        @JsonDeserialize(using = ChuanyunLocalDateTimeDeserializer.class)
+        private LocalDateTime dayLogDate;
+
+        /**
+         * 工时
+         */
+        @JsonProperty("F0000005")
+        private BigDecimal workHour;
+
+        /**
+         * 成本
+         */
+        @JsonProperty("F0000006")
+        private BigDecimal cost;
+
+        /**
+         * 月度工时汇总
+         */
+        @JsonProperty("F0000007")
+        private BigDecimal monthWorkHour;
+
+        /**
+         * 部门Id
+         */
+        @JsonProperty("F0000010")
+        private String departmentId;
+    }
 
-    /**
-     * 总人天
-     */
-    @JsonProperty("F0000005")
-    private BigDecimal personDays;
+    @Data
+    class ChuanyunProjectMemberCostDTO {
+
+        /**
+         * 项目ID
+         */
+        @JsonProperty("F0000001")
+        private String projectId;
+
+        /**
+         * 项目类型
+         */
+        @JsonProperty("F0000005")
+        private String projectType;
+
+        /**
+         * 用户ID
+         */
+        @JsonProperty("F0000002")
+        private String userId;
+
+        /**
+         * 工时
+         */
+        @JsonProperty("F0000003")
+        private BigDecimal workHour;
+
+        /**
+         * 成本
+         */
+        @JsonProperty("F0000004")
+        private BigDecimal cost;
+
+        /**
+         * 总人天
+         */
+        @JsonProperty("F0000006")
+        private BigDecimal personDays;
+
+        /**
+         * 工时状态
+         */
+        @JsonProperty("F0000007")
+        private String status;
+    }
 
     /**
-     * 工时状态
+     * 人员项目周度工时
      */
-    @JsonProperty("F0000006")
-    private String status;
+    @Data
+    class ChuanyunProjectMemberWeekHourDTO{
 
-    @JsonProperty("F0000007")
-    private BigDecimal amount;
-}
+        @JsonProperty("F0000001")
+        private String projectId;
 
-@Data
-class ChuanyunAdjustAccountDTO {
-    @JsonProperty("F0000002")
-    private String projectCode;
+        @JsonProperty("F0000002")
+        private String userId;
 
-    /**
-     * 核算实施人天
-     */
-    @JsonProperty("F0000003")
-    private BigDecimal personDays;
+        @JsonProperty("F0000003")
+        private String projectType;
 
-    /**
-     * 核算实施人力成本
-     */
-    @JsonProperty("F0000004")
-    private BigDecimal laborCost;
+        @JsonProperty("F0000004")
+        private BigDecimal totalHour;
 
-    /**
-     * 核算实施费用
-     */
-    @JsonProperty("F0000005")
-    private BigDecimal implementationCosts;
+        @JsonProperty("F0000005")
+        private BigDecimal personDays;
 
-    /**
-     *核算实施总成本
-     */
-    @JsonProperty("F0000006")
-    private BigDecimal totalImplementationCosts;
+        @JsonProperty("F0000008")
+        private String year;
 
-    /**
-     * 项目
-     */
-    @JsonProperty("F0000007")
-    private String projectId;
-}
+        @JsonProperty("F0000006")
+        private String week;
 
-/**
- * 工时标准化更新数据
- */
-@Data
-class ChuanyunSelfWorkHourDTO {
+        @JsonProperty("F0000007")
+        private String hourStatus;
 
-    @JsonProperty("F0000002")
-    private String userId;
-
-    @JsonProperty("F0000001")
-    private String projectId;
-
-    /**
-     * 项目类型
-     */
-    @JsonProperty("F0000005")
-    private String projectType;
+        /**
+         * 部门信息
+         */
+        @JsonProperty("F0000009")
+        private String departmentId;
+    }
 
     /**
-     * 流程状态
+     * 项目汇总工时
      */
-    @JsonProperty("F0000006")
-    private String status;
-
-    @JsonProperty("F0000003")
-    @JsonSerialize(using = ChuanyunLocalDateTimeSerializer.class)
-    @JsonDeserialize(using = ChuanyunLocalDateTimeDeserializer.class)
-    private LocalDateTime dayLogDate;
+    @Data
+    class ChuanyunProjectTotalCostDTO{
+
+        /**
+         * 项目ID
+         */
+        @JsonProperty("F0000001")
+        private String projectId;
+
+        /**
+         * 项目类型
+         */
+        @JsonProperty("F0000004")
+        private String projectType;
+
+        /**
+         * 工时
+         */
+        @JsonProperty("F0000003")
+        private BigDecimal workHour;
+
+        /**
+         * 成本
+         */
+        @JsonProperty("F0000002")
+        private BigDecimal cost;
+
+        /**
+         * 总人天
+         */
+        @JsonProperty("F0000005")
+        private BigDecimal personDays;
+
+        /**
+         * 工时状态
+         */
+        @JsonProperty("F0000006")
+        private String status;
+
+        @JsonProperty("F0000007")
+        private BigDecimal amount;
+    }
 
-    @JsonProperty("F0000004")
-    private BigDecimal standardWorkHour;
+    @Data
+    class ChuanyunAdjustAccountDTO {
+        @JsonProperty("F0000002")
+        private String projectCode;
+
+        /**
+         * 核算实施人天
+         */
+        @JsonProperty("F0000003")
+        private BigDecimal personDays;
+
+        /**
+         * 核算实施人力成本
+         */
+        @JsonProperty("F0000004")
+        private BigDecimal laborCost;
+
+        /**
+         * 核算实施费用
+         */
+        @JsonProperty("F0000005")
+        private BigDecimal implementationCosts;
+
+        /**
+         *核算实施总成本
+         */
+        @JsonProperty("F0000006")
+        private BigDecimal totalImplementationCosts;
+
+        /**
+         * 项目
+         */
+        @JsonProperty("F0000007")
+        private String projectId;
+    }
 
     /**
-     * 部门Id
+     * 工时标准化更新数据
      */
-    @JsonProperty("F0000007")
-    private String departmentId;
+    @Data
+    class ChuanyunSelfWorkHourDTO {
+
+        @JsonProperty("F0000002")
+        private String userId;
+
+        @JsonProperty("F0000001")
+        private String projectId;
+
+        /**
+         * 项目类型
+         */
+        @JsonProperty("F0000005")
+        private String projectType;
+
+        /**
+         * 流程状态
+         */
+        @JsonProperty("F0000006")
+        private String status;
+
+        @JsonProperty("F0000003")
+        @JsonSerialize(using = ChuanyunLocalDateTimeSerializer.class)
+        @JsonDeserialize(using = ChuanyunLocalDateTimeDeserializer.class)
+        private LocalDateTime dayLogDate;
+
+        @JsonProperty("F0000004")
+        private BigDecimal standardWorkHour;
+
+        /**
+         * 部门Id
+         */
+        @JsonProperty("F0000007")
+        private String departmentId;
+    }
 }