Browse Source

修改

master
dimengzhe 2 days ago
parent
commit
df511c4d96
  1. 12
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansecondarysalescustomer/LoanSecondarySalesCustomerService.java

12
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loansecondarysalescustomer/LoanSecondarySalesCustomerService.java

@ -24,6 +24,7 @@ import com.yxt.anrui.riskcenter.api.loansecondarysalesveh.SalesVehVo;
import com.yxt.anrui.riskcenter.biz.loanoutboundapply.LoanOutboundApplyService;
import com.yxt.anrui.riskcenter.biz.loanreturnvehledger.LoanReturnVehLedgerService;
import com.yxt.anrui.riskcenter.biz.loansecondarysalesapply.LoanSecondarySalesApplyService;
import com.yxt.anrui.riskcenter.biz.loansecondarysalesbidding.LoanSecondarySalesBiddingService;
import com.yxt.anrui.riskcenter.biz.loansecondarysalescost.LoanSecondarySalesCostMapper;
import com.yxt.anrui.riskcenter.biz.loansecondarysalescost.LoanSecondarySalesCostService;
import com.yxt.anrui.riskcenter.biz.loansecondarysalesveh.LoanSecondarySalesVehService;
@ -64,6 +65,8 @@ public class LoanSecondarySalesCustomerService extends MybatisBaseService<LoanSe
private LoanReturnVehLedgerService loanReturnVehLedgerService;
@Autowired
private SysNoticeFeign sysNoticeFeign;
@Autowired
private LoanSecondarySalesBiddingService loanSecondarySalesBiddingService;
public ResultBean saveSalesCustomer(LoanSecondarySalesCustomerDto dto) {
ResultBean rb = ResultBean.fireFail();
@ -174,7 +177,14 @@ public class LoanSecondarySalesCustomerService extends MybatisBaseService<LoanSe
salesInitVo.setCreateDept(loanSecondarySalesApply.getCreateDept());
salesInitVo.setSaleDate(loanSecondarySalesApply.getCloseDate());
LoanSecondarySalesCost loanSecondarySalesCost = loanSecondarySalesCostMapper.selectMainSid(sid);
salesInitVo.setSalePrice(loanSecondarySalesCost.getVehPrice().toString());
//补充信息的最终价格-取竞价结果的最高价格
LoanSecondarySalesBidding loanSecondarySalesBidding = loanSecondarySalesBiddingService.selectByMainSid(sid);
if(loanSecondarySalesBidding != null){
salesInitVo.setSalePrice(loanSecondarySalesBidding.getPrice().toString());
}else{
salesInitVo.setSalePrice(loanSecondarySalesCost.getVehPrice().toString());
}
if(loanSecondarySalesCustomer != null){
String contractFiles = loanSecondarySalesCustomer.getContractFiles();
String otherFiles = loanSecondarySalesCustomer.getOtherFiles();

Loading…
Cancel
Save