Commit 35a8c9bb authored by huyuchen's avatar huyuchen

cas修改

parent f87b4e7f
...@@ -747,18 +747,4 @@ public class TInsuranceDetailController { ...@@ -747,18 +747,4 @@ public class TInsuranceDetailController {
public void updateSettleStatus() { public void updateSettleStatus() {
tInsuranceDetailService.updateSettleStatus(); tInsuranceDetailService.updateSettleStatus();
} }
/**
* 每日定时刷新商险到期数据
*
* @author licancan
* @param
* @return void
*/
@SysLog("每日定时刷新商险到期数据")
@Inner
@PostMapping("/inner/pushActualPremium")
public void pushActualPremium() {
tInsuranceDetailService.pushActualPremium();
}
} }
...@@ -525,6 +525,4 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> { ...@@ -525,6 +525,4 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
void exportInsurancesWarn(InsuranceSearchVo vo, HttpServletResponse response, List<String> exportFields, String idstr); void exportInsurancesWarn(InsuranceSearchVo vo, HttpServletResponse response, List<String> exportFields, String idstr);
R<Object> expireRemark(TBusinessInsuranceVo vo); R<Object> expireRemark(TBusinessInsuranceVo vo);
void pushActualPremium ();
} }
...@@ -7715,57 +7715,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -7715,57 +7715,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
return baseMapper.noPageDiy(searchVo,listSelectVO); 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) { private int noPageCountDiy(InsuranceSearchVo searchVo) {
List<TSettleDomainSelectVo> listSelectVO =null; List<TSettleDomainSelectVo> listSelectVO =null;
listSelectVO = getExportCondition(searchVo, listSelectVO); listSelectVO = getExportCondition(searchVo, listSelectVO);
......
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