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
4862cab4
Commit
4862cab4
authored
4 years ago
by
邓实川
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业中心登录信息优化
parent
beb325e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
+5
-2
src/main/java/cn/timer/api/controller/LoginController.java
+10
-16
No files found.
src/main/java/cn/timer/api/bean/qyzx/QyzxEntInfoM.java
View file @
4862cab4
...
...
@@ -52,7 +52,7 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"法人 "
,
example
=
"刘德华"
)
private
String
operName
;
@ApiModelProperty
(
value
=
"企业规模
10人以下、10-19人、20-99人、100-500人、
500人以上"
,
example
=
"3"
)
@ApiModelProperty
(
value
=
"企业规模
0:10人以下、1:10-19人、2:20-99人、3:100-500人、4:
500人以上"
,
example
=
"3"
)
private
Integer
size
;
@ApiModelProperty
(
value
=
"电话号码 "
,
example
=
"18712345678"
)
...
...
@@ -73,7 +73,7 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"行业类型 1:农、林、牧、渔业、2:采矿业、3:制造业、4:电力、燃气及水的生产和供应业、5:建筑业、6:交通运输、仓储和邮政业、7:信息传输、计算机服务和软件业、8:批发和零售业、9:住宿和餐饮业、10:金融业、11:房地产业、12:租赁和商务服务业、13:科学研究、技术服务和地质勘查业、14:水利、环境和公共设施管理业、15:居民服务和其他服务业"
,
example
=
"101"
)
private
Integer
industryType
;
@ApiModelProperty
(
value
=
"开通渠道 1直属、2总代理、3独家代理、4一般代理商、5区域代理商"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"开通渠道 1直属、2总代理、3独家代理、4一般代理商、5区域代理商
"
,
example
=
"101"
)
private
Integer
openChannel
;
@ApiModelProperty
(
value
=
"联系人"
,
example
=
"刘德华"
)
...
...
@@ -101,6 +101,9 @@ public class QyzxEntInfoM extends Model<QyzxEntInfoM> {
@ApiModelProperty
(
value
=
"认证时间 "
,
example
=
"2019-12-12 08:00:00"
)
private
Date
attestTime
;
@ApiModelProperty
(
value
=
"认证通过时间 "
,
example
=
"2019-12-12 08:00:00"
)
private
Date
attestPassTime
;
@ApiModelProperty
(
value
=
"到期时间 "
,
example
=
"2039-12-12 08:00:00"
)
private
Date
endTime
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
4862cab4
...
...
@@ -3,9 +3,7 @@ package cn.timer.api.controller;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpSession
;
...
...
@@ -14,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -406,21 +403,18 @@ public class LoginController {
qyzxEmpLogin1
.
setPw
(
Md5
.
md5
(
"123456"
));
// 密码初始化
qyzxEmpLogin1
.
updateById
();
//员工信息 手机号修改
YgglMainEmp
.
builder
().
phone
(
phone
).
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
qyzxEmpLogin1
.
getId
()));
// 员工信息 手机号修改
YgglMainEmp
.
builder
().
phone
(
phone
).
build
().
update
(
new
UpdateWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
qyzxEmpLogin1
.
getId
()));
return
ResultUtil
.
success
(
"修改手机号/用户名成功"
);
}
return
ResultUtil
.
error
(
"修改手机号/用户名失败"
);
}
@Autowired
SpmkServiceImpl
SpmkService
;
/**
* 注册企业
...
...
@@ -464,7 +458,7 @@ public class LoginController {
}
// 企业信息
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
name
(
name
).
registerTime
(
DateUtil
.
date
())
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
name
(
name
).
registerTime
(
DateUtil
.
date
())
.
phone
(
phone
).
operName
(
username
)
.
endTime
(
DateUtil
.
offsetDay
(
new
Date
(),
offset
)).
level
(
CommonEnum
.
LEVEL_PROBATION
.
getType
())
.
build
();
boolean
b1
=
qyzxEntInfoM
.
insert
();
...
...
@@ -506,9 +500,9 @@ public class LoginController {
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
ResultUtil
.
error
(
"注册企业失败4"
);
}
SpmkService
.
createCustomApproval
(
qyzxEntInfoM
.
getId
());
return
ResultUtil
.
success
(
"注册企业成功"
);
}
catch
(
Exception
e
)
{
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
...
...
@@ -635,7 +629,7 @@ public class LoginController {
if
(
qyzxEmpLogin1
!=
null
)
{
if
(
StrUtil
.
hasBlank
(
pw
)
||
!
qyzxEmpLogin1
.
getPw
().
equals
(
Md5
.
md5
(
pw
)))
return
ResultUtil
.
error
(
"帐号密码错误"
);
return
loginhan
(
qyzxEmpLogin1
,
request
);
}
else
{
return
ResultUtil
.
error
(
"帐号不存在-错误"
);
...
...
This diff is collapsed.
Click to expand it.
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