mirror of https://gitee.com/y_project/RuoYi.git
fix: JsonFormat default timezone.
parent
e405becf9a
commit
35f58fdd5e
|
@ -14,7 +14,7 @@ import com.ruoyi.common.core.domain.TreeEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${functionName}对象 ${tableName}
|
* ${functionName}对象 ${tableName}
|
||||||
*
|
*
|
||||||
* @author ${author}
|
* @author ${author}
|
||||||
* @date ${datetime}
|
* @date ${datetime}
|
||||||
*/
|
*/
|
||||||
|
@ -40,7 +40,7 @@ public class ${ClassName} extends ${Entity}
|
||||||
#if($parentheseIndex != -1)
|
#if($parentheseIndex != -1)
|
||||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
#elseif($column.javaType == 'Date')
|
#elseif($column.javaType == 'Date')
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||||
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
#else
|
#else
|
||||||
@Excel(name = "${comment}")
|
@Excel(name = "${comment}")
|
||||||
|
@ -62,12 +62,12 @@ public class ${ClassName} extends ${Entity}
|
||||||
#else
|
#else
|
||||||
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
|
||||||
#end
|
#end
|
||||||
public void set${AttrName}($column.javaType $column.javaField)
|
public void set${AttrName}($column.javaType $column.javaField)
|
||||||
{
|
{
|
||||||
this.$column.javaField = $column.javaField;
|
this.$column.javaField = $column.javaField;
|
||||||
}
|
}
|
||||||
|
|
||||||
public $column.javaType get${AttrName}()
|
public $column.javaType get${AttrName}()
|
||||||
{
|
{
|
||||||
return $column.javaField;
|
return $column.javaField;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue