|
|
@ -23,50 +23,36 @@ |
|
|
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|
|
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|
|
|
*********************************************************/ |
|
|
|
package com.yxt.anrui.fin.biz.finpreloancreditapply; |
|
|
|
package com.yxt.anrui.riskcenter.biz.loanpreloancreditapply; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.api.R; |
|
|
|
import com.yxt.anrui.base.api.commonappendix.*; |
|
|
|
import com.yxt.anrui.base.common.enums.VehicleState; |
|
|
|
import com.yxt.anrui.fin.api.finfundscarriedforwardapply.FinFundsCarriedForwardApplyVo; |
|
|
|
import com.yxt.anrui.fin.api.finpreloancreditapply.*; |
|
|
|
import com.yxt.anrui.fin.api.finpreloancreditpeo.FinPreloanCreditPeoDetailsVo; |
|
|
|
import com.yxt.anrui.fin.api.finpreloancreditpeo.FinPreloanCreditPeoDto; |
|
|
|
import com.yxt.anrui.fin.biz.finpreloancreditpeo.FinPreloanCreditPeoService; |
|
|
|
import com.yxt.anrui.base.api.commonappendix.CommonAppendixDto; |
|
|
|
import com.yxt.anrui.base.api.commonappendix.CommonAppendixFeign; |
|
|
|
import com.yxt.anrui.base.api.commonappendix.CommonAppendixSelectQuery; |
|
|
|
import com.yxt.anrui.base.api.commonappendix.CommonAppendixVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanpreloancreditapply.*; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanpreloancreditpeo.LoanPreloanCreditPeoDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanpreloancreditpeo.LoanPreloanCreditPeoDto; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanpreloancreditpeo.LoanPreloanCreditPeoService; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.common.core.vo.PagerVo; |
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* Project: anrui-fin(贷前信用审核管理) <br/> |
|
|
|
* File: FinPreloanCreditApplyService.java <br/> |
|
|
|
* Class: com.yxt.anrui.fin.biz.finpreloancreditapply.FinPreloanCreditApplyService <br/> |
|
|
|
* Description: 贷前信用审核申请表 业务逻辑. <br/> |
|
|
|
* Copyright: Copyright (c) 2011 <br/> |
|
|
|
* Company: https://gitee.com/liuzp315 <br/>
|
|
|
|
* Makedate: 2023-07-11 11:04:28 <br/> |
|
|
|
* |
|
|
|
* @author liupopo |
|
|
|
* @version 1.0 |
|
|
|
* @since 1.0 |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanCreditApplyMapper, FinPreloanCreditApply> { |
|
|
|
public class LoanPreloanCreditApplyService extends MybatisBaseService<LoanPreloanCreditApplyMapper, LoanPreloanCreditApply> { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SysUserFeign sysUserFeign; |
|
|
@ -75,11 +61,11 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
@Autowired |
|
|
|
private FileUploadComponent fileUploadComponent; |
|
|
|
@Autowired |
|
|
|
private FinPreloanCreditPeoService finPreloanCreditPeoService; |
|
|
|
private LoanPreloanCreditPeoService loanPreloanCreditPeoService; |
|
|
|
|
|
|
|
public PagerVo<FinPreloanCreditApplyVo> listPageVo(PagerQuery<FinPreloanCreditApplyQuery> pq) { |
|
|
|
FinPreloanCreditApplyQuery query = pq.getParams(); |
|
|
|
QueryWrapper<FinPreloanCreditApply> qw = new QueryWrapper<>(); |
|
|
|
public PagerVo<LoanPreloanCreditApplyVo> listPageVo(PagerQuery<LoanPreloanCreditApplyQuery> pq) { |
|
|
|
LoanPreloanCreditApplyQuery query = pq.getParams(); |
|
|
|
QueryWrapper<LoanPreloanCreditApply> qw = new QueryWrapper<>(); |
|
|
|
if (StringUtils.isNotBlank(query.getMenuUrl()) || StringUtils.isNotBlank(query.getMenuSid())) { |
|
|
|
//=======================
|
|
|
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
|
|
@ -112,11 +98,11 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} else if ("5".equals(orgLevelKey)) { |
|
|
|
qw.eq("createBySid", query.getUserSid()); |
|
|
|
} else { |
|
|
|
PagerVo<FinPreloanCreditApplyVo> p = new PagerVo<>(); |
|
|
|
PagerVo<LoanPreloanCreditApplyVo> p = new PagerVo<>(); |
|
|
|
return p; |
|
|
|
} |
|
|
|
} else { |
|
|
|
PagerVo<FinPreloanCreditApplyVo> p = new PagerVo<>(); |
|
|
|
PagerVo<LoanPreloanCreditApplyVo> p = new PagerVo<>(); |
|
|
|
return p; |
|
|
|
} |
|
|
|
} |
|
|
@ -153,18 +139,18 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
if (StringUtils.isNotBlank(query.getName())) { |
|
|
|
//TODO
|
|
|
|
} |
|
|
|
IPage<FinPreloanCreditApply> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<FinPreloanCreditApplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
PagerVo<FinPreloanCreditApplyVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
IPage<LoanPreloanCreditApply> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<LoanPreloanCreditApplyVo> pagging = baseMapper.selectPageVo(page, qw); |
|
|
|
PagerVo<LoanPreloanCreditApplyVo> p = PagerUtil.pageToVo(pagging, null); |
|
|
|
return p; |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<String> saveOrUpdateDto(FinPreloanCreditApplyDto dto){ |
|
|
|
public ResultBean<String> saveOrUpdateDto(LoanPreloanCreditApplyDto dto){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
List<String> idCardImages = dto.getIdCardImages(); |
|
|
|
List<String> comFkFiles = dto.getComFkFiles(); |
|
|
|
List<FinPreloanCreditPeoDto> finPreloanCreditPeos = dto.getFinPreloanCreditPeos(); |
|
|
|
List<LoanPreloanCreditPeoDto> loanPreloanCreditPeos = dto.getLoanPreloanCreditPeos(); |
|
|
|
if (StringUtils.isBlank(dtoSid)) {//新增
|
|
|
|
String sid = this.insertByDto(dto).getData(); |
|
|
|
for (String idCardImage : idCardImages) { |
|
|
@ -174,7 +160,7 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(idCardImage); |
|
|
|
commonAppendixDto.setLinkSid(sid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
for (String comFkFile : comFkFiles) { |
|
|
@ -184,12 +170,12 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(comFkFile); |
|
|
|
commonAppendixDto.setLinkSid(sid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
for (FinPreloanCreditPeoDto finPreloanCreditPeo : finPreloanCreditPeos) { |
|
|
|
String peoSid = finPreloanCreditPeoService.insertByDto(finPreloanCreditPeo).getData(); |
|
|
|
List<String> idCardImages1 = finPreloanCreditPeo.getIdCardImages(); |
|
|
|
for (LoanPreloanCreditPeoDto loanPreloanCreditPeo : loanPreloanCreditPeos) { |
|
|
|
String peoSid = loanPreloanCreditPeoService.insertByDto(loanPreloanCreditPeo).getData(); |
|
|
|
List<String> idCardImages1 = loanPreloanCreditPeo.getIdCardImages(); |
|
|
|
for (String s : idCardImages1) { |
|
|
|
CommonAppendixDto commonAppendixDto = new CommonAppendixDto(); |
|
|
|
if (s.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -197,7 +183,7 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(s); |
|
|
|
commonAppendixDto.setLinkSid(peoSid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
} |
|
|
@ -212,7 +198,7 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(idCardImage); |
|
|
|
commonAppendixDto.setLinkSid(dtoSid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
for (String comFkFile : comFkFiles) { |
|
|
@ -222,13 +208,13 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(comFkFile); |
|
|
|
commonAppendixDto.setLinkSid(dtoSid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
finPreloanCreditPeoService.delByMainSid(dtoSid); |
|
|
|
for (FinPreloanCreditPeoDto finPreloanCreditPeo : finPreloanCreditPeos) { |
|
|
|
String peoSid = finPreloanCreditPeoService.insertByDto(finPreloanCreditPeo).getData(); |
|
|
|
List<String> idCardImages1 = finPreloanCreditPeo.getIdCardImages(); |
|
|
|
loanPreloanCreditPeoService.delByMainSid(dtoSid); |
|
|
|
for (LoanPreloanCreditPeoDto loanPreloanCreditPeo : loanPreloanCreditPeos) { |
|
|
|
String peoSid = loanPreloanCreditPeoService.insertByDto(loanPreloanCreditPeo).getData(); |
|
|
|
List<String> idCardImages1 = loanPreloanCreditPeo.getIdCardImages(); |
|
|
|
for (String s : idCardImages1) { |
|
|
|
CommonAppendixDto commonAppendixDto = new CommonAppendixDto(); |
|
|
|
if (s.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
@ -236,43 +222,43 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(s); |
|
|
|
commonAppendixDto.setLinkSid(peoSid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
} |
|
|
|
return rb.success().setData(dtoSid); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<String> insertByDto(FinPreloanCreditApplyDto dto){ |
|
|
|
public ResultBean<String> insertByDto(LoanPreloanCreditApplyDto dto){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
FinPreloanCreditApply entity = new FinPreloanCreditApply(); |
|
|
|
LoanPreloanCreditApply entity = new LoanPreloanCreditApply(); |
|
|
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|
|
|
entity.setNodeState("待提交"); |
|
|
|
baseMapper.insert(entity); |
|
|
|
return rb.success().setData(entity.getSid()); |
|
|
|
} |
|
|
|
|
|
|
|
public void updateByDto(FinPreloanCreditApplyDto dto){ |
|
|
|
public void updateByDto(LoanPreloanCreditApplyDto dto){ |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
if (StringUtils.isBlank(dtoSid)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
FinPreloanCreditApply entity = fetchBySid(dtoSid); |
|
|
|
LoanPreloanCreditApply entity = fetchBySid(dtoSid); |
|
|
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|
|
|
baseMapper.updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|
public FinPreloanCreditApplyDetailsVo fetchDetailsVoBySid(String sid){ |
|
|
|
FinPreloanCreditApply entity = fetchBySid(sid); |
|
|
|
FinPreloanCreditApplyDetailsVo vo = new FinPreloanCreditApplyDetailsVo(); |
|
|
|
public LoanPreloanCreditApplyDetailsVo fetchDetailsVoBySid(String sid){ |
|
|
|
LoanPreloanCreditApply entity = fetchBySid(sid); |
|
|
|
LoanPreloanCreditApplyDetailsVo vo = new LoanPreloanCreditApplyDetailsVo(); |
|
|
|
BeanUtil.copyProperties(entity, vo); |
|
|
|
CommonAppendixSelectQuery commonAppendixSelectQuery1 = new CommonAppendixSelectQuery(); |
|
|
|
commonAppendixSelectQuery1.setLinkSid(sid); |
|
|
|
commonAppendixSelectQuery1.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixSelectQuery1.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
List<CommonAppendixVo> data1 = commonAppendixFeign.getPcAppendix(commonAppendixSelectQuery1).getData(); |
|
|
|
CommonAppendixSelectQuery commonAppendixSelectQuery2 = new CommonAppendixSelectQuery(); |
|
|
|
commonAppendixSelectQuery2.setLinkSid(sid); |
|
|
|
commonAppendixSelectQuery2.setAttachType(FinFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
commonAppendixSelectQuery2.setAttachType(LoanFileTypeEnum.FileTypeEnum.COMPANY_RISK.getCode()); |
|
|
|
List<CommonAppendixVo> data2 = commonAppendixFeign.getPcAppendix(commonAppendixSelectQuery2).getData(); |
|
|
|
List<String> idCardImages = new ArrayList<>(); |
|
|
|
List<String> comFkFiles = new ArrayList<>(); |
|
|
@ -288,12 +274,12 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
filePath = urlPrefix + filePath; |
|
|
|
comFkFiles.add(filePath); |
|
|
|
} |
|
|
|
List<FinPreloanCreditPeoDetailsVo> finPreloanCreditPeoDetailsVos = finPreloanCreditPeoService.fetchByMainSid(sid); |
|
|
|
List<LoanPreloanCreditPeoDetailsVo> loanPreloanCreditPeoDetailsVos = loanPreloanCreditPeoService.fetchByMainSid(sid); |
|
|
|
List<String> idCardPeoImages = new ArrayList<>(); |
|
|
|
for (FinPreloanCreditPeoDetailsVo finPreloanCreditPeoDetailsVo : finPreloanCreditPeoDetailsVos) { |
|
|
|
for (LoanPreloanCreditPeoDetailsVo loanPreloanCreditPeoDetailsVo : loanPreloanCreditPeoDetailsVos) { |
|
|
|
CommonAppendixSelectQuery commonAppendixSelectQuery3 = new CommonAppendixSelectQuery(); |
|
|
|
commonAppendixSelectQuery3.setLinkSid(finPreloanCreditPeoDetailsVo.getSid()); |
|
|
|
commonAppendixSelectQuery3.setAttachType(FinFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
commonAppendixSelectQuery3.setLinkSid(loanPreloanCreditPeoDetailsVo.getSid()); |
|
|
|
commonAppendixSelectQuery3.setAttachType(LoanFileTypeEnum.FileTypeEnum.ID_CARD.getCode()); |
|
|
|
List<CommonAppendixVo> data3 = commonAppendixFeign.getPcAppendix(commonAppendixSelectQuery3).getData(); |
|
|
|
for (CommonAppendixVo commonAppendixVo : data3) { |
|
|
|
String filePath = commonAppendixVo.getFilePath(); |
|
|
@ -301,11 +287,11 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
filePath = urlPrefix + filePath; |
|
|
|
idCardPeoImages.add(filePath); |
|
|
|
} |
|
|
|
finPreloanCreditPeoDetailsVo.setIdCardImages(idCardPeoImages); |
|
|
|
loanPreloanCreditPeoDetailsVo.setIdCardImages(idCardPeoImages); |
|
|
|
} |
|
|
|
vo.setIdCardImages(idCardImages); |
|
|
|
vo.setComFkFiles(comFkFiles); |
|
|
|
vo.setFinPreloanCreditPeos(finPreloanCreditPeoDetailsVos); |
|
|
|
vo.setLoanPreloanCreditPeos(loanPreloanCreditPeoDetailsVos); |
|
|
|
return vo; |
|
|
|
} |
|
|
|
|
|
|
@ -319,14 +305,15 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
delBySids(sids); |
|
|
|
for (String sid : sids) { |
|
|
|
commonAppendixFeign.deleteFiles(sid); |
|
|
|
finPreloanCreditPeoService.delByMainSid(sid); |
|
|
|
loanPreloanCreditPeoService.delByMainSid(sid); |
|
|
|
} |
|
|
|
return rb.success().setMsg("删除成功"); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean submitCompanyRisk(FinSubmitCompanyRiskDto dto) { |
|
|
|
public ResultBean submitCompanyRisk(LoanSubmitCompanyRiskDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
commonAppendixFeign.delFilesByLinkSidAndAttachType(dtoSid,FinFileTypeEnum.FileTypeEnum.COMPANY_QUERYRES.getCode()); |
|
|
|
commonAppendixFeign.delFilesByLinkSidAndAttachType(dtoSid,LoanFileTypeEnum.FileTypeEnum.COMPANY_QUERYRES.getCode()); |
|
|
|
List<String> gsQueryResults = dto.getGsQueryResults(); |
|
|
|
for (String gsQueryResult : gsQueryResults) { |
|
|
|
CommonAppendixDto commonAppendixDto = new CommonAppendixDto(); |
|
|
@ -335,14 +322,29 @@ public class FinPreloanCreditApplyService extends MybatisBaseService<FinPreloanC |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(gsQueryResult); |
|
|
|
commonAppendixDto.setLinkSid(dtoSid); |
|
|
|
commonAppendixDto.setAttachType(FinFileTypeEnum.FileTypeEnum.COMPANY_QUERYRES.getCode()); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.COMPANY_QUERYRES.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
baseMapper.submitCompanyRisk(dtoSid,dto.getGsshjg(),dto.getGsshDate(),dto.getGsshRemarks()); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean submitCapitalRisk(FinSubmitCapitalRiskDto dto) { |
|
|
|
return null; |
|
|
|
public ResultBean submitCapitalRisk(LoanSubmitCapitalRiskDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
commonAppendixFeign.delFilesByLinkSidAndAttachType(dtoSid,LoanFileTypeEnum.FileTypeEnum.CAPITAL_QUERYRES.getCode()); |
|
|
|
List<String> zfQueryResults = dto.getZfQueryResults(); |
|
|
|
for (String zfQueryResult : zfQueryResults) { |
|
|
|
CommonAppendixDto commonAppendixDto = new CommonAppendixDto(); |
|
|
|
if (zfQueryResult.indexOf(fileUploadComponent.getUrlPrefix()) > -1) { |
|
|
|
zfQueryResult = zfQueryResult.replace(fileUploadComponent.getUrlPrefix(), ""); |
|
|
|
} |
|
|
|
commonAppendixDto.setFilePath(zfQueryResult); |
|
|
|
commonAppendixDto.setLinkSid(dtoSid); |
|
|
|
commonAppendixDto.setAttachType(LoanFileTypeEnum.FileTypeEnum.CAPITAL_QUERYRES.getCode()); |
|
|
|
commonAppendixFeign.save(commonAppendixDto); |
|
|
|
} |
|
|
|
baseMapper.submitCapitalRisk(dtoSid,dto.getZfshjg(),dto.getZfshDate(),dto.getZfshRemarks(),dto.getCapitalBalance()); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |