Procházet zdrojové kódy

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

1538940682@qq.com před 3 roky
rodič
revize
24fe0bd4bc

+ 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