|
|
@ -17,6 +17,7 @@ import com.daqing.financial.guarantee.model.request.InvestigateAssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.response.*; |
|
|
|
import com.daqing.financial.guarantee.model.response.*; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.util.ArraysUtil; |
|
|
|
import com.daqing.financial.guarantee.util.ArraysUtil; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.util.AuditProcessUtil; |
|
|
|
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; |
|
|
|
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; |
|
|
|
import com.daqing.framework.domain.crms.response.CrmsCode; |
|
|
|
import com.daqing.framework.domain.crms.response.CrmsCode; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
@ -229,6 +230,10 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
this.baseMapper.update(assetsInvestigation2,new QueryWrapper<DgAssetsInvestigation>(). |
|
|
|
this.baseMapper.update(assetsInvestigation2,new QueryWrapper<DgAssetsInvestigation>(). |
|
|
|
eq("business_id",dgAssetsInvestigation.getBusinessId()).eq("type",2)); |
|
|
|
eq("business_id",dgAssetsInvestigation.getBusinessId()).eq("type",2)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(dgAssetsInvestigation.getBusinessId(),account,"资产部专员",investigateAssetsRequest.getApplyContent()); |
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -240,6 +245,7 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
dgAssetsInvestigation.setId(approvalAssetsRequest.getId()); |
|
|
|
dgAssetsInvestigation.setId(approvalAssetsRequest.getId()); |
|
|
|
dgAssetsInvestigation.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
|
dgAssetsInvestigation.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
|
dgAssetsInvestigation.setRemark(ArraysUtil.toString(approvalAssetsRequest.getRemark()));//补充原因
|
|
|
|
dgAssetsInvestigation.setRemark(ArraysUtil.toString(approvalAssetsRequest.getRemark()));//补充原因
|
|
|
|
|
|
|
|
dgAssetsInvestigation.setOtherRemark(approvalAssetsRequest.getOtherRemark());//其他原因
|
|
|
|
dgAssetsInvestigation.setStatus(approvalAssetsRequest.getStatus()); |
|
|
|
dgAssetsInvestigation.setStatus(approvalAssetsRequest.getStatus()); |
|
|
|
dgAssetsInvestigation.setOperatingStatus(StatusCode.CZ_PROCESSED);//状态设置为已处理
|
|
|
|
dgAssetsInvestigation.setOperatingStatus(StatusCode.CZ_PROCESSED);//状态设置为已处理
|
|
|
|
dgAssetsInvestigation.setAmount(approvalAssetsRequest.getAmount());//金额
|
|
|
|
dgAssetsInvestigation.setAmount(approvalAssetsRequest.getAmount());//金额
|
|
|
@ -264,10 +270,22 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
assets.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
assets.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
assets.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
assets.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
this.baseMapper.insert(assets); |
|
|
|
this.baseMapper.insert(assets); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(assetsInvestigation.getBusinessId(),account,"资产部经理",approvalAssetsRequest.getApplyContent()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//待完善
|
|
|
|
//待完善
|
|
|
|
|
|
|
|
if(approvalAssetsRequest.getStatus()==StatusCode.SP_REVIEWED && assetsInvestigation.getOperatingStatus()==StatusCode.CZ_PROCESSED && assetsInvestigation.getType()==3) {//资产部分管领导审核通过
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(assetsInvestigation.getBusinessId(),account,"资产部分管领导",approvalAssetsRequest.getApplyContent()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
@ -276,7 +294,6 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
public Boolean excelExport(List<String> ids, HttpServletResponse response) { |
|
|
|
public Boolean excelExport(List<String> ids, HttpServletResponse response) { |
|
|
|
//根据ids查询业务申请列表信息
|
|
|
|
//根据ids查询业务申请列表信息
|
|
|
|
List<AssetsInvestigationListResponse>assetsList = this.baseMapper.selectListByIds(ids); |
|
|
|
List<AssetsInvestigationListResponse>assetsList = this.baseMapper.selectListByIds(ids); |
|
|
|
System.out.println("applyList==========================="+assetsList); |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
ExcelUtil.writeExcelWithSheets(response, assetsList, "资产调查一览表", "assetsInvestigation", new AssetsInvestigationListResponse()) |
|
|
|
ExcelUtil.writeExcelWithSheets(response, assetsList, "资产调查一览表", "assetsInvestigation", new AssetsInvestigationListResponse()) |
|
|
|
.finish(); |
|
|
|
.finish(); |
|
|
|