修改了后台新增员工时性别,修改了前台的出院状态

This commit is contained in:
2025-07-11 09:52:55 +08:00
parent fc87250f14
commit d183b376d8
3 changed files with 10 additions and 2 deletions
@@ -36,7 +36,7 @@ public class EmployeeAddForm {
@ApiModelPropertyEnum(GenderEnum.class)
@CheckEnum(value = GenderEnum.class, message = "性别错误")
private Integer gender;
private String gender;
@ApiModelProperty("部门id")
@NotNull(message = "部门id不能为空")
@@ -136,6 +136,9 @@ public class EmployeeService {
// 设置密码 默认密码
String password = randomPassword();
entity.setLoginPwd(getEncryptPwd(password));
if (employeeAddForm.getGender() != null) {
entity.setGender(Integer.valueOf(employeeAddForm.getGender()));
}
// 保存数据
entity.setDeletedFlag(Boolean.FALSE);