|
|
@ -46,16 +46,25 @@ import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.LoanCaseAppealApply; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.LoanCaseAppealFile; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.flowable.LoanCaseAppealApplyNodeVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseappealapply.flowable.SubmitLoanCaseAppealApplyDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseappealveh.LoanCaseAppealVehDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.*; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteapply.flowable.*; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseexecuteveh.LoanCaseExecuteVehDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseprogress.LoanCaseProgress; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseprogresstrial.LoanCaseProgressTrial; |
|
|
|
import com.yxt.anrui.riskcenter.api.loancaseprogressveh.LoanCaseProgressVeh; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseexecuteveh.LoanCaseExecuteVehService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseprogress.LoanCaseProgressService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseprogresstrial.LoanCaseProgressTrialService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseprogressveh.LoanCaseProgressVehService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.messagecenter.api.message.MessageFeign; |
|
|
@ -97,6 +106,12 @@ public class LoanCaseExecuteApplyService extends MybatisBaseService<LoanCaseExec |
|
|
|
@Autowired |
|
|
|
private LoanCaseExecuteVehService loanCaseExecuteVehService; |
|
|
|
@Autowired |
|
|
|
private LoanCaseProgressService loanCaseProgressService; |
|
|
|
@Autowired |
|
|
|
private LoanCaseProgressTrialService loanCaseProgressTrialService; |
|
|
|
@Autowired |
|
|
|
private LoanCaseProgressVehService loanCaseProgressVehService; |
|
|
|
@Autowired |
|
|
|
private FileUploadComponent fileUploadComponent; |
|
|
|
@Autowired |
|
|
|
private LoanFileService loanFileService; |
|
|
@ -391,8 +406,6 @@ public class LoanCaseExecuteApplyService extends MybatisBaseService<LoanCaseExec |
|
|
|
//流程定义id
|
|
|
|
bv.setModelId(ProcDefEnum.LOANCASEEXECUTEAPPLY.getProDefId()); |
|
|
|
bv.setFormVariables(variables); |
|
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(loanCaseExecuteApply.getOrgPath()).getData(); |
|
|
|
bv.setNextNodeUserSids(sysOrganizationVo.getManagerSid()); |
|
|
|
if (r == 1) { |
|
|
|
ResultBean<UpdateFlowFieldVo> voResultBean = flowableFeign.startProcess(bv); |
|
|
|
UpdateFlowFieldVo ufVo = voResultBean.getData(); |
|
|
@ -653,4 +666,63 @@ public class LoanCaseExecuteApplyService extends MybatisBaseService<LoanCaseExec |
|
|
|
flowFeign.delegate(delegateQuery); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public LoanCaseExecuteApplyDetailsVo details(String sid, String userSid, String orgPath) { |
|
|
|
LoanCaseExecuteApplyDetailsVo loanCaseExecuteApplyDetailsVo = new LoanCaseExecuteApplyDetailsVo(); |
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(userSid).getData(); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCreateBySid(userSid); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCreateByName(sysUserVo.getName()); |
|
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(orgPath).getData(); |
|
|
|
loanCaseExecuteApplyDetailsVo.setDeptSid(sysOrganizationVo.getSid()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setDeptName(sysOrganizationVo.getName()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCreateTime(new Date()); |
|
|
|
LoanCaseProgress loanCaseProgress = loanCaseProgressService.fetchBySid(sid); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCaseCreateDate(DateUtil.formatDate(loanCaseProgress.getCreateTime())); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCompHead(loanCaseProgress.getCompanyHead()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setLegalDeptHead(loanCaseProgress.getLegalHead()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCaseNo(loanCaseProgress.getCaseNo()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCaseType(loanCaseProgress.getCaseType()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setLoanContract(loanCaseProgress.getLoanContractNo()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setLenderName(loanCaseProgress.getLoanName()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setLenderIdNo(loanCaseProgress.getIdNumber()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setLenderAddress(loanCaseProgress.getBorrowerAddress()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setCustomName(loanCaseProgress.getCustomerName()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setBankName(loanCaseProgress.getBankName()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setBankContract(loanCaseProgress.getBankContractNo()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setArrearsTotal(loanCaseProgress.getAmountAll().toString()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setIsFullLitigation(loanCaseProgress.getFull()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setSueMoneyTotal(loanCaseProgress.getSueMoney().toString()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setPartProceRemarks(loanCaseProgress.getSueShows()); |
|
|
|
LoanCaseProgressTrial loanCaseProgressTrial = loanCaseProgressTrialService.selByJdAndSid(sid, loanCaseProgress.getCaseStage()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setJudgDate(DateUtil.formatDate(loanCaseProgressTrial.getVerdictTime())); |
|
|
|
loanCaseExecuteApplyDetailsVo.setJudgResult(loanCaseProgressTrial.getVerdictResult()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setJudgMoney(loanCaseProgressTrial.getVerdictAmount().toString()); |
|
|
|
loanCaseExecuteApplyDetailsVo.setJudgRemarks(loanCaseProgressTrial.getVerdictRemarks()); |
|
|
|
List<LoanCaseExecuteFile> pjclFiles = new ArrayList<>(); |
|
|
|
String verdictFiles = loanCaseProgressTrial.getVerdictFiles(); |
|
|
|
if (StringUtils.isNotBlank(verdictFiles)){ |
|
|
|
String[] files = verdictFiles.split(","); |
|
|
|
for (String file : files) { |
|
|
|
LoanCaseExecuteFile loanCaseExecuteFile = new LoanCaseExecuteFile(); |
|
|
|
String urlPrefix = fileUploadComponent.getUrlPrefix(); |
|
|
|
file = urlPrefix + file; |
|
|
|
loanCaseExecuteFile.setUrl(file); |
|
|
|
pjclFiles.add(loanCaseExecuteFile); |
|
|
|
} |
|
|
|
} |
|
|
|
loanCaseExecuteApplyDetailsVo.setPjclFiles(pjclFiles); |
|
|
|
List<LoanCaseExecuteVehDetailsVo> loanCaseExecuteVehDetailsVos = new ArrayList<>(); |
|
|
|
List<LoanCaseProgressVeh> loanCaseProgressVehs = loanCaseProgressVehService.selByMainSid(sid); |
|
|
|
for (LoanCaseProgressVeh loanCaseProgressVeh : loanCaseProgressVehs) { |
|
|
|
LoanCaseExecuteVehDetailsVo loanCaseExecuteVehDetailsVo = new LoanCaseExecuteVehDetailsVo(); |
|
|
|
loanCaseExecuteVehDetailsVo.setVinNo(loanCaseProgressVeh.getVinNo()); |
|
|
|
loanCaseExecuteVehDetailsVo.setCarNum(loanCaseProgressVeh.getVehMark()); |
|
|
|
loanCaseExecuteVehDetailsVo.setAffiliatedCompany(loanCaseProgressVeh.getAffiliatedCompany()); |
|
|
|
loanCaseExecuteVehDetailsVo.setCarState(loanCaseProgressVeh.getVehStatus()); |
|
|
|
loanCaseExecuteVehDetailsVo.setRemarks(loanCaseProgressVeh.getRemarks()); |
|
|
|
loanCaseExecuteVehDetailsVos.add(loanCaseExecuteVehDetailsVo); |
|
|
|
} |
|
|
|
loanCaseExecuteApplyDetailsVo.setLoanCaseExecuteVehList(loanCaseExecuteVehDetailsVos); |
|
|
|
return loanCaseExecuteApplyDetailsVo; |
|
|
|
} |
|
|
|
} |