xuzhancheng 1 месяц назад
Родитель
Сommit
e89a23372b

+ 6 - 0
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/controller/admin/equippipe/vo/EquipPipeSaveReqVO.java

@@ -105,6 +105,7 @@ public class EquipPipeSaveReqVO {
     private String lastLegalPeriodicalInspectionReportNo;
 
     @Schema(description = "法定-下次法定检验日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime nextLegalCheckDate;
 
     @Schema(description = "法定-最低安全状况登记")
@@ -120,6 +121,7 @@ public class EquipPipeSaveReqVO {
     private String lastYearReportNo;
 
     @Schema(description = "年度-下次年检日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime nextYearCheckDate;
 
     @Schema(description = "年度-安装状况登记")
@@ -135,15 +137,18 @@ public class EquipPipeSaveReqVO {
     private String lastMaintenanceReportNo;
 
     @Schema(description = "维修-监督检验开始日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime supervisionStartDate;
 
     @Schema(description = "维修-监督检验结束日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime supervisionEndDate;
 
     @Schema(description = "维修-上次维修改造内容")
     private String lastMaintenanceContent;
 
     @Schema(description = "出厂日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime useDate;
 
     @Schema(description = "管道最高级别")
@@ -285,6 +290,7 @@ public class EquipPipeSaveReqVO {
     /**
      * 下次在线检验日期
      */
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime nextonlinedate;
     /**
      * 在线检验的项目

+ 7 - 0
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/controller/admin/equippipedetail/vo/EquipPipeDetailSaveReqVO.java

@@ -94,15 +94,18 @@ public class EquipPipeDetailSaveReqVO {
     private BigDecimal undergroundLength;
 
     @Schema(description = "投入使用日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime commissioningDate;
 
     @Schema(description = "设计使用年限")
     private String designLifeYears;
 
     @Schema(description = "开工日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime constructionStartDate;
 
     @Schema(description = "交工日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime handoverDate;
 
     @Schema(description = "使用状态", example = "1")
@@ -115,6 +118,7 @@ public class EquipPipeDetailSaveReqVO {
     private String lastInspectionReportNo;
 
     @Schema(description = "法定-下次法定检验日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime nextLegalCheckDate;
 
     @Schema(description = "法定-安全状况等级 ")
@@ -130,6 +134,7 @@ public class EquipPipeDetailSaveReqVO {
     private String lastYearReportNo;
 
     @Schema(description = "年检-下次年检日期")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime nextYearCheckDate;
 
     @Schema(description = "年检-安全状况等级")
@@ -156,6 +161,7 @@ public class EquipPipeDetailSaveReqVO {
     /**
      * 上次定检日期
      */
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime lastalldate;
     /**
      * 被计划的次数
@@ -172,6 +178,7 @@ public class EquipPipeDetailSaveReqVO {
     /**
      * 上次年检日期
      */
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private LocalDateTime lastonlinedate;
     /**
      * 全部检验项目