Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
e987f534
Commit
e987f534
authored
Jun 20, 2020
by
dengshichuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dsc' into 'develop'
邮箱字段更正,地区字段补充 See merge request 8timerv2/8timerapiv200!245
parents
4a28a346
765275e3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
+4
-1
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
+2
-2
src/main/java/cn/timer/api/controller/LoginController.java
+5
-5
src/main/java/cn/timer/api/dto/qyzx/EntRegisterDto.java
+3
-0
No files found.
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
View file @
e987f534
...
@@ -58,9 +58,12 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
...
@@ -58,9 +58,12 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"电话号码 "
,
example
=
"18712345678"
)
@ApiModelProperty
(
value
=
"电话号码 "
,
example
=
"18712345678"
)
private
String
phone
;
private
String
phone
;
@ApiModelProperty
(
value
=
"所在地区"
,
example
=
"广东省广州市白云区"
)
@ApiModelProperty
(
value
=
"所在地区
id
"
,
example
=
"广东省广州市白云区"
)
private
String
area
;
private
String
area
;
@ApiModelProperty
(
value
=
"所在地区中文"
,
example
=
"广东省广州市白云区"
)
private
String
areaName
;
@ApiModelProperty
(
value
=
"办公地址 "
,
example
=
"广从一路5号柏曼酒店3楼"
)
@ApiModelProperty
(
value
=
"办公地址 "
,
example
=
"广从一路5号柏曼酒店3楼"
)
private
String
workAddress
;
private
String
workAddress
;
...
...
src/main/java/cn/timer/api/bean/yggl/YgglMainEmp.java
View file @
e987f534
...
@@ -121,8 +121,8 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
...
@@ -121,8 +121,8 @@ public class YgglMainEmp extends Model<YgglMainEmp> {
@ApiModelProperty
(
value
=
"微信 "
,
example
=
"微信"
)
@ApiModelProperty
(
value
=
"微信 "
,
example
=
"微信"
)
private
String
wechat
;
private
String
wechat
;
@ApiModelProperty
(
value
=
"个人邮箱 "
,
example
=
"个人邮箱"
)
//
@ApiModelProperty(value="个人邮箱 ",example="个人邮箱")
private
String
email
;
//
private String email;
@ApiModelProperty
(
value
=
"血型 "
,
example
=
"血型"
)
@ApiModelProperty
(
value
=
"血型 "
,
example
=
"血型"
)
private
String
bloodType
;
private
String
bloodType
;
...
...
src/main/java/cn/timer/api/controller/LoginController.java
View file @
e987f534
...
@@ -495,6 +495,7 @@ public class LoginController {
...
@@ -495,6 +495,7 @@ public class LoginController {
String
username
=
entRegisterDto
.
getUsername
();
String
username
=
entRegisterDto
.
getUsername
();
String
name
=
entRegisterDto
.
getName
();
String
name
=
entRegisterDto
.
getName
();
String
pw
=
entRegisterDto
.
getPw
();
String
pw
=
entRegisterDto
.
getPw
();
String
email
=
entRegisterDto
.
getEmail
();
if
((
phone
==
null
||
StrUtil
.
hasBlank
(
phone
))
||
(
username
==
null
||
StrUtil
.
hasBlank
(
username
))
if
((
phone
==
null
||
StrUtil
.
hasBlank
(
phone
))
||
(
username
==
null
||
StrUtil
.
hasBlank
(
username
))
||
(
name
==
null
||
StrUtil
.
hasBlank
(
name
))
||
(
pw
==
null
||
StrUtil
.
hasBlank
(
pw
)))
{
||
(
name
==
null
||
StrUtil
.
hasBlank
(
name
))
||
(
pw
==
null
||
StrUtil
.
hasBlank
(
pw
)))
{
...
@@ -525,9 +526,8 @@ public class LoginController {
...
@@ -525,9 +526,8 @@ public class LoginController {
}
}
if
(
login
==
null
)
{
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
();
.
sts
(
CommonEnum
.
U_STS_ON
.
getType
()).
orgId
(
qyId
).
regTime
(
DateUtil
.
date
()).
build
();
boolean
b2
=
qyzxEmpLogin
.
insert
();
boolean
b2
=
qyzxEmpLogin
.
insert
();
if
(!
b2
)
{
if
(!
b2
)
{
...
@@ -536,9 +536,9 @@ public class LoginController {
...
@@ -536,9 +536,9 @@ public class LoginController {
}
}
login
=
qyzxEmpLogin
;
login
=
qyzxEmpLogin
;
}
}
//
1-是主账号管理员
//
员工信息
boolean
b4
=
YgglMainEmp
.
builder
().
orgCode
(
qyId
).
empNum
(
login
.
getId
()).
rzTime
(
new
Date
())
.
isManager
(
1
)
boolean
b4
=
YgglMainEmp
.
builder
().
orgCode
(
qyId
).
empNum
(
login
.
getId
()).
rzTime
(
new
Date
())
.
name
(
username
).
phone
(
phone
).
jobType
(
YgJobType
.
QUANZHI
.
getType
())
.
name
(
username
).
phone
(
phone
).
workEmail
(
email
).
jobType
(
YgJobType
.
QUANZHI
.
getType
())
.
jobStatus
(
YgEnumInterface
.
jobStatus
.
ZHENSHI
.
getType
()).
build
().
insert
();
.
jobStatus
(
YgEnumInterface
.
jobStatus
.
ZHENSHI
.
getType
()).
build
().
insert
();
if
(!
b4
)
{
if
(!
b4
)
{
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
...
...
src/main/java/cn/timer/api/dto/qyzx/EntRegisterDto.java
View file @
e987f534
...
@@ -37,6 +37,9 @@ public class EntRegisterDto implements Serializable {
...
@@ -37,6 +37,9 @@ public class EntRegisterDto implements Serializable {
@ApiModelProperty
(
value
=
"验证码 "
,
example
=
"666666"
)
@ApiModelProperty
(
value
=
"验证码 "
,
example
=
"666666"
)
private
String
code
;
private
String
code
;
@ApiModelProperty
(
value
=
"邮箱"
,
example
=
"youxiang@qq.com"
)
private
String
email
;
@ApiModelProperty
(
value
=
"1.验证码 2.消息推送 3通知提醒 "
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"1.验证码 2.消息推送 3通知提醒 "
,
example
=
"1"
)
private
Integer
messageType
;
private
Integer
messageType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment