|
|
@ -189,6 +189,19 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
//根据主键id查询业务id
|
|
|
|
//根据主键id查询业务id
|
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = this.getBaseMapper().selectById(investigateAssetsRequest.getId()); |
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = this.getBaseMapper().selectById(investigateAssetsRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果为驳回情况,通过,则修改资产部调查下该业务审批状态为审核中,设置资产部经理操作状态为待处理
|
|
|
|
|
|
|
|
if(dgAssetsInvestigation.getStatus().equals(StatusCode.SP_REJECT) && investigateAssetsRequest.getStatus().equals(StatusCode.SP_IN_REVIEW)){ |
|
|
|
|
|
|
|
DgAssetsInvestigation assets = new DgAssetsInvestigation(); |
|
|
|
|
|
|
|
assets.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
|
|
|
this.baseMapper.update(assets,new QueryWrapper<DgAssetsInvestigation>() |
|
|
|
|
|
|
|
.eq("business_id",dgAssetsInvestigation.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgAssetsInvestigation assetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
|
|
|
|
assetsInvestigation.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(assets,new QueryWrapper<DgAssetsInvestigation>() |
|
|
|
|
|
|
|
.eq("business_id",dgAssetsInvestigation.getBusinessId()).eq("type",2)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//资产部调查员调查,修改审核意见以及状态,修改其他数据
|
|
|
|
//资产部调查员调查,修改审核意见以及状态,修改其他数据
|
|
|
|
DgAssetsInvestigation assetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
DgAssetsInvestigation assetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
assetsInvestigation.setId(investigateAssetsRequest.getId());//主键id
|
|
|
|
assetsInvestigation.setId(investigateAssetsRequest.getId());//主键id
|
|
|
@ -226,7 +239,7 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
dgAssetsMoneyMapper.insert(money); |
|
|
|
dgAssetsMoneyMapper.insert(money); |
|
|
|
|
|
|
|
|
|
|
|
//判断资产部调查员是否调查通过,如果通过,修改资产部经理操作状态为待处理
|
|
|
|
//判断资产部调查员是否调查通过,如果通过,修改资产部经理操作状态为待处理
|
|
|
|
if(investigateAssetsRequest.getStatus()==1){//状态为审核中
|
|
|
|
if(investigateAssetsRequest.getStatus()==StatusCode.SP_IN_REVIEW){//状态为审核中
|
|
|
|
DgAssetsInvestigation assetsInvestigation2= new DgAssetsInvestigation(); |
|
|
|
DgAssetsInvestigation assetsInvestigation2= new DgAssetsInvestigation(); |
|
|
|
assetsInvestigation2.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
assetsInvestigation2.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
this.baseMapper.update(assetsInvestigation2,new QueryWrapper<DgAssetsInvestigation>(). |
|
|
|
this.baseMapper.update(assetsInvestigation2,new QueryWrapper<DgAssetsInvestigation>(). |
|
|
@ -243,6 +256,23 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int approvalAssets(ApprovalAssetsRequest approvalAssetsRequest) { |
|
|
|
public int approvalAssets(ApprovalAssetsRequest approvalAssetsRequest) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据主键id查询资产部记录
|
|
|
|
|
|
|
|
DgAssetsInvestigation assetsInvestigation = this.baseMapper.selectById(approvalAssetsRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//此处为资产部经理审核的操作
|
|
|
|
|
|
|
|
//如果数据为驳回状态,审核通过,则处理资产部调查下该业务的审批状态为审核中,设置资产部领导的操作状态为待处理
|
|
|
|
|
|
|
|
if(assetsInvestigation.getStatus().equals(StatusCode.SP_REJECT) && approvalAssetsRequest.getStatus().equals(StatusCode.SP_IN_REVIEW) && assetsInvestigation.getType()==2){ |
|
|
|
|
|
|
|
DgAssetsInvestigation assets = new DgAssetsInvestigation(); |
|
|
|
|
|
|
|
assets.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
|
|
|
this.baseMapper.update(assets,new QueryWrapper<DgAssetsInvestigation>() |
|
|
|
|
|
|
|
.eq("business_id",assetsInvestigation.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgAssetsInvestigation assets2 = new DgAssetsInvestigation(); |
|
|
|
|
|
|
|
assets2.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(assets2,new QueryWrapper<DgAssetsInvestigation>() |
|
|
|
|
|
|
|
.eq("business_id",assetsInvestigation.getBusinessId()).eq("type",3)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
DgAssetsInvestigation dgAssetsInvestigation = new DgAssetsInvestigation(); |
|
|
|
dgAssetsInvestigation.setId(approvalAssetsRequest.getId()); |
|
|
|
dgAssetsInvestigation.setId(approvalAssetsRequest.getId()); |
|
|
|
dgAssetsInvestigation.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
|
dgAssetsInvestigation.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
@ -256,9 +286,6 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
//根据主键id修改资产部记录
|
|
|
|
//根据主键id修改资产部记录
|
|
|
|
this.baseMapper.updateById(dgAssetsInvestigation); |
|
|
|
this.baseMapper.updateById(dgAssetsInvestigation); |
|
|
|
|
|
|
|
|
|
|
|
//根据主键id查询资产部记录
|
|
|
|
|
|
|
|
DgAssetsInvestigation assetsInvestigation = this.baseMapper.selectById(approvalAssetsRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(approvalAssetsRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,业务状态则为已否决
|
|
|
|
if(approvalAssetsRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,业务状态则为已否决
|
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
processStatus.setBusinessId(assetsInvestigation.getBusinessId()); |
|
|
|
processStatus.setBusinessId(assetsInvestigation.getBusinessId()); |
|
|
@ -293,7 +320,7 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//如果资产部经理审核通过,则往担保部分管领导处加一条记录,由分管领导审核
|
|
|
|
//如果资产部经理审核通过,则往担保部分管领导处加一条记录,由分管领导审核
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_IN_REVIEW && assetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==2){//资产部经理审核通过
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_IN_REVIEW && dgAssetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==2){//资产部经理审核通过
|
|
|
|
//根据主键id查询业务id
|
|
|
|
//根据主键id查询业务id
|
|
|
|
DgAssetsInvestigation assetsInvestigation2 = this.getBaseMapper().selectById(approvalAssetsRequest.getId()); |
|
|
|
DgAssetsInvestigation assetsInvestigation2 = this.getBaseMapper().selectById(approvalAssetsRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
@ -314,7 +341,7 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
|
|
|
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//待完善
|
|
|
|
//待完善
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_REVIEWED && assetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==3) {//资产部分管领导审核通过
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_REVIEWED && dgAssetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==3) {//资产部分管领导审核通过
|
|
|
|
|
|
|
|
|
|
|
|
//查看担保部分管领导是否审核通过
|
|
|
|
//查看担保部分管领导是否审核通过
|
|
|
|
int a=dgGuaranteeAssignUserMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
int a=dgGuaranteeAssignUserMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|