修改了后台新增员工时性别,修改了前台的出院状态
This commit is contained in:
+1
-1
@@ -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不能为空")
|
||||
|
||||
+3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user