|
|
@ -100,7 +100,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
//申请贷款相关信息
|
|
|
|
//申请贷款相关信息
|
|
|
|
DgApplyAmountInfo dgApplyAmountInfo = new DgApplyAmountInfo(); |
|
|
|
DgApplyAmountInfo dgApplyAmountInfo = new DgApplyAmountInfo(); |
|
|
|
dgApplyAmountInfo.setCompanyId(businessApplication.getCompanyId()); |
|
|
|
dgApplyAmountInfo.setCompanyId(businessApplication.getCompanyId()); |
|
|
|
dgApplyAmountInfo.setPresenterId(5);//Integer.parseInt(userId)
|
|
|
|
dgApplyAmountInfo.setPresenterId(Integer.parseInt(userId)); |
|
|
|
dgApplyAmountInfo.setApplyAmount(businessApplication.getApplyAmount());//申请额度
|
|
|
|
dgApplyAmountInfo.setApplyAmount(businessApplication.getApplyAmount());//申请额度
|
|
|
|
dgApplyAmountInfo.setApplyTime(businessApplication.getApplyTime());//申请期限
|
|
|
|
dgApplyAmountInfo.setApplyTime(businessApplication.getApplyTime());//申请期限
|
|
|
|
dgApplyAmountInfo.setBank(businessApplication.getBank());//贷款银行
|
|
|
|
dgApplyAmountInfo.setBank(businessApplication.getBank());//贷款银行
|
|
|
@ -116,7 +116,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
//新增到业务列表
|
|
|
|
//新增到业务列表
|
|
|
|
DgApplyAmountList dgApplyAmountList = new DgApplyAmountList(); |
|
|
|
DgApplyAmountList dgApplyAmountList = new DgApplyAmountList(); |
|
|
|
dgApplyAmountList.setBusinessId(dgApplyAmountInfo.getId()); |
|
|
|
dgApplyAmountList.setBusinessId(dgApplyAmountInfo.getId()); |
|
|
|
dgApplyAmountList.setPresenterId(5);//Integer.parseInt(userId)
|
|
|
|
dgApplyAmountList.setPresenterId(Integer.parseInt(userId)); |
|
|
|
dgApplyAmountList.setRoleId(PromptSuccess.DB_YWY_ID); |
|
|
|
dgApplyAmountList.setRoleId(PromptSuccess.DB_YWY_ID); |
|
|
|
dgApplyAmountList.setType(1);//类型为担保业务员
|
|
|
|
dgApplyAmountList.setType(1);//类型为担保业务员
|
|
|
|
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_IN_REVIEW) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){ |
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_IN_REVIEW) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){ |
|
|
|
DgApplyAmountList applyAmountList = new DgApplyAmountList(); |
|
|
|
DgApplyAmountList applyAmountList = new DgApplyAmountList(); |
|
|
|
applyAmountList.setBusinessId(dgApplyAmountInfo.getId());//主键id
|
|
|
|
applyAmountList.setBusinessId(dgApplyAmountInfo.getId());//主键id
|
|
|
|
applyAmountList.setPresenterId(5);//Integer.parseInt(userId) 提单人id
|
|
|
|
applyAmountList.setPresenterId(Integer.parseInt(userId));// 提单人id
|
|
|
|
applyAmountList.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理角色id
|
|
|
|
applyAmountList.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理角色id
|
|
|
|
applyAmountList.setType(2);//设置类型
|
|
|
|
applyAmountList.setType(2);//设置类型
|
|
|
|
applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//状态设置为审核中
|
|
|
|
applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//状态设置为审核中
|
|
|
@ -355,10 +355,15 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
applyAmountList.setStatus(StatusCode.SP_RESCINDED);//状态为已撤销
|
|
|
|
applyAmountList.setStatus(StatusCode.SP_RESCINDED);//状态为已撤销
|
|
|
|
applyAmountList.setOperatingStatus(StatusCode.CZ_TO_BE_DEFINED);//操作状态为待定义,目前前端不展示
|
|
|
|
applyAmountList.setOperatingStatus(StatusCode.CZ_TO_BE_DEFINED);//操作状态为待定义,目前前端不展示
|
|
|
|
dgApplyAmountListMapper.update(applyAmountList,new QueryWrapper<DgApplyAmountList>() |
|
|
|
dgApplyAmountListMapper.update(applyAmountList,new QueryWrapper<DgApplyAmountList>() |
|
|
|
.eq("business_id",applyAmountList.getBusinessId()).eq("type",applyAmountList.getType())); |
|
|
|
.eq("business_id",applyAmountList.getBusinessId()) |
|
|
|
|
|
|
|
.eq("type",applyAmountList.getType())); |
|
|
|
//将业务流程状态设置为已撤销
|
|
|
|
//将业务流程状态设置为已撤销
|
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
DgBusinessProcessStatus status = new DgBusinessProcessStatus(); |
|
|
|
|
|
|
|
status.setBusinessId(dgApplyAmountList1.getBusinessId()); |
|
|
|
|
|
|
|
status.setBusinessStatus(StatusCode.YW_RESCINDED);//业务状态设置为已撤销
|
|
|
|
|
|
|
|
return dgBusinessProcessStatusMapper.update(status,new QueryWrapper<DgBusinessProcessStatus>() |
|
|
|
|
|
|
|
.eq("business_id",status.getBusinessId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
@ -412,14 +417,31 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
dgApplyAmountList.setStatus(status); |
|
|
|
dgApplyAmountList.setStatus(status); |
|
|
|
dgApplyAmountList.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态改为已处理
|
|
|
|
dgApplyAmountList.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态改为已处理
|
|
|
|
dgApplyAmountList.setApplyContent(remark); |
|
|
|
dgApplyAmountList.setApplyContent(remark); |
|
|
|
dgApplyAmountList.setEmpId(5);//Integer.parseInt(userId)
|
|
|
|
dgApplyAmountList.setEmpId(Integer.parseInt(userId)); |
|
|
|
dgApplyAmountListMapper.update(dgApplyAmountList,new QueryWrapper<DgApplyAmountList>().eq("id",id)); |
|
|
|
dgApplyAmountListMapper.update(dgApplyAmountList,new QueryWrapper<DgApplyAmountList>().eq("id",id)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据id查询业务id
|
|
|
|
|
|
|
|
DgApplyAmountList dgApplyAmountList1 = dgApplyAmountListMapper.selectById(id); |
|
|
|
|
|
|
|
//修改专员那一条记录审核状态
|
|
|
|
|
|
|
|
DgApplyAmountList applyAmountList = new DgApplyAmountList(); |
|
|
|
|
|
|
|
applyAmountList.setStatus(status); |
|
|
|
|
|
|
|
dgApplyAmountListMapper.update(applyAmountList,new QueryWrapper<DgApplyAmountList>() |
|
|
|
|
|
|
|
.eq("business_id",dgApplyAmountList1.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(status.equals(StatusCode.SP_REFUSE)){//如果为拒绝,业务状态则为已否决
|
|
|
|
|
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
|
|
|
|
processStatus.setBusinessId(dgApplyAmountList1.getBusinessId()); |
|
|
|
|
|
|
|
processStatus.setBusinessStatus(StatusCode.YW_REJECTED);//业务状态设置为已否决
|
|
|
|
|
|
|
|
dgBusinessProcessStatusMapper.update(processStatus,new QueryWrapper<DgBusinessProcessStatus>() |
|
|
|
|
|
|
|
.eq("business_id",processStatus.getBusinessId())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果审批状态为已审核,并且操作状态为已处理,则同时新增数据到担保部,资产部和信息部,让这三个模块去审
|
|
|
|
//如果审批状态为已审核,并且操作状态为已处理,则同时新增数据到担保部,资产部和信息部,让这三个模块去审
|
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_REVIEWED) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)){ |
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_REVIEWED) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)){ |
|
|
|
//新增一条记录到担保部
|
|
|
|
//新增一条记录到担保部
|
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
guaranteeAssignUser.setBusinessId(id);//业务id
|
|
|
|
guaranteeAssignUser.setBusinessId(dgApplyAmountList1.getBusinessId());//业务id
|
|
|
|
guaranteeAssignUser.setCompanyId(companyId);//企业id
|
|
|
|
guaranteeAssignUser.setCompanyId(companyId);//企业id
|
|
|
|
guaranteeAssignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理角色id
|
|
|
|
guaranteeAssignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理角色id
|
|
|
|
guaranteeAssignUser.setType(3);//角色类型
|
|
|
|
guaranteeAssignUser.setType(3);//角色类型
|
|
|
@ -429,7 +451,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
|
|
|
|
|
|
|
|
//新增一条记录到资产部
|
|
|
|
//新增一条记录到资产部
|
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
dgAssetsInvestigation.setBusinessId(id);//业务id
|
|
|
|
dgAssetsInvestigation.setBusinessId(dgApplyAmountList1.getBusinessId());//业务id
|
|
|
|
dgAssetsInvestigation.setCompanyId(companyId);//企业id
|
|
|
|
dgAssetsInvestigation.setCompanyId(companyId);//企业id
|
|
|
|
dgAssetsInvestigation.setRoleId(PromptSuccess.ZC_JL_ID);//资产部经理角色id
|
|
|
|
dgAssetsInvestigation.setRoleId(PromptSuccess.ZC_JL_ID);//资产部经理角色id
|
|
|
|
dgAssetsInvestigation.setType(2);//角色类型
|
|
|
|
dgAssetsInvestigation.setType(2);//角色类型
|
|
|
@ -439,7 +461,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
|
|
|
|
|
|
|
|
//新增一条记录到信息部
|
|
|
|
//新增一条记录到信息部
|
|
|
|
DgMessageInvestigation dgMessageInvestigation = new DgMessageInvestigation(); |
|
|
|
DgMessageInvestigation dgMessageInvestigation = new DgMessageInvestigation(); |
|
|
|
dgMessageInvestigation.setBusinessId(id);//业务id
|
|
|
|
dgMessageInvestigation.setBusinessId(dgApplyAmountList1.getBusinessId());//业务id
|
|
|
|
dgMessageInvestigation.setCompanyId(companyId);//企业id
|
|
|
|
dgMessageInvestigation.setCompanyId(companyId);//企业id
|
|
|
|
dgMessageInvestigation.setRoleId(PromptSuccess.XX_JL_ID);//信息部经理角色id
|
|
|
|
dgMessageInvestigation.setRoleId(PromptSuccess.XX_JL_ID);//信息部经理角色id
|
|
|
|
dgMessageInvestigation.setType(2);//角色类型
|
|
|
|
dgMessageInvestigation.setType(2);//角色类型
|
|
|
@ -447,6 +469,8 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
dgMessageInvestigation.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态为待处理
|
|
|
|
dgMessageInvestigation.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态为待处理
|
|
|
|
dgMessageInvestigationMapper.insert(dgMessageInvestigation); |
|
|
|
dgMessageInvestigationMapper.insert(dgMessageInvestigation); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|