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
5e82cc13
Commit
5e82cc13
authored
Oct 29, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单审核导出问题修改
parent
cc01cc0a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+13
-0
TInsuranceDetailService.java
...insurances/service/insurance/TInsuranceDetailService.java
+2
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+24
-0
UpdateOverdueTask.java
...com/yifu/cloud/plus/v1/job/compont/UpdateOverdueTask.java
+13
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
5e82cc13
...
@@ -623,5 +623,18 @@ public class TInsuranceDetailController {
...
@@ -623,5 +623,18 @@ public class TInsuranceDetailController {
return
tInsuranceDetailService
.
getOrderInsuredListPage
(
page
,
param
);
return
tInsuranceDetailService
.
getOrderInsuredListPage
(
page
,
param
);
}
}
/**
* 每日定时刷新商险到期数据
*
* @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 @
5e82cc13
...
@@ -396,4 +396,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -396,4 +396,6 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
R
getOrderInsuredListPage
(
Page
<
InsuredOrderListVo
>
page
,
InsuredOrderParam
param
);
R
getOrderInsuredListPage
(
Page
<
InsuredOrderListVo
>
page
,
InsuredOrderParam
param
);
SettleVo
getInsuranceDetailSettleStatus
(
String
detailId
,
String
defaultSettleId
);
SettleVo
getInsuranceDetailSettleStatus
(
String
detailId
,
String
defaultSettleId
);
void
pushActualPremium
();
}
}
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
5e82cc13
...
@@ -1772,6 +1772,30 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1772,6 +1772,30 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
return
R
.
ok
(
listResult
,
InsurancesConstants
.
OPERATE_SUCCESS
);
return
R
.
ok
(
listResult
,
InsurancesConstants
.
OPERATE_SUCCESS
);
}
}
/*
* 获取当前保单的结算状态
*
* @author zhaji
* @param
* @return {@link String}
*/
@Override
public
void
pushActualPremium
(){
List
<
TInsuranceDetail
>
list
=
baseMapper
.
selectList
(
Wrappers
.<
TInsuranceDetail
>
query
().
lambda
()
.
isNotNull
(
TInsuranceDetail:
:
getDefaultSettleId
)
.
isNotNull
(
TInsuranceDetail:
:
getActualPremium
));
for
(
TInsuranceDetail
detail:
list
){
TInsuranceSettle
settle
=
tInsuranceSettleService
.
getById
(
detail
.
getDefaultSettleId
());
String
s
=
pushEstimate
(
detail
,
CommonConstants
.
TWO_INT
);
//如果推送成功则更改推送状态
if
(
StringUtils
.
isNotBlank
(
s
))
{
settle
.
setActualPushTime
(
LocalDateTime
.
now
());
settle
.
setIsActualPush
(
CommonConstants
.
ONE_INT
);
tInsuranceSettleService
.
updateById
(
settle
);
}
}
}
/**
/**
* 商险新增校验
* 商险新增校验
*
*
...
...
yifu-job/yifu-job-api/src/main/java/com/yifu/cloud/plus/v1/job/compont/UpdateOverdueTask.java
View file @
5e82cc13
...
@@ -33,4 +33,17 @@ public class UpdateOverdueTask {
...
@@ -33,4 +33,17 @@ public class UpdateOverdueTask {
HttpDaprUtil
.
invokeMethodPost
(
daprInsurancesProperties
.
getAppUrl
(),
daprInsurancesProperties
.
getAppId
(),
"/insuranceDetail/inner/updateOverdueByTask"
,
""
,
Void
.
class
,
SecurityConstants
.
FROM_IN
);
HttpDaprUtil
.
invokeMethodPost
(
daprInsurancesProperties
.
getAppUrl
(),
daprInsurancesProperties
.
getAppId
(),
"/insuranceDetail/inner/updateOverdueByTask"
,
""
,
Void
.
class
,
SecurityConstants
.
FROM_IN
);
log
.
info
(
"------------更新商险到期-定时任务结束------------"
);
log
.
info
(
"------------更新商险到期-定时任务结束------------"
);
}
}
/**
* 更新商险到期定时任务
*
* @author licancan
* @param
* @return void
*/
public
void
pushInsEkp
()
throws
Exception
{
log
.
info
(
"-------------推送商险待结算数据-定时任务开始------------"
);
HttpDaprUtil
.
invokeMethodPost
(
daprInsurancesProperties
.
getAppUrl
(),
daprInsurancesProperties
.
getAppId
(),
"/insuranceDetail/inner/pushActualPremium"
,
""
,
Void
.
class
,
SecurityConstants
.
FROM_IN
);
log
.
info
(
"------------推送商险待结算数据-定时任务结束------------"
);
}
}
}
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