修改了后台新增员工时性别,修改了前台的出院状态
This commit is contained in:
parent
fc87250f14
commit
d183b376d8
@ -36,7 +36,7 @@ public class EmployeeAddForm {
|
|||||||
|
|
||||||
@ApiModelPropertyEnum(GenderEnum.class)
|
@ApiModelPropertyEnum(GenderEnum.class)
|
||||||
@CheckEnum(value = GenderEnum.class, message = "性别错误")
|
@CheckEnum(value = GenderEnum.class, message = "性别错误")
|
||||||
private Integer gender;
|
private String gender;
|
||||||
|
|
||||||
@ApiModelProperty("部门id")
|
@ApiModelProperty("部门id")
|
||||||
@NotNull(message = "部门id不能为空")
|
@NotNull(message = "部门id不能为空")
|
||||||
|
|||||||
@ -136,6 +136,9 @@ public class EmployeeService {
|
|||||||
// 设置密码 默认密码
|
// 设置密码 默认密码
|
||||||
String password = randomPassword();
|
String password = randomPassword();
|
||||||
entity.setLoginPwd(getEncryptPwd(password));
|
entity.setLoginPwd(getEncryptPwd(password));
|
||||||
|
if (employeeAddForm.getGender() != null) {
|
||||||
|
entity.setGender(Integer.valueOf(employeeAddForm.getGender()));
|
||||||
|
}
|
||||||
|
|
||||||
// 保存数据
|
// 保存数据
|
||||||
entity.setDeletedFlag(Boolean.FALSE);
|
entity.setDeletedFlag(Boolean.FALSE);
|
||||||
|
|||||||
@ -34,7 +34,12 @@ public enum DischargeStatusEnum implements BaseEnum {
|
|||||||
/**
|
/**
|
||||||
* 4 死亡
|
* 4 死亡
|
||||||
*/
|
*/
|
||||||
D("4", "死亡");
|
D("4", "死亡"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 5 移植
|
||||||
|
*/
|
||||||
|
E("5", "移植");
|
||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user