This commit is contained in:
wyd 2024-04-23 13:18:21 +08:00
parent e899b0b8e3
commit 27aa4ec4ed
4 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ private static final long serialVersionUID=1L;
#end
#end
#if($column.isPk == 1)
@JSONField(serializeUsing = ToStringSerializer.class)
@JsonSerialize(using = ToStringSerializer.class)
@ApiModelProperty("$column.columnComment")
@TableId(value = "$column.columnName" , type = IdType.ASSIGN_ID)
private $column.javaType $column.javaField;
@ -57,7 +57,7 @@ private static final long serialVersionUID=1L;
/** $column.columnComment */
@ApiModelProperty(value = "$column.columnComment",hidden = true)
@TableField("$column.columnName")
@JSONField(serializeUsing = ToStringSerializer.class)
@JsonSerialize(using = ToStringSerializer.class)
private String $column.javaField;
#end
#end

View File

@ -5,7 +5,7 @@ export function listPage${BusinessName}(data) {
return request({
url: '/${moduleName}/listPage',
method: 'post',
data: data
params: data
})
}
// 查询${functionName}列表
@ -28,7 +28,7 @@ export function add${BusinessName}(data) {
return request({
url: '/${moduleName}/add',
method: 'post',
data: data
params: data
})
}
@ -37,7 +37,7 @@ export function update${BusinessName}(data) {
return request({
url: '/${moduleName}/edit',
method: 'post',
data: data
params: data
})
}

View File

@ -438,7 +438,7 @@ export default {
#end
#end
listPage${BusinessName}(this.queryParams).then(response => {
this.${businessName}List = response.rows;
this.${businessName}List = response.data;
this.total = response.total;
this.loading = false;
});