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
f06b596a
Commit
f06b596a
authored
Jun 01, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
导入保单时,产品id对应返回 添加失败回滚事务
parent
84517842
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
+21
-11
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
+12
-7
src/main/java/cn/timer/api/controller/insure/InsureApplicantController.java
+6
-3
src/main/java/cn/timer/api/controller/insure/task/InsureTaskTiming.java
+2
-0
src/main/resources/mapping/insure/InsurePolicyMapper.xml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
View file @
f06b596a
...
...
@@ -95,7 +95,8 @@ public class CallBackContorll {
@PostMapping
(
value
=
"/addpPayCallBack"
)
@ApiOperation
(
value
=
"11.增员核保回调"
,
httpMethod
=
"POST"
,
notes
=
"增员核保回调"
)
private
Map
addpPayCallBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
addpPayCallBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
/*核保*/
/*如果是在线支付的话*/
Map
map
=
Maps
.
newHashMap
();
...
...
@@ -171,8 +172,8 @@ public class CallBackContorll {
@PostMapping
(
value
=
"/CallBack"
)
@ApiOperation
(
value
=
"7.保全增员申请回调"
,
httpMethod
=
"POST"
,
notes
=
"投保申请回调"
)
@
ApiOperationSupport
(
order
=
2
)
p
rivate
Map
callBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
@
Transactional
(
rollbackFor
=
Exception
.
class
)
p
ublic
Map
callBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
Map
map
=
Maps
.
newHashMap
();
map
.
put
(
"status"
,
"error"
);
if
(
StringUtils
.
isNullOrEmpty
(
pid
)
||
StringUtils
.
isNullOrEmpty
(
sign
)
&&
StringUtils
.
isNullOrEmpty
(
timestamp
))
{
...
...
@@ -269,7 +270,8 @@ public class CallBackContorll {
@GetMapping
(
value
=
"/payStatus"
)
@ApiOperation
(
value
=
"8.支付完成跳转"
,
httpMethod
=
"GET"
,
notes
=
"用于支付时跳回我们系统更新状态"
)
private
ModelAndView
callBackPayStatus
(
HttpServletRequest
request
,
@RequestParam
Integer
policyId
)
throws
IOException
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ModelAndView
callBackPayStatus
(
HttpServletRequest
request
,
@RequestParam
Integer
policyId
)
throws
IOException
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
policyId
).
build
().
selectById
();
InsurePay
insurePay
=
InsurePay
.
builder
().
id
(
insurePolicy
.
getPayId
()).
build
().
selectById
();
insurePay
.
setPayTime
(
new
Date
());
...
...
@@ -283,7 +285,8 @@ public class CallBackContorll {
@PostMapping
(
value
=
"/payCallBack"
)
@ApiOperation
(
value
=
"9.投保支付收银台回调"
,
httpMethod
=
"POST"
,
notes
=
"支付完成跳转"
)
private
Map
payCallBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
payCallBack
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
try
{
InputStream
is
=
null
;
is
=
request
.
getInputStream
();
...
...
@@ -339,7 +342,8 @@ public class CallBackContorll {
@PostMapping
(
value
=
"/issueCallback"
)
@ApiOperation
(
value
=
"10.保单出单回调"
,
httpMethod
=
"POST"
,
notes
=
"支付完成跳转"
)
private
Map
issueCallback
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
issueCallback
(
HttpServletRequest
request
,
@RequestParam
String
pid
,
@RequestParam
String
sign
,
@RequestParam
String
timestamp
)
throws
IOException
{
try
{
InputStream
is
=
null
;
is
=
request
.
getInputStream
();
...
...
@@ -394,7 +398,8 @@ public class CallBackContorll {
@PostMapping
(
value
=
"/batchPayCallback"
)
@ApiOperation
(
value
=
"增员支付回调-保司接口没启用"
,
httpMethod
=
"POST"
,
notes
=
"增员支付回调"
)
private
Map
batchPayCallback
(
HttpServletRequest
request
)
throws
IOException
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
batchPayCallback
(
HttpServletRequest
request
)
throws
IOException
{
try
{
InputStream
is
=
null
;
...
...
src/main/java/cn/timer/api/controller/insure/InsureApplicantController.java
View file @
f06b596a
...
...
@@ -50,7 +50,8 @@ public class InsureApplicantController {
@PostMapping
(
"/insureApplicationSetting"
)
@ApiOperation
(
value
=
"设置投保人"
,
httpMethod
=
"POST"
,
notes
=
"投保申请"
)
private
Result
<
Object
>
insureApplicationSetting
(
@RequestBody
InsureApplicant
params
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Result
<
Object
>
insureApplicationSetting
(
@RequestBody
InsureApplicant
params
)
{
try
{
InsureApplicant
insureApplicant
=
InsureApplicant
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsureApplicant
>().
lambda
().
eq
(
InsureApplicant:
:
getOrgCode
,
params
.
getOrgCode
()));
params
.
setId
(
insureApplicant
.
getId
());
...
...
@@ -65,7 +66,8 @@ public class InsureApplicantController {
@GetMapping
(
"/getApplicantAdmin"
)
@ApiOperation
(
value
=
"获取投保人--运营后台"
,
httpMethod
=
"GET"
,
notes
=
"获取投保人"
)
private
Result
<
Object
>
getApplicant
(
@RequestParam
(
"orgCode"
)
Integer
orgCode
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Result
<
Object
>
getApplicant
(
@RequestParam
(
"orgCode"
)
Integer
orgCode
)
{
try
{
InsureApplicant
insureApplicant
=
InsureApplicant
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsureApplicant
>().
lambda
().
eq
(
InsureApplicant:
:
getOrgCode
,
orgCode
));
if
(
insureApplicant
==
null
)
{
...
...
@@ -97,7 +99,8 @@ public class InsureApplicantController {
@GetMapping
(
"/getApplicant"
)
@ApiOperation
(
value
=
"获取投保人--8小时"
,
httpMethod
=
"GET"
,
notes
=
"获取投保人"
)
private
Result
<
Object
>
getApplicant
(
@CurrentUser
UserBean
userBean
)
{
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Result
<
Object
>
getApplicant
(
@CurrentUser
UserBean
userBean
)
{
try
{
InsureApplicant
insureApplicant
=
InsureApplicant
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
InsureApplicant
>().
lambda
().
eq
(
InsureApplicant:
:
getOrgCode
,
userBean
.
getOrgCode
()));
if
(
insureApplicant
==
null
)
{
...
...
src/main/java/cn/timer/api/controller/insure/task/InsureTaskTiming.java
View file @
f06b596a
...
...
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.text.ParseException
;
import
java.util.Date
;
...
...
@@ -37,6 +38,7 @@ public class InsureTaskTiming {
private
YgglMainEmpMapper
ygglMainEmpMapper
;
@Scheduled
(
cron
=
"0 0 0 1 * ?"
)
//每月第一天
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateInsureStatusTask
(){
try
{
...
...
src/main/resources/mapping/insure/InsurePolicyMapper.xml
View file @
f06b596a
...
...
@@ -272,7 +272,7 @@
and qy.name like CONCAT('%',#{policy.companyName},'%')
</if>
<if
test=
"policy.policyNo!=null and policy.policyNo!=''"
>
and
qy
.policy_no like CONCAT('%',#{policy.policyNo},'%')
and
ip
.policy_no like CONCAT('%',#{policy.policyNo},'%')
</if>
</where>
GROUP BY ip.id
...
...
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