Commit c5137b46 authored by fangxinjiang's avatar fangxinjiang

见费出单逻辑-fxj

parent 71b92c4a
...@@ -9727,6 +9727,11 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -9727,6 +9727,11 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
updateWrapper.eq(TEmployeeInsurancePre::getInsurancesId,detail.getId()); updateWrapper.eq(TEmployeeInsurancePre::getInsurancesId,detail.getId());
updateWrapper.set(TEmployeeInsurancePre::getProcessStatus,CommonConstants.ONE_STRING); updateWrapper.set(TEmployeeInsurancePre::getProcessStatus,CommonConstants.ONE_STRING);
employeeInsurancePreMapper.update(null,updateWrapper); employeeInsurancePreMapper.update(null,updateWrapper);
LambdaUpdateWrapper<TInsurancePreRenewDetail> updateNewWrapper = new LambdaUpdateWrapper<>();
updateNewWrapper.eq(TInsurancePreRenewDetail::getInsurancesIdNew,detail.getId());
updateNewWrapper.set(TInsurancePreRenewDetail::getProcessStatus,CommonConstants.ONE_STRING);
tInsurancePreRenewDetailMapper.update(null,updateNewWrapper);
} catch (Exception e) { } catch (Exception e) {
return R.failed("撤回异常:"+e.getMessage()); return R.failed("撤回异常:"+e.getMessage());
} }
......
...@@ -294,6 +294,7 @@ ...@@ -294,6 +294,7 @@
WHEN a.process_status ='4' THEN "投保中" WHEN a.process_status ='4' THEN "投保中"
WHEN a.process_status ='5' THEN "投保退回" WHEN a.process_status ='5' THEN "投保退回"
WHEN a.process_status ='6' THEN "已完成" WHEN a.process_status ='6' THEN "已完成"
WHEN a.process_status ='7' THEN "待缴费"
ELSE a.process_status END as process_status, ELSE a.process_status END as process_status,
a.customer_username, a.customer_username,
concat(DATE_FORMAT(a.policy_start,'%Y-%m-%d'),'-',DATE_FORMAT(a.policy_end,'%Y-%m-%d')) as policy_start_end, concat(DATE_FORMAT(a.policy_start,'%Y-%m-%d'),'-',DATE_FORMAT(a.policy_end,'%Y-%m-%d')) as policy_start_end,
......
...@@ -426,7 +426,7 @@ ...@@ -426,7 +426,7 @@
,'临期' isOverdue,a.HAVE_WORK_DAY,'否' EXPIRE_IGNORE_FLAG,a.CREATE_NAME,a.ALERTER ,'临期' isOverdue,a.HAVE_WORK_DAY,'否' EXPIRE_IGNORE_FLAG,a.CREATE_NAME,a.ALERTER
,DATE_FORMAT(b.expected_collection_time,'%Y-%m-%d %H:%i') expected_collection_time ,DATE_FORMAT(b.expected_collection_time,'%Y-%m-%d %H:%i') expected_collection_time
,case b.process_status when '0' then '待确认' when '1' then '待派单' when '2' then '派单失败' ,case b.process_status when '0' then '待确认' when '1' then '待派单' when '2' then '派单失败'
when '3' then '待投保' when '4' then '投保中' when '5' then '投保退回' when '6' then '已投保' else '-' end process_status when '3' then '待投保' when '4' then '投保中' when '5' then '投保退回' when '6' then '已投保' when '7' then '待缴费' else '-' end process_status
,b.CUSTOMER_USERNAME ,b.CUSTOMER_USERNAME
FROM t_insurance_alert a FROM t_insurance_alert a
JOIN t_insurance_pre_renew_detail b ON a.INSURANCES_PRE_RENEW_DETAIL_ID = b.ID JOIN t_insurance_pre_renew_detail b ON a.INSURANCES_PRE_RENEW_DETAIL_ID = b.ID
......
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