|
|
@ -38,6 +38,7 @@ import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanlawsuitsubapply.LoanLawsuitSubApply; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanoverduefin.UrlQuery; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanrepurchaseapply.LoanRepurchaseApply; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanreturnvehledger.LoanReturnVehLedger; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseentrustlawyerapply.LoanCaseEntrustLawyerApplyService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseprogressclosed.LoanCaseProgressClosedService; |
|
|
@ -50,6 +51,7 @@ import com.yxt.anrui.riskcenter.biz.loancaseprogresstrial.LoanCaseProgressTrialS |
|
|
|
import com.yxt.anrui.riskcenter.biz.loancaseprogressveh.LoanCaseProgressVehService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanlawsuitsubapply.LoanLawsuitSubApplyService; |
|
|
|
import com.yxt.anrui.riskcenter.biz.loanrepurchaseapply.LoanRepurchaseApplyService; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.PagerUtil; |
|
|
@ -62,8 +64,10 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
@ -113,6 +117,8 @@ public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgress |
|
|
|
private LoanLawsuitSubApplyService loanLawsuitSubApplyService; |
|
|
|
@Autowired |
|
|
|
private LoanCaseEntrustLawyerApplyService loanCaseEntrustLawyerApplyService; |
|
|
|
@Autowired |
|
|
|
private LoanRepurchaseApplyService loanRepurchaseApplyService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 生成交车资料确认单单据编号 |
|
|
@ -485,16 +491,24 @@ public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgress |
|
|
|
//查询转诉讼申请sid
|
|
|
|
LoanLawsuitSubApply loanLawsuitSubApply = loanLawsuitSubApplyService.selectByAnJianSid(sid); |
|
|
|
if(loanLawsuitSubApply != null){ |
|
|
|
vo.setLawerApplySid(loanLawsuitSubApply.getSid()); |
|
|
|
vo.setLawSubSid(loanLawsuitSubApply.getSid()); |
|
|
|
} |
|
|
|
//案件委托律师申请
|
|
|
|
LoanCaseEntrustLawyerApply loanCaseEntrustLawyerApply = loanCaseEntrustLawyerApplyService.selectByAnjianSid(sid); |
|
|
|
if(loanCaseEntrustLawyerApply != null){ |
|
|
|
vo.setLawerApplySid(loanCaseEntrustLawyerApply.getSid()); |
|
|
|
List<LawerListVo> lawerListVoList = loanCaseEntrustLawyerApplyService.selectByAnjianSid(sid); |
|
|
|
lawerListVoList.removeAll(Collections.singleton(null)); |
|
|
|
if(!lawerListVoList.isEmpty()){ |
|
|
|
vo.setLawerList(lawerListVoList); |
|
|
|
} |
|
|
|
List<String> busVinSidList = detailsVehs.stream().map(v->v.getBusVinSid()).collect(Collectors.toList()); |
|
|
|
busVinSidList.removeAll(Collections.singleton(null)); |
|
|
|
if(!busVinSidList.isEmpty()){ |
|
|
|
//查询回购申请sid
|
|
|
|
List<PurchaseListVo> purchaseListVoList = loanRepurchaseApplyService.selectByBusVinSids(busVinSidList); |
|
|
|
purchaseListVoList.removeAll(Collections.singleton(null)); |
|
|
|
if(!purchaseListVoList.isEmpty()){ |
|
|
|
vo.setPurchaseList(purchaseListVoList); |
|
|
|
} |
|
|
|
} |
|
|
|
//查询回购申请sid
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
@ -1069,9 +1083,53 @@ public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgress |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
updateProgess(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public void updateProgess(ReviewVo dto){ |
|
|
|
String sid = dto.getSid(); |
|
|
|
//更新案件信息
|
|
|
|
LoanCaseProgress loanCaseProgress = fetchBySid(sid); |
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); // 匹配字符串格
|
|
|
|
if(loanCaseProgress != null){ |
|
|
|
PanJueInfo panJueInfo = dto.getPanJueInfo(); |
|
|
|
if(panJueInfo != null){ |
|
|
|
//最终判决日期
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictTime())){ |
|
|
|
try { |
|
|
|
Date date = formatter.parse(panJueInfo.getVerdictTime()); |
|
|
|
loanCaseProgress.setFinalJudgmentDate(date); |
|
|
|
} catch (ParseException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//最终判决结果
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictResult())){ |
|
|
|
loanCaseProgress.setFinalJudgmentResult(panJueInfo.getVerdictResult()); |
|
|
|
} |
|
|
|
//最终判决金额
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictAmount())){ |
|
|
|
loanCaseProgress.setFinalJudgmentAmount(new BigDecimal(panJueInfo.getVerdictAmount())); |
|
|
|
} |
|
|
|
//其中判决欠款金额
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictDebtMoney())){ |
|
|
|
loanCaseProgress.setJudgmentDebtAmount(new BigDecimal(panJueInfo.getVerdictDebtMoney())); |
|
|
|
} |
|
|
|
//其中判决费用金额
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictMoney())){ |
|
|
|
loanCaseProgress.setJudgmentFeeAmount(new BigDecimal(panJueInfo.getVerdictMoney())); |
|
|
|
} |
|
|
|
//其中判决资金占用费
|
|
|
|
if(StringUtils.isNotBlank(panJueInfo.getVerdictFund())){ |
|
|
|
loanCaseProgress.setFinalCapitalOccupationFee(new BigDecimal(panJueInfo.getVerdictFund())); |
|
|
|
} |
|
|
|
baseMapper.updateById(loanCaseProgress); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public ResultBean saveFirstShengXiao(ReviewVo dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
@ -1721,6 +1779,7 @@ public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgress |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
updateProgess(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
@ -2304,6 +2363,7 @@ public class LoanCaseProgressService extends MybatisBaseService<LoanCaseProgress |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
updateProgess(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|