|
|
|
@ -332,6 +332,22 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
|
//根据业务id以及type查询对应的记录
|
|
|
|
|
DgApplyAmountList dgApplyAmountList = dgApplyAmountListMapper.selectOne(new QueryWrapper<DgApplyAmountList>() |
|
|
|
|
.eq("business_id", businessApplication.getBusinessId()).eq("type", 1)); |
|
|
|
|
|
|
|
|
|
//草稿状态下,新增业务状态到业务状态表
|
|
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_DRAFT)){ |
|
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
|
processStatus.setBusinessId(businessApplication.getBusinessId());//业务id
|
|
|
|
|
processStatus.setBusinessStatus(1);//进行中
|
|
|
|
|
dgBusinessProcessStatusMapper.insert(processStatus); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//撤销状态下,修改业务状态
|
|
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_RESCINDED)){ |
|
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
|
processStatus.setBusinessStatus(1);//进行中
|
|
|
|
|
dgBusinessProcessStatusMapper.update(processStatus,new QueryWrapper<DgBusinessProcessStatus>() |
|
|
|
|
.eq("business_id",businessApplication.getBusinessId())); |
|
|
|
|
} |
|
|
|
|
//将业务员状态改为审核中,操作状态改为已处理
|
|
|
|
|
dgApplyAmountList.setId(dgApplyAmountList.getId()); |
|
|
|
|
dgApplyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
@ -340,10 +356,12 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
|
//同时将担保部经理状态改为审核中,操作状态改为待处理
|
|
|
|
|
DgApplyAmountList applyAmountList = dgApplyAmountListMapper.selectOne(new QueryWrapper<DgApplyAmountList>() |
|
|
|
|
.eq("business_id", businessApplication.getBusinessId()).eq("type", 2)); |
|
|
|
|
applyAmountList.setId(applyAmountList.getId()); |
|
|
|
|
applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
applyAmountList.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
|
dgApplyAmountListMapper.updateById(applyAmountList); |
|
|
|
|
if(applyAmountList != null){ |
|
|
|
|
applyAmountList.setId(applyAmountList.getId()); |
|
|
|
|
applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
applyAmountList.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
|
dgApplyAmountListMapper.updateById(applyAmountList); |
|
|
|
|
} |
|
|
|
|
//结束---------------------------------------------
|
|
|
|
|
|
|
|
|
|
//业务申请重新绑定关联人
|
|
|
|
|