Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
35a8c9bb
Commit
35a8c9bb
authored
Mar 20, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cas修改
parent
f87b4e7f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
67 deletions
+0
-67
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+0
-14
TInsuranceDetailService.java
...insurances/service/insurance/TInsuranceDetailService.java
+0
-2
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+0
-51
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
35a8c9bb
...
...
@@ -747,18 +747,4 @@ public class TInsuranceDetailController {
public
void
updateSettleStatus
()
{
tInsuranceDetailService
.
updateSettleStatus
();
}
/**
* 每日定时刷新商险到期数据
*
* @author licancan
* @param
* @return void
*/
@SysLog
(
"每日定时刷新商险到期数据"
)
@Inner
@PostMapping
(
"/inner/pushActualPremium"
)
public
void
pushActualPremium
()
{
tInsuranceDetailService
.
pushActualPremium
();
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TInsuranceDetailService.java
View file @
35a8c9bb
...
...
@@ -525,6 +525,4 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
void
exportInsurancesWarn
(
InsuranceSearchVo
vo
,
HttpServletResponse
response
,
List
<
String
>
exportFields
,
String
idstr
);
R
<
Object
>
expireRemark
(
TBusinessInsuranceVo
vo
);
void
pushActualPremium
();
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
35a8c9bb
...
...
@@ -7715,57 +7715,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
return
baseMapper
.
noPageDiy
(
searchVo
,
listSelectVO
);
}
/*
* 获取当前保单的结算状态
*
* @author zhaji
* @param
* @return {@link String}
*/
@Override
public
void
pushActualPremium
(){
List
<
TInsuranceDetail
>
list
=
baseMapper
.
selectPushList
();
for
(
TInsuranceDetail
detail:
list
){
//单独结算
if
(
StringUtils
.
isNotBlank
(
detail
.
getDefaultSettleId
())
&&
detail
.
getSettleType
()
==
CommonConstants
.
ONE_INT
)
{
TInsuranceSettle
settle
=
tInsuranceSettleService
.
getById
(
detail
.
getDefaultSettleId
());
String
s
=
pushEstimate
(
detail
,
CommonConstants
.
TWO_INT
);
//如果推送成功则更改推送状态
if
(
StringUtils
.
isNotBlank
(
s
)
&&
Common
.
isNotNull
(
settle
))
{
settle
.
setActualPushTime
(
LocalDateTime
.
now
());
settle
.
setIsActualPush
(
CommonConstants
.
ONE_INT
);
tInsuranceSettleService
.
updateById
(
settle
);
}
}
if
(
StringUtils
.
isNotBlank
(
detail
.
getDefaultSettleId
())
&&
detail
.
getSettleType
()
==
CommonConstants
.
ZERO_INT
)
{
TInsuranceSettle
settle
=
tInsuranceSettleService
.
getById
(
detail
.
getDefaultSettleId
());
TInsuranceDetail
t
=
new
TInsuranceDetail
();
BeanUtils
.
copyProperties
(
detail
,
t
);
if
(
Common
.
isEmpty
(
detail
.
getEstimatePremium
()))
{
detail
.
setEstimatePremium
(
detail
.
getActualPremium
());
}
String
s1
=
pushEstimate
(
detail
,
CommonConstants
.
ONE_INT
);
//如果推送成功则更改推送状态
if
(
StringUtils
.
isNotBlank
(
s1
)
&&
Common
.
isNotNull
(
settle
))
{
settle
.
setIsEstimatePush
(
CommonConstants
.
ONE_INT
);
settle
.
setEstimatePushTime
(
LocalDateTime
.
now
());
tInsuranceSettleService
.
updateById
(
settle
);
}
if
(
Common
.
isEmpty
(
t
.
getEstimatePremium
()))
{
t
.
setEstimatePremium
(
t
.
getActualPremium
());
}
String
s2
=
pushEstimate
(
t
,
CommonConstants
.
TWO_INT
);
//如果推送成功则更改推送状态
if
(
StringUtils
.
isNotBlank
(
s2
)
&&
Common
.
isNotNull
(
settle
))
{
settle
.
setIsActualPush
(
CommonConstants
.
ONE_INT
);
settle
.
setActualPushTime
(
LocalDateTime
.
now
());
tInsuranceSettleService
.
updateById
(
settle
);
}
}
}
}
private
int
noPageCountDiy
(
InsuranceSearchVo
searchVo
)
{
List
<
TSettleDomainSelectVo
>
listSelectVO
=
null
;
listSelectVO
=
getExportCondition
(
searchVo
,
listSelectVO
);
...
...
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