|
|
@ -388,7 +388,7 @@ public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClea |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
|
public LoanVehClearanceVehInit initVehListBySaleVehSid(String saleVehSid){ |
|
|
|
public LoanVehClearanceVehInit initVehListBySaleVehSid(String saleVehSid) { |
|
|
|
LoanVehClearanceVehInit loanVehClearanceVehInit = baseMapper.initVehListBySaleVehSid(saleVehSid); |
|
|
|
return loanVehClearanceVehInit; |
|
|
|
} |
|
|
@ -503,6 +503,11 @@ public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClea |
|
|
|
ResultBean<UpdateFlowFieldVo> voResultBean = flowableFeign.startProcess(bv); |
|
|
|
UpdateFlowFieldVo ufVo = voResultBean.getData(); |
|
|
|
updateFlowFiled(BeanUtil.beanToMap(ufVo)); |
|
|
|
//修改远程控制状态
|
|
|
|
List<LoanVehClearanceVehDto> loanVehClearanceVehList = dto.getLoanVehClearanceVehList(); |
|
|
|
for (LoanVehClearanceVehDto loanVehClearanceVehDto : loanVehClearanceVehList) { |
|
|
|
loanBeCollectionVehService.updateLockState(loanVehClearanceVehDto.getSaleVehSid(), "4", "1"); |
|
|
|
} |
|
|
|
//极光推送
|
|
|
|
loanVehClearanceApply = fetchBySid(businessSid); |
|
|
|
MessageFlowableQuery messageFlowableQuery = new MessageFlowableQuery(); |
|
|
@ -596,6 +601,9 @@ public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClea |
|
|
|
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|
|
|
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|
|
|
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) { |
|
|
|
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehDetailsVoList) { |
|
|
|
loanBeCollectionVehService.updateLockState(loanVehClearanceVehDetailsVo.getSaleVehSid(), "4", "3"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
//极光推送
|
|
|
|
loanVehClearanceApply = fetchBySid(businessSid); |
|
|
@ -744,6 +752,10 @@ public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClea |
|
|
|
} |
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|
|
|
updateFlowFiled(map); |
|
|
|
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList = loanVehClearanceVehService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehDetailsVoList) { |
|
|
|
loanBeCollectionVehService.updateLockState(loanVehClearanceVehDetailsVo.getSaleVehSid(), "1", "4"); |
|
|
|
} |
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
} else { |
|
|
|
if (businessTaskId.equals(query.getTaskId())) { |
|
|
@ -755,6 +767,10 @@ public class LoanVehClearanceApplyService extends MybatisBaseService<LoanVehClea |
|
|
|
} |
|
|
|
Map<String, Object> map = BeanUtil.beanToMap(resultBean.getData()); |
|
|
|
updateFlowFiled(map); |
|
|
|
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehDetailsVoList = loanVehClearanceVehService.selByMainSid(query.getBusinessSid()); |
|
|
|
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehDetailsVoList) { |
|
|
|
loanBeCollectionVehService.updateLockState(loanVehClearanceVehDetailsVo.getSaleVehSid(), "1", "4"); |
|
|
|
} |
|
|
|
return rb.success().setData(resultBean.getData()); |
|
|
|
} |
|
|
|
} |
|
|
|