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
bc5043cc
Commit
bc5043cc
authored
Mar 31, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营后台--
更改登录密码验证
parent
826cdbd1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
4 deletions
+44
-4
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
+14
-1
src/main/java/cn/timer/api/controller/superadmin/SuperLoginController.java
+2
-1
src/main/resources/application-dev.yml
+16
-2
src/main/resources/application-test.yml
+12
-0
No files found.
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
View file @
bc5043cc
...
@@ -5,8 +5,11 @@ import java.util.Map;
...
@@ -5,8 +5,11 @@ import java.util.Map;
import
java.util.Optional
;
import
java.util.Optional
;
import
cn.timer.api.bean.insure.InsureUser
;
import
cn.timer.api.bean.insure.InsureUser
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.dao.insure.InsureUserMapper
;
import
cn.timer.api.dao.insure.InsureUserMapper
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.utils.Page
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
cn.timer.api.utils.ResultUtil
;
import
com.beust.jcommander.internal.Lists
;
import
com.beust.jcommander.internal.Lists
;
...
@@ -35,7 +38,7 @@ public class InsureUserController{
...
@@ -35,7 +38,7 @@ public class InsureUserController{
private
InsureUserMapper
insureUserMapper
;
private
InsureUserMapper
insureUserMapper
;
@PostMapping
(
value
=
"/policyList"
)
@PostMapping
(
value
=
"/policyList"
)
@ApiOperation
(
value
=
"3.保单列表"
,
httpMethod
=
"Post"
,
notes
=
"保单列表"
)
@ApiOperation
(
value
=
"3.保单列表
--运营后台
"
,
httpMethod
=
"Post"
,
notes
=
"保单列表"
)
public
Result
<
Object
>
policyList
(
@RequestBody
PolicyDto
policyDto
)
{
public
Result
<
Object
>
policyList
(
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyDto
>
list
=
insureUserMapper
.
selectPolicyList
(
policyDto
.
getPage
(),
String
.
valueOf
(
policyDto
.
getId
()));
List
<
PolicyDto
>
list
=
insureUserMapper
.
selectPolicyList
(
policyDto
.
getPage
(),
String
.
valueOf
(
policyDto
.
getId
()));
...
@@ -50,4 +53,14 @@ public class InsureUserController{
...
@@ -50,4 +53,14 @@ public class InsureUserController{
return
ResultUtil
.
data
(
user
);
return
ResultUtil
.
data
(
user
);
}
}
@PostMapping
(
value
=
"/userPolicyList"
)
@ApiOperation
(
value
=
"3.保单列表--8小时端"
,
httpMethod
=
"Post"
,
notes
=
"保单列表"
)
public
Result
<
Object
>
userPolicyList
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyDto
>
list
=
insureUserMapper
.
selectPolicyList
(
page
,
String
.
valueOf
(
userBean
.
getOrgCode
()));
map
.
put
(
"list"
,
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
()));
map
.
put
(
"total"
,
insureUserMapper
.
totalUser
(
String
.
valueOf
(
userBean
.
getOrgCode
())));
return
ResultUtil
.
data
(
map
);
}
}
}
src/main/java/cn/timer/api/controller/superadmin/SuperLoginController.java
View file @
bc5043cc
...
@@ -39,7 +39,8 @@ public class SuperLoginController {
...
@@ -39,7 +39,8 @@ public class SuperLoginController {
String
ip
=
UserIp
.
getIpAddr
(
request
);
String
ip
=
UserIp
.
getIpAddr
(
request
);
AdminAccount
adminAccount
=
AdminAccount
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
AdminAccount
>().
lambda
()
AdminAccount
adminAccount
=
AdminAccount
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
AdminAccount
>().
lambda
()
.
eq
(
AdminAccount:
:
getAccount
,
entRegisterDto
.
getPhone
())
.
eq
(
AdminAccount:
:
getAccount
,
entRegisterDto
.
getPhone
())
.
eq
(
AdminAccount:
:
getPwd
,
Md5
.
md5
(
entRegisterDto
.
getPw
())));
.
eq
(
AdminAccount:
:
getPwd
,
entRegisterDto
.
getPw
()
));
if
(
adminAccount
==
null
){
if
(
adminAccount
==
null
){
return
ResultUtil
.
error
(
"用户不存在或密码错误"
);
return
ResultUtil
.
error
(
"用户不存在或密码错误"
);
}
}
...
...
src/main/resources/application-dev.yml
View file @
bc5043cc
#生产环境
#生产环境
server
:
server
:
port
:
8
089
port
:
8
866
servlet
:
servlet
:
# context-path: /YoulinghrApiV100
# context-path: /YoulinghrApiV100
session
:
session
:
...
@@ -31,7 +31,7 @@ spring:
...
@@ -31,7 +31,7 @@ spring:
# username: tang
# username: tang
# password: Tang123456!
# password: Tang123456!
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://120.24.172.51:3306/youlingrc_tang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://120.78.162.177:3306/
8timer_20210904?useUnicode=
true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
url
:
jdbc:mysql://120.78.162.177:3306/
timer_test?useUnicode=SpmkApproveSummaryMapper
true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://192.168.172.200:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
# url: jdbc:mysql://db.hhlsz.com:3306/youlingrc_8timer201?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
...
@@ -238,3 +238,17 @@ config-8timer:
...
@@ -238,3 +238,17 @@ config-8timer:
zip
:
zip
:
path
:
'
D:/zip/'
path
:
'
D:/zip/'
insure
:
#投保
appid
:
'
1002303100602312445'
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#保全
appidq
:
'
1000115041006006938'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
uploadUrlq
:
'
http://sandbox.portal.unistar-ins.com/fuli/Home/Index/file_upload'
batchUrl
:
'
http://sandbox.portal.unistar-ins.com/fuli/Home/WelfareProduct/batch_declare'
# base_api_url
BASE_API_URL
:
'
http://test-8timer-api.youlingrc.com'
src/main/resources/application-test.yml
View file @
bc5043cc
...
@@ -238,3 +238,15 @@ sftp:
...
@@ -238,3 +238,15 @@ sftp:
targetPath
:
'
/disk'
targetPath
:
'
/disk'
reservedName
:
false
reservedName
:
false
insure
:
#投保
appid
:
'
1002303100602312445'
secret
:
'
acb329868c31d5b3ba03de40dac13dd9'
uploadUrl
:
'
http://sandbox.portal.unistar-ins.com/service/Home/Index/fileUpload'
insuredUrl
:
'
http://sandbox.portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#保全
appidq
:
'
1000115041006006938'
secretq
:
'
6ba1bf4aa0bd14368c95ff0b9934a17b'
uploadUrlq
:
'
http://sandbox.portal.unistar-ins.com/fuli/Home/Index/file_upload'
batchUrl
:
'
http://sandbox.portal.unistar-ins.com/fuli/Home/WelfareProduct/batch_declare'
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