This commit is contained in:
@jyuhsin
2025-08-28 14:51:47 +08:00
parent 4367d3882f
commit 48cc8a448c
12 changed files with 34 additions and 42 deletions
@@ -85,7 +85,7 @@ public class CondolenceTypeController {
@ApiOperation("查询职工慰问类型")
@SaCheckLogin
public Result queryCondolenceType() {
List<CondolenceType> list = typeService.query(Cnd.NEW().desc(CondolenceType::getCode));
List<CondolenceType> list = typeService.query(Cnd.where(CondolenceType::getEnable, "=", true).desc(CondolenceType::getCode));
return Result.success(list);
}
}
@@ -48,9 +48,10 @@ public class CondolenceType extends BaseModel {
private String way;
@Column
@Comment("是否")
@Comment("是否")
@ColDefine(type = ColType.BOOLEAN)
private Boolean isDisabled;
@Default("1")
private Boolean enable;
@Column
@Comment("是否上传附件")