Commit 5e82cc13 authored by huyuchen's avatar huyuchen

派单审核导出问题修改

parent cc01cc0a
...@@ -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();
}
} }
...@@ -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 ();
} }
...@@ -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);
}
}
}
/** /**
* 商险新增校验 * 商险新增校验
* *
......
...@@ -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("------------推送商险待结算数据-定时任务结束------------");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment