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
503f83c1
Commit
503f83c1
authored
May 27, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
保单增员支付
parent
d07cf5c2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
40 deletions
+32
-40
src/main/java/cn/timer/api/bean/insure/InsurePay.java
+2
-0
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
+1
-0
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
+0
-0
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
+8
-33
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
+3
-3
src/main/java/cn/timer/api/dao/qyzx/QyzxEntInfoMMapper.java
+2
-2
src/main/java/cn/timer/api/dto/qyzx/EntInfoDto.java
+2
-0
src/main/resources/mapping/insure/InsurePayMapper.xml
+1
-0
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
+13
-2
No files found.
src/main/java/cn/timer/api/bean/insure/InsurePay.java
View file @
503f83c1
...
...
@@ -73,6 +73,8 @@ public class InsurePay extends Model<InsurePay> {
private
String
serialNumber
;
private
String
payUrl
;
/**
* 设置:id
*/
...
...
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
View file @
503f83c1
...
...
@@ -40,6 +40,7 @@ public class WebSecurityConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"/callBack/policy/payStatus"
)
.
excludePathPatterns
(
"/callBack/policy/payCallBack"
)
.
excludePathPatterns
(
"/callBack/policy/issueCallback"
)
.
excludePathPatterns
(
"/callBack/policy/addpPayCallBack"
)
.
excludePathPatterns
(
"/superLogin/**"
)
.
excludePathPatterns
(
"/actuator/*"
)
.
excludePathPatterns
(
"/doc*"
)
...
...
src/main/java/cn/timer/api/controller/insure/CallBackContorll.java
View file @
503f83c1
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/insure/InsureContorll.java
View file @
503f83c1
...
...
@@ -474,6 +474,7 @@ public class InsureContorll {
public
Result
<
Object
>
joinUser
(
@RequestBody
InsureDto
insureDto
)
throws
ParseException
{
InsurePolicy
insurePolicy
=
InsurePolicy
.
builder
().
id
(
Integer
.
parseInt
(
insureDto
.
getId
())).
build
().
selectById
();
InsureProduct
insureProduct
=
InsureProduct
.
builder
().
id
(
insurePolicy
.
getProductId
()).
build
().
selectById
();
if
(
insurePolicy
==
null
)
{
return
ResultUtil
.
error
(
"保单不存在"
);
}
...
...
@@ -489,6 +490,9 @@ public class InsureContorll {
bodyMap
.
put
(
"from_source"
,
"API"
);
bodyMap
.
put
(
"import_review_callback"
,
""
);
bodyMap
.
put
(
"import_callback"
,
base_api_url
+
"/callBack/policy/CallBack"
);
if
(
insureProduct
.
getPayType
()==
1
)
{
bodyMap
.
put
(
"import_review_callback"
,
base_api_url
+
"/callBack/policy/addpPayCallBack"
);
}
bodyMap
.
put
(
"third_uuid"
,
"IS_"
+
insurePolicy
.
getOrgCode
()
+
"_"
+
dtf2
.
format
(
now
));
String
responData
=
HttpUtils
.
sendPost
(
batchUrl
,
setParams
(
JSONObject
.
toJSONString
(
bodyMap
),
appidq
,
secretq
),
bodyMap
);
Map
<
String
,
Object
>
dataMap
=
JSONObject
.
parseObject
(
responData
);
...
...
@@ -536,33 +540,7 @@ public class InsureContorll {
InsureLog
.
builder
().
requestParam
(
JSONObject
.
toJSONString
(
setParams
(
JSONObject
.
toJSONString
(
bodyMap
),
appid
,
secret
))).
type
(
2
)
.
requestData
(
JSONObject
.
toJSONString
(
bodyMap
)).
createTime
(
new
Date
()).
requestType
(
1
).
returnBody
(
responData
).
requestPath
(
batchUrl
)
.
returnCode
(
dataMap
.
get
(
"errcode"
).
toString
()).
returnMsg
(
dataMap
.
get
(
"errmsg"
).
toString
()).
policyId
(
insurePolicy
.
getId
()).
fileUrl
(
url
).
build
().
insert
();
/*如果是在线支付的话*/
InsureProduct
insureProduct
=
InsureProduct
.
builder
().
id
(
insurePolicy
.
getProductId
()).
build
().
selectById
();
if
(
insureProduct
.
getPayType
()==
1
){
log
.
info
(
"当前订单为见费出单---进入支付页面"
);
Map
payMap
=
Maps
.
newHashMap
();
payMap
.
put
(
"order_import_uuid"
,
orderImportInfo
.
get
(
"uuid"
));
String
returnPay
=
HttpUtils
.
sendPost
(
batchToPayUrl
,
setParams
(
JSONObject
.
toJSONString
(
payMap
),
appidq
,
secretq
),
payMap
);
Map
<
String
,
Object
>
payDataMap
=
JSONObject
.
parseObject
(
returnPay
);
Map
<
String
,
Object
>
payData
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
payDataMap
.
get
(
"data"
)));
Map
<
String
,
Object
>
importPayInfo
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
payData
.
get
(
"import_pay_info"
)));
InsurePay
insurePay
=
InsurePay
.
builder
()
.
payStatus
(
Integer
.
parseInt
(
importPayInfo
.
get
(
"pay_status"
).
toString
())).
policyId
(
insurePolicy
.
getId
())
.
amount
(
Double
.
parseDouble
(
importPayInfo
.
get
(
"pay_money"
).
toString
()))
.
payType
(
importPayInfo
.
get
(
"pay_type"
).
toString
())
.
serialNumber
(
importPayInfo
.
get
(
"order_import_uuid"
).
toString
())
.
paySerialNo
(
importPayInfo
.
get
(
"pay_serial_no"
).
toString
()).
build
();
insurePay
.
insert
();
insurePolicy
.
setPayId
(
insurePay
.
getId
());
insurePolicy
.
setStatus
(
"4"
);
/*支付中状态*/
insurePolicy
.
updateById
();
Map
returnMap
=
Maps
.
newHashMap
();
returnMap
.
put
(
"url"
,
importPayInfo
.
get
(
"pay_url"
).
toString
()+
"&jump_url="
+
base_api_url
+
"/callBack/policy/payStatus?policyId="
+
insurePolicy
.
getId
());
returnMap
.
put
(
"payId"
,
insurePay
.
getId
());
return
ResultUtil
.
data
(
returnMap
);
}
else
{
return
ResultUtil
.
data
(
"核保成功,等待系统更新"
);
}
return
ResultUtil
.
success
(
"核保中,等待系统更新"
);
}
}
InsureLog
.
builder
().
requestParam
(
JSONObject
.
toJSONString
(
setParams
(
JSONObject
.
toJSONString
(
bodyMap
),
appid
,
secret
))).
type
(
2
)
...
...
@@ -1511,12 +1489,9 @@ public class InsureContorll {
Map
<
String
,
Object
>
payDataMap
=
JSONObject
.
parseObject
(
returnPay
);
Map
<
String
,
Object
>
payData
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
payDataMap
.
get
(
"data"
)));
Map
<
String
,
Object
>
importPayInfo
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
payData
.
get
(
"import_pay_info"
)));
if
(!
insurePay
.
getPaySerialNo
().
equals
(
importPayInfo
.
get
(
"pay_serial_no"
).
toString
())&&!
insurePay
.
getSerialNumber
().
equals
(
importPayInfo
.
get
(
"order_import_uuid"
).
toString
())){
insurePay
.
setPaySerialNo
(
importPayInfo
.
get
(
"pay_serial_no"
).
toString
());
insurePay
.
setSerialNumber
(
importPayInfo
.
get
(
"order_import_uuid"
).
toString
());
insurePay
.
updateById
();
}
return
ResultUtil
.
data
(
importPayInfo
.
get
(
"pay_url"
).
toString
());
insurePay
.
setPaySerialNo
(
importPayInfo
.
get
(
"pay_serial_no"
).
toString
());
insurePay
.
updateById
();
return
ResultUtil
.
data
(
importPayInfo
.
get
(
"pay_url"
).
toString
()+
"jump_url="
+
base_api_url
+
"/callBack/policy/payStatus?policyId="
+
insurePolicy
.
getId
());
}
// String data = HttpUtils.sendGet(setParams())
...
...
src/main/java/cn/timer/api/controller/qyzx/QyzxController.java
View file @
503f83c1
...
...
@@ -657,10 +657,10 @@ public class QyzxController {
*/
@PostMapping
(
value
=
"/companyAdminList"
)
@ApiOperation
(
value
=
"运营后台---企业信息列表"
,
httpMethod
=
"POST"
,
notes
=
""
)
public
Result
<
Object
>
companyAdminList
(
@RequestBody
cn
.
timer
.
api
.
utils
.
Page
page
)
{
public
Result
<
Object
>
companyAdminList
(
@RequestBody
EntInfoDto
entInfoDto
)
{
Map
map
=
Maps
.
newHashMap
();
List
<
EntInfoDto
>
list
=
Optional
.
ofNullable
(
qyzxEntInfoMMapper
.
companyAdminList
(
page
)).
orElse
(
Lists
.
newArrayList
());
Integer
count
=
qyzxEntInfoMMapper
.
companyAdminCount
();
List
<
EntInfoDto
>
list
=
Optional
.
ofNullable
(
qyzxEntInfoMMapper
.
companyAdminList
(
entInfoDto
)).
orElse
(
Lists
.
newArrayList
());
Integer
count
=
qyzxEntInfoMMapper
.
companyAdminCount
(
entInfoDto
);
map
.
put
(
"list"
,
list
);
map
.
put
(
"count"
,
count
);
return
ResultUtil
.
data
(
map
);
...
...
src/main/java/cn/timer/api/dao/qyzx/QyzxEntInfoMMapper.java
View file @
503f83c1
...
...
@@ -18,9 +18,9 @@ import java.util.Map;
*/
@Repository
public
interface
QyzxEntInfoMMapper
extends
BaseMapper
<
QyzxEntInfoM
>
{
public
List
<
EntInfoDto
>
companyAdminList
(
@Param
(
"pa
ge"
)
Page
page
);
public
List
<
EntInfoDto
>
companyAdminList
(
@Param
(
"pa
ram"
)
EntInfoDto
entInfoDto
);
public
Integer
companyAdminCount
();
public
Integer
companyAdminCount
(
@Param
(
"param"
)
EntInfoDto
entInfoDto
);
public
List
<
Map
<
String
,
String
>>
getCompanyList
();
...
...
src/main/java/cn/timer/api/dto/qyzx/EntInfoDto.java
View file @
503f83c1
package
cn
.
timer
.
api
.
dto
.
qyzx
;
import
cn.timer.api.utils.Page
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -26,4 +27,5 @@ public class EntInfoDto {
private
String
endTime
;
private
Integer
totlaSpmk
;
private
Integer
totlaCc
;
private
Page
page
;
}
src/main/resources/mapping/insure/InsurePayMapper.xml
View file @
503f83c1
...
...
@@ -14,6 +14,7 @@
<result
property=
"payType"
column=
"pay_type"
/>
<result
property=
"policyId"
column=
"policy_id"
/>
<result
property=
"serialNumber"
column=
"serial_number"
/>
<result
property=
"payUrl"
column=
"pay_url"
/>
</resultMap>
...
...
src/main/resources/mapping/qyzx/QyzxEntInfoMMapper.xml
View file @
503f83c1
...
...
@@ -217,10 +217,21 @@
LEFT JOIN yggl_main_emp yme ON yme.org_code = qeim.id
LEFT JOIN ( SELECT sas.org_code AS oid, count( sas.id ) AS totlaSpmk FROM spmk_approve_summary sas GROUP BY sas.org_code ) AS a ON a.oid = qeim.id
LEFT JOIN ( SELECT cc.organization_id AS oid, count( cc.id ) AS totlaCc FROM cms_content cc GROUP BY cc.organization_id ) AS b ON b.oid = qeim.id
<where>
<if
test=
"param.name != null and param.name !=''"
>
and qeim.NAME like CONCAT('%',#{name},'%')
</if>
<if
test=
"param.linkMan != null and param.linkMan !=''"
>
and qeim.link_man like CONCAT('%',#{linkMan},'%')
</if>
<if
test=
"param.linkManPhone != null and param.linkManPhone !=''"
>
and qeim.phone like CONCAT('%',#{linkManPhone},'%')
</if>
</where>
GROUP BY
qeim.id
<if
test=
"pa
ge.offset != null and
page.totalPage !=null"
>
limit #{pa
ge.offset},#{
page.totalPage}
<if
test=
"pa
ram.page.offset != null and param.
page.totalPage !=null"
>
limit #{pa
ram.page.offset},#{param.
page.totalPage}
</if>
</select>
...
...
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