Browse Source

【CHG】解除不必填字段长度限制

ZhaoMn 4 years ago
parent
commit
a2aff84c57

+ 5 - 5
railway-business/src/main/java/com/railway/business/baseinfo/domain/BusDmcgyq.java

@@ -49,15 +49,15 @@ public class BusDmcgyq extends BaseEntity{
     private String pillarArea;
 
     @ApiModelProperty(value = "股道")
-    @Length(min = 1, max = 100, message = "【股道】长度必须介于 {min} 和 {max} 之间")
+    @Length(max = 100, message = "【股道】长度必须介于 {min} 和 {max} 之间")
     private String stationTrack;
 
     @ApiModelProperty(value = "管辖模式")
-    @Length(min = 1, max = 50, message = "【管辖模式】长度必须介于 {min} 和 {max} 之间")
+    @Length(max = 50, message = "【管辖模式】长度必须介于 {min} 和 {max} 之间")
     private String gxms;
 
     @ApiModelProperty(value = "分相处所")
-    @Length(min = 1, max = 100, message = "【分相处所】长度必须介于 {min} 和 {max} 之间")
+    @Length(max = 100, message = "【分相处所】长度必须介于 {min} 和 {max} 之间")
     private String fxcs;
 
     @ApiModelProperty(value = "分相名称")
@@ -65,7 +65,7 @@ public class BusDmcgyq extends BaseEntity{
     private String fxmc;
 
     @ApiModelProperty(value = "锚段号")
-    @Length(min = 1, max = 50, message = "【锚段号】长度必须介于 {min} 和 {max} 之间")
+    @Length(max = 50, message = "【锚段号】长度必须介于 {min} 和 {max} 之间")
     private String mdh;
 
     @ApiModelProperty(value = "设备编号")
@@ -73,7 +73,7 @@ public class BusDmcgyq extends BaseEntity{
     private String sbbh;
 
     @ApiModelProperty(value = "轨枕类型")
-    @Length(min = 1, max = 50, message = "【轨枕类型】长度必须介于 {min} 和 {max} 之间")
+    @Length(max = 50, message = "【轨枕类型】长度必须介于 {min} 和 {max} 之间")
     private String gzlx;
 
     @ApiModelProperty(value = "磁枕里程")