修改了总部分配账号的功能模块

This commit is contained in:
XinYi Song 2021-12-20 10:32:40 +08:00
parent 3924f2d129
commit a7b62f9fa8
2 changed files with 46 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import com.xkrs.model.validation.SysUserQoInsert;
import com.xkrs.model.validation.SysUserQoUpdate; import com.xkrs.model.validation.SysUserQoUpdate;
import org.hibernate.validator.constraints.Range; import org.hibernate.validator.constraints.Range;
import javax.persistence.Column;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern; import javax.validation.constraints.Pattern;
@ -47,6 +48,24 @@ public class SysUserQo {
@NotNull(message = "{SysUser.deleteFlag.null}",groups={SysUserQoUpdate.class}) @NotNull(message = "{SysUser.deleteFlag.null}",groups={SysUserQoUpdate.class})
private Integer deleteFlag; private Integer deleteFlag;
/**
*
*/
@NotNull(message = "{SysUser.province.illegal}",groups={SysUserQoUpdate.class})
private String province;
/**
*
*/
@NotNull(message = "{SysUser.city.illegal}",groups={SysUserQoUpdate.class})
private String city;
/**
*
*/
@NotNull(message = "{SysUser.county.illegal}",groups={SysUserQoUpdate.class})
private String county;
private Integer roleId; private Integer roleId;
private Integer authorityId; private Integer authorityId;
@ -111,6 +130,30 @@ public class SysUserQo {
this.deleteFlag = deleteFlag; this.deleteFlag = deleteFlag;
} }
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCounty() {
return county;
}
public void setCounty(String county) {
this.county = county;
}
public Integer getRoleId() { public Integer getRoleId() {
return roleId; return roleId;
} }

View File

@ -89,6 +89,9 @@ public class SysUserServiceImpl implements SysUserService {
sysUserEntity.setActiveFlag(0); sysUserEntity.setActiveFlag(0);
sysUserEntity.setStatusCode(0); sysUserEntity.setStatusCode(0);
sysUserEntity.setAddTime(getNowTime()); sysUserEntity.setAddTime(getNowTime());
sysUserEntity.setProvince(sysUserQo.getProvince());
sysUserEntity.setCity(sysUserQo.getCity());
sysUserEntity.setCounty(sysUserQo.getCounty());
sysUserEntity.setDeleteFlag(0); sysUserEntity.setDeleteFlag(0);
int i = (int)(Math.random()*9+1)*100000; int i = (int)(Math.random()*9+1)*100000;
sysUserEntity.setIdentifier(String.valueOf(i)); sysUserEntity.setIdentifier(String.valueOf(i));