修复序列化报错

dev_xd
lj7788 2025-08-25 11:39:57 +08:00
parent 40ea6ac556
commit fd81f9802d
1 changed files with 19 additions and 1 deletions

View File

@ -52,6 +52,24 @@ public class SysDictData extends BaseEntity
@Excel(name = "状态", readConverterExp = "0=正常,1=停用") @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status; private String status;
// 添加无参构造函数确保FastJSON能够正确序列化和反序列化
public SysDictData() {
}
// 添加有参构造函数
public SysDictData(Long dictCode, Long dictSort, String dictLabel, String dictValue,
String dictType, String cssClass, String listClass, String isDefault, String status) {
this.dictCode = dictCode;
this.dictSort = dictSort;
this.dictLabel = dictLabel;
this.dictValue = dictValue;
this.dictType = dictType;
this.cssClass = cssClass;
this.listClass = listClass;
this.isDefault = isDefault;
this.status = status;
}
public Long getDictCode() public Long getDictCode()
{ {
return dictCode; return dictCode;