소스 검색

fix(date): 时间格式变更为localDateTime2

1538940682@qq.com 3 년 전
부모
커밋
24fe0bd4bc
2개의 변경된 파일과 7개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 3
      src/main/resources/template/AddRequest.java.vm
  2. 3 3
      src/main/resources/template/UpdateRequest.java.vm

+ 4 - 3
src/main/resources/template/AddRequest.java.vm

@@ -37,13 +37,14 @@ public class ${className}AddRequest extends BaseRequest implements Serializable
     /**
 	 * $column.comments
 	 */
-	#if($column.attrType == "String" && $column.nullable == "NO")
+#if($column.attrType == "String" && $column.nullable == "NO")
 	@NotBlank(message = "$column.comments 不能为空")
-	#elseif($column.attrType != "String" && $column.nullable == "NO")
+#elseif($column.attrType != "String" && $column.nullable == "NO")
 	@NotNull(message = "$column.comments 不能为空")
-	#end
+#end
 	@ApiModelProperty(value = "$column.comments")
 	private $column.attrType $column.attrname;
 	#end
 #end
+
 }

+ 3 - 3
src/main/resources/template/UpdateRequest.java.vm

@@ -37,11 +37,11 @@ public class ${className}UpdateRequest extends BaseRequest implements Serializab
     /**
 	 * $column.comments
 	 */
-	#if($column.attrType == "String" && $column.nullable == "NO")
+#if($column.attrType == "String" && $column.nullable == "NO")
 	@NotBlank(message = "${column.comments}不能为空")
-	#elseif($column.attrType != "String" && $column.nullable == "NO")
+#elseif($column.attrType != "String" && $column.nullable == "NO")
 	@NotNull(message = "${column.comments}不能为空")
-	#end
+#end
 	@ApiModelProperty(value = "$column.comments")
 	private $column.attrType $column.attrname;
 	#end