Commit e987f534 by dengshichuan

Merge branch 'dsc' into 'develop'

邮箱字段更正,地区字段补充

See merge request 8timerv2/8timerapiv200!245
parents 4a28a346 765275e3
......@@ -58,8 +58,11 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty(value = "电话号码 ", example = "18712345678")
private String phone;
@ApiModelProperty(value = "所在地区", example = "广东省广州市白云区")
@ApiModelProperty(value = "所在地区id", example = "广东省广州市白云区")
private String area;
@ApiModelProperty(value = "所在地区中文", example = "广东省广州市白云区")
private String areaName;
@ApiModelProperty(value = "办公地址 ", example = "广从一路5号柏曼酒店3楼")
private String workAddress;
......
......@@ -121,8 +121,8 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty(value="微信 ",example="微信")
private String wechat;
@ApiModelProperty(value="个人邮箱 ",example="个人邮箱")
private String email;
// @ApiModelProperty(value="个人邮箱 ",example="个人邮箱")
// private String email;
@ApiModelProperty(value="血型 ",example="血型")
private String bloodType;
......
......@@ -495,6 +495,7 @@ public class LoginController {
String username = entRegisterDto.getUsername();
String name = entRegisterDto.getName();
String pw = entRegisterDto.getPw();
String email = entRegisterDto.getEmail();
if ((phone == null || StrUtil.hasBlank(phone)) || (username == null || StrUtil.hasBlank(username))
|| (name == null || StrUtil.hasBlank(name)) || (pw == null || StrUtil.hasBlank(pw))) {
......@@ -525,9 +526,8 @@ public class LoginController {
}
if (login == null) {
System.err.println("kanxia");
// 员工信息
QyzxEmpLogin qyzxEmpLogin = QyzxEmpLogin.builder().phone(phone).pw(Md5.md5(pw))
QyzxEmpLogin qyzxEmpLogin = QyzxEmpLogin.builder().phone(phone).pw(Md5.md5(pw)).email(email)
.sts(CommonEnum.U_STS_ON.getType()).orgId(qyId).regTime(DateUtil.date()).build();
boolean b2 = qyzxEmpLogin.insert();
if (!b2) {
......@@ -536,9 +536,9 @@ public class LoginController {
}
login = qyzxEmpLogin;
}
// 1-是主账号管理员
boolean b4 = YgglMainEmp.builder().orgCode(qyId).empNum(login.getId()).rzTime(new Date()).isManager(1)
.name(username).phone(phone).jobType(YgJobType.QUANZHI.getType())
// 员工信息
boolean b4 = YgglMainEmp.builder().orgCode(qyId).empNum(login.getId()).rzTime(new Date())
.name(username).phone(phone).workEmail(email).jobType(YgJobType.QUANZHI.getType())
.jobStatus(YgEnumInterface.jobStatus.ZHENSHI.getType()).build().insert();
if (!b4) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
......
......@@ -21,29 +21,32 @@ public class EntRegisterDto implements Serializable {
@ApiModelProperty(value = "密码", example = "123456")
private String pw;
@ApiModelProperty(value = "用户名", example = "用户名")
private String username;
@ApiModelProperty(value = "企业名称 ", example = "企业名称")
private String name;
@ApiModelProperty(value = "短信时间 ", example = "20191207")
private String sendDate;
@ApiModelProperty(value = "原密码", example = "666666")
private String oldPwd;
@ApiModelProperty(value = "验证码 ", example = "666666")
private String code;
@ApiModelProperty(value = "邮箱", example = "youxiang@qq.com")
private String email;
@ApiModelProperty(value = "1.验证码 2.消息推送 3通知提醒 ", example = "1")
private Integer messageType;
@ApiModelProperty(value = "短信模板:1.身份验证验证码 2.登录确认验证码 3.登录异常验证码 4.用户注册验证码 5.修改密码验证码 6.信息变更验证码 ", example = "1")
private Integer tc;
@ApiModelProperty(value = "1.原密码修改 2.验证码修改 ", example = "1")
private Integer pwUpdateType;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment