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
bc3319a7
Commit
bc3319a7
authored
Apr 18, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改成大写
parent
12fa8ae1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
+2
-2
src/main/java/cn/timer/api/controller/insure/InsureApplicantController.java
+1
-1
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+12
-12
src/main/java/cn/timer/api/controller/insure/InsureLogController.java
+3
-3
src/main/java/cn/timer/api/controller/insure/InsureProductController.java
+1
-1
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
+5
-5
src/main/java/cn/timer/api/controller/superadmin/SuperLoginController.java
+2
-2
No files found.
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
View file @
bc3319a7
...
...
@@ -47,7 +47,7 @@ public class CallBackContorll {
private
String
base_api_url
;
@PostMapping
(
value
=
"/insuredCallBack"
)
@ApiOperation
(
value
=
"6.投保申请回调"
,
httpMethod
=
"P
ost
"
,
notes
=
"投保申请回调"
)
@ApiOperation
(
value
=
"6.投保申请回调"
,
httpMethod
=
"P
OST
"
,
notes
=
"投保申请回调"
)
@ApiOperationSupport
(
order
=
2
)
private
Map
insuredCallBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
Map
map
=
Maps
.
newHashMap
();
...
...
@@ -76,7 +76,7 @@ public class CallBackContorll {
}
@PostMapping
(
value
=
"/CallBack"
)
@ApiOperation
(
value
=
"7.保全增员申请回调"
,
httpMethod
=
"P
ost
"
,
notes
=
"投保申请回调"
)
@ApiOperation
(
value
=
"7.保全增员申请回调"
,
httpMethod
=
"P
OST
"
,
notes
=
"投保申请回调"
)
@ApiOperationSupport
(
order
=
2
)
private
Map
callBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
Map
map
=
Maps
.
newHashMap
();
...
...
src/main/java/cn/timer/api/controller/insure/InsureApplicantController.java
View file @
bc3319a7
...
...
@@ -59,7 +59,7 @@ public class InsureApplicantController {
@GetMapping
(
"/getApplicant"
)
@ApiOperation
(
value
=
"获取投保人"
,
httpMethod
=
"G
et
"
,
notes
=
"获取投保人"
)
@ApiOperation
(
value
=
"获取投保人"
,
httpMethod
=
"G
ET
"
,
notes
=
"获取投保人"
)
private
Result
<
Object
>
getApplicant
()
{
InsureApplicant
insureApplicant
=
InsureApplicant
.
builder
().
id
(
1
).
build
().
selectById
();
if
(
insureApplicant
==
null
){
...
...
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
bc3319a7
...
...
@@ -130,7 +130,7 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/insured_add"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
ost
"
,
notes
=
"投保申请"
)
@ApiOperation
(
value
=
"1.投保申请"
,
httpMethod
=
"P
OST
"
,
notes
=
"投保申请"
)
public
Result
<
Object
>
insured_add
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
InsureProduct
insureProduct
=
InsureProduct
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getProductId
())).
build
().
selectById
();
if
(
insureProduct
==
null
)
{
...
...
@@ -380,7 +380,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/policyListAdmin"
)
@ApiOperation
(
value
=
"4.保单列表--运营后台端"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单列表--运营后台端"
)
@ApiOperation
(
value
=
"4.保单列表--运营后台端"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单列表--运营后台端"
)
public
Result
<
Object
>
policyListAdmin
(
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyList
(
policyDto
);
...
...
@@ -390,7 +390,7 @@ public class InsureContorll {
}
@GetMapping
(
value
=
"/policyDetail"
)
@ApiOperation
(
value
=
"5.保单信息"
,
httpMethod
=
"G
et
"
,
notes
=
"保单信息"
)
@ApiOperation
(
value
=
"5.保单信息"
,
httpMethod
=
"G
ET
"
,
notes
=
"保单信息"
)
public
Result
<
Object
>
policyDetail
(
@RequestParam
(
"policyId"
)
Integer
policyId
)
{
// Map map = Maps.newHashMap();
PolicyDto
policyDto
=
insurePolicyMapper
.
getPolicyDetail
(
policyId
);
...
...
@@ -408,7 +408,7 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/joinUser"
)
@ApiOperation
(
value
=
"2.增员"
,
httpMethod
=
"P
ost
"
,
notes
=
"增员"
)
@ApiOperation
(
value
=
"2.增员"
,
httpMethod
=
"P
OST
"
,
notes
=
"增员"
)
public
Result
<
Object
>
joinUser
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
...
...
@@ -539,7 +539,7 @@ public class InsureContorll {
}
@GetMapping
(
value
=
"/downPolicyFile"
)
@ApiOperation
(
value
=
"7.下载电子保单"
,
httpMethod
=
"G
et
"
,
notes
=
"下载电子保单"
)
@ApiOperation
(
value
=
"7.下载电子保单"
,
httpMethod
=
"G
ET
"
,
notes
=
"下载电子保单"
)
public
void
downPolicyFile
(
@RequestParam
(
"policyId"
)
String
policyId
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
policyId
)).
build
().
selectById
();
if
(
insurePolicy
==
null
||
StringUtils
.
isNullOrEmpty
(
insurePolicy
.
getPolicyFile
()))
{
...
...
@@ -582,7 +582,7 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/replaceUser"
)
@ApiOperation
(
value
=
"6.保全替换"
,
httpMethod
=
"P
ost
"
,
notes
=
"保全替换"
)
@ApiOperation
(
value
=
"6.保全替换"
,
httpMethod
=
"P
OST
"
,
notes
=
"保全替换"
)
public
Result
<
Object
>
replaceUser
(
@RequestBody
InsureDto
insureDto
)
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
if
(
insurePolicy
==
null
)
{
...
...
@@ -796,14 +796,14 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/policyTotal"
)
@ApiOperation
(
value
=
"11.保单统计列表"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单统计列表"
)
@ApiOperation
(
value
=
"11.保单统计列表"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
()
{
List
<
PolicyDto
>
list
=
insurePolicyMapper
.
policyTotalList
();
return
ResultUtil
.
data
(
list
);
}
@GetMapping
(
value
=
"/isInsured"
)
@ApiOperation
(
value
=
"10.企业是否已投保"
,
httpMethod
=
"P
ost
"
,
notes
=
"企业是否已投保"
)
@ApiOperation
(
value
=
"10.企业是否已投保"
,
httpMethod
=
"P
OST
"
,
notes
=
"企业是否已投保"
)
public
Result
<
Object
>
isInsured
(
@RequestParam
(
"orgCode"
)
String
orgCode
)
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getOrgCode
,
orgCode
).
eq
(
InsurePolicy:
:
getStatus
,
1
));
if
(
insurePolicy
!=
null
)
{
...
...
@@ -813,7 +813,7 @@ public class InsureContorll {
}
@GetMapping
(
value
=
"/verification"
)
@ApiOperation
(
value
=
"一键校验"
,
httpMethod
=
"P
ost
"
,
notes
=
"一键校验"
)
@ApiOperation
(
value
=
"一键校验"
,
httpMethod
=
"P
OST
"
,
notes
=
"一键校验"
)
public
Result
<
Object
>
verification
()
{
/*校验投保*/
List
<
InsurePolicy
>
insurePolicies
=
InsurePolicy
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getStatus
,
2
));
...
...
@@ -860,7 +860,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/policyTotalList"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单统计列表"
)
@ApiOperation
(
value
=
"11.保单统计列表 -- 8小时端"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单统计列表"
)
public
Result
<
Object
>
policyTotal
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
List
<
InsureUserDto
>
list
=
insurePolicyMapper
.
selectPlansListByorgCode
(
userBean
.
getOrgCode
());
return
ResultUtil
.
data
(
list
);
...
...
@@ -868,7 +868,7 @@ public class InsureContorll {
@PostMapping
(
value
=
"/importUser"
)
@ApiOperation
(
value
=
"导入用户--运营后台"
,
httpMethod
=
"
post
"
,
notes
=
"导入用户"
)
@ApiOperation
(
value
=
"导入用户--运营后台"
,
httpMethod
=
"
POST
"
,
notes
=
"导入用户"
)
public
Result
<
Object
>
importUser
(
@RequestParam
(
"orgCode"
)
String
orgCode
,
@RequestParam
(
"file"
)
MultipartFile
file
)
{
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
QyzxEntInfoM
company
=
QyzxEntInfoM
.
builder
().
id
(
Integer
.
valueOf
(
orgCode
)).
build
().
selectById
();
...
...
@@ -962,7 +962,7 @@ public class InsureContorll {
}
@PostMapping
(
value
=
"/importPolicy"
)
@ApiOperation
(
value
=
"导入保单--运营后台"
,
httpMethod
=
"
post
"
,
notes
=
"导入用户"
)
@ApiOperation
(
value
=
"导入保单--运营后台"
,
httpMethod
=
"
POST
"
,
notes
=
"导入用户"
)
public
Result
<
Object
>
importPolicy
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
SimpleDateFormat
dtf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
...
...
src/main/java/cn/timer/api/controller/insure/InsureLogController.java
View file @
bc3319a7
...
...
@@ -55,7 +55,7 @@ public class InsureLogController {
private
InsureLogMapper
insureLogMapper
;
@GetMapping
(
value
=
"/logList"
)
@ApiOperation
(
value
=
"12.日志列表"
,
httpMethod
=
"G
et
"
,
notes
=
"日志列表"
)
@ApiOperation
(
value
=
"12.日志列表"
,
httpMethod
=
"G
ET
"
,
notes
=
"日志列表"
)
public
Result
<
Object
>
logList
(
@RequestParam
(
"policyId"
)
String
policyId
)
{
List
<
InsureLog
>
list
=
insureLogMapper
.
selectListById
(
policyId
);
if
(
list
.
size
()
>
0
)
{
...
...
@@ -65,7 +65,7 @@ public class InsureLogController {
}
@GetMapping
(
value
=
"/downUserExcel"
)
@ApiOperation
(
value
=
"12.人员清单"
,
httpMethod
=
"G
et
"
,
notes
=
"人员清单"
)
@ApiOperation
(
value
=
"12.人员清单"
,
httpMethod
=
"G
ET
"
,
notes
=
"人员清单"
)
public
void
downUserExcel
(
@RequestParam
(
"logId"
)
String
logId
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
InsureLog
insureLog
=
InsureLog
.
builder
().
id
(
Integer
.
parseInt
(
logId
)).
build
().
selectById
();
if
(
insureLog
==
null
||
StringUtils
.
isNullOrEmpty
(
insureLog
.
getFileUrl
()))
{
...
...
@@ -109,7 +109,7 @@ public class InsureLogController {
}
@PostMapping
(
value
=
"/insureLogList"
)
@ApiOperation
(
value
=
"日志列表--8小时端"
,
httpMethod
=
"G
et
"
,
notes
=
"日志列表"
)
@ApiOperation
(
value
=
"日志列表--8小时端"
,
httpMethod
=
"G
ET
"
,
notes
=
"日志列表"
)
public
Result
<
Object
>
insureLogList
(
@CurrentUser
UserBean
userBean
,
@RequestBody
Page
page
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyLogDto
>
list
=
insureLogMapper
.
selectLogListByOrgCode
(
userBean
.
getOrgCode
(),
page
);
...
...
src/main/java/cn/timer/api/controller/insure/InsureProductController.java
View file @
bc3319a7
...
...
@@ -34,7 +34,7 @@ public class InsureProductController{
private
InsureProductMapper
insureProductMapper
;
@GetMapping
(
value
=
"/productList"
)
@ApiOperation
(
value
=
"12.产品列表"
,
httpMethod
=
"G
et
"
,
notes
=
"产品列表"
)
@ApiOperation
(
value
=
"12.产品列表"
,
httpMethod
=
"G
ET
"
,
notes
=
"产品列表"
)
public
Result
<
Object
>
productList
()
{
List
<
InsureProduct
>
productList
=
InsureProduct
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
InsureProduct
>().
lambda
().
eq
(
InsureProduct:
:
getIsDel
,
0
));
if
(
productList
.
size
()>
0
)
{
...
...
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
View file @
bc3319a7
...
...
@@ -43,7 +43,7 @@ public class InsureUserController{
private
InsureUserMapper
insureUserMapper
;
@PostMapping
(
value
=
"/policyList"
)
@ApiOperation
(
value
=
"3.保单列表--运营后台"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单列表"
)
@ApiOperation
(
value
=
"3.保单列表--运营后台"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单列表"
)
public
Result
<
Object
>
policyList
(
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
PolicyDto
>
list
=
insureUserMapper
.
selectPolicyList
(
policyDto
);
...
...
@@ -52,14 +52,14 @@ public class InsureUserController{
return
ResultUtil
.
data
(
map
);
}
@GetMapping
(
value
=
"/userDetial"
)
@ApiOperation
(
value
=
"被保人详情"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单列表"
)
@ApiOperation
(
value
=
"被保人详情"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单列表"
)
public
Result
<
Object
>
userDetial
(
@RequestParam
(
"userId"
)
String
userId
)
{
InsureUser
user
=
InsureUser
.
builder
().
id
(
Integer
.
parseInt
(
userId
)).
build
().
selectById
();
return
ResultUtil
.
data
(
user
);
}
@PostMapping
(
value
=
"/userPolicyList"
)
@ApiOperation
(
value
=
"3.保单列表--8小时端"
,
httpMethod
=
"P
ost
"
,
notes
=
"保单列表"
)
@ApiOperation
(
value
=
"3.保单列表--8小时端"
,
httpMethod
=
"P
OST
"
,
notes
=
"保单列表"
)
public
Result
<
Object
>
userPolicyList
(
@CurrentUser
UserBean
userBean
,
@RequestBody
PolicyDto
policyDto
)
{
Map
map
=
Maps
.
newHashMap
();
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsurePolicy
>().
lambda
().
eq
(
InsurePolicy:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
InsurePolicy:
:
getStatus
,
1
));
...
...
@@ -73,7 +73,7 @@ public class InsureUserController{
return
ResultUtil
.
data
(
map
);
}
@PostMapping
(
value
=
"/getPolicyUserList"
)
@ApiOperation
(
value
=
"获取选中用户方案信息"
,
httpMethod
=
"P
ost
"
,
notes
=
"获取选中用户方案信息"
)
@ApiOperation
(
value
=
"获取选中用户方案信息"
,
httpMethod
=
"P
OST
"
,
notes
=
"获取选中用户方案信息"
)
public
Result
<
Object
>
getPolicyUserList
(
@RequestBody
InsureDto
dto
){
List
<
InsureUserDto
>
userList
=
insureUserMapper
.
selectPlansListByIds
(
dto
.
getOldIds
());
if
(
userList
.
size
()<=
0
){
...
...
@@ -82,7 +82,7 @@ public class InsureUserController{
return
ResultUtil
.
data
(
userList
);
}
@GetMapping
(
value
=
"/getPolicyPlansList"
)
@ApiOperation
(
value
=
"获取方案列表"
,
httpMethod
=
"G
et
"
,
notes
=
"获取选中用户方案信息"
)
@ApiOperation
(
value
=
"获取方案列表"
,
httpMethod
=
"G
ET
"
,
notes
=
"获取选中用户方案信息"
)
public
Result
<
Object
>
getPolicyUserList
(
@RequestParam
(
"policyId"
)
String
policyId
){
List
<
InsureUserDto
>
userList
=
insureUserMapper
.
selectPlansListById
(
policyId
);
if
(
userList
.
size
()<=
0
){
...
...
src/main/java/cn/timer/api/controller/superadmin/SuperLoginController.java
View file @
bc3319a7
...
...
@@ -34,7 +34,7 @@ public class SuperLoginController {
@Autowired
private
HttpSession
session
;
@PostMapping
(
value
=
"/adminLogin"
)
@ApiOperation
(
value
=
"运营后台登录"
,
httpMethod
=
"P
ost
"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"运营后台登录"
,
httpMethod
=
"P
OST
"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
adminLogin
(
@RequestBody
EntRegisterDto
entRegisterDto
,
HttpServletRequest
request
){
String
ip
=
UserIp
.
getIpAddr
(
request
);
AdminAccount
adminAccount
=
AdminAccount
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
AdminAccount
>().
lambda
()
...
...
@@ -50,7 +50,7 @@ public class SuperLoginController {
return
ResultUtil
.
data
(
adminAccount
);
};
@PostMapping
(
value
=
"/adminOutLogin"
)
@ApiOperation
(
value
=
"运营后台退出"
,
httpMethod
=
"P
ost
"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"运营后台退出"
,
httpMethod
=
"P
OST
"
,
notes
=
"接口发布说明"
)
public
Result
<
String
>
adminOutLogin
(
HttpServletRequest
request
){
session
=
request
.
getSession
();
session
.
removeAttribute
(
"ai"
);
...
...
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