|
|
@ -45,7 +45,10 @@ import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateorder.LoanHomevisitI |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateorder.LoanHomevisitInvestigateOrderDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateotherpeo.LoanHomeVisitInvestigateInitOtherPeoVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateotherpeo.LoanHomevisitInvestigateOtherpeoDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateproperty.LoanHomeVisitInvestigateInitPropDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateproperty.LoanHomeVisitInvestigateInitPropVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateproperty.LoanHomevisitInvestigatePropertyDetailsVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigateproperty.LoanHomevisitInvestigatePropertyDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatetransport.LoanHomeVisitInvestigateInitTranDto; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatetransport.LoanHomeVisitInvestigateInitTranVo; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigatetransport.LoanHomevisitInvestigateTransportDetailsVo; |
|
|
@ -466,7 +469,34 @@ public class LoanHomevisitInvestigateService extends MybatisBaseService<LoanHome |
|
|
|
loanHomevisitInvestigateTransportDto.setMonthlyTrip(dto.getMonthCount()); |
|
|
|
loanHomevisitInvestigateTransportDto.setPerTripYuan(dto.getCountPrice()); |
|
|
|
loanHomevisitInvestigateTransportDto.setFuelConsumptionPerTrip(dto.getFuelConsumption()); |
|
|
|
loanHomevisitInvestigateTransportDto.setDriverSalary(dto.getDriverWage()); |
|
|
|
loanHomevisitInvestigateTransportDto.setToll(dto.getRoadToll()); |
|
|
|
loanHomevisitInvestigateTransportDto.setExpectedRevenue(dto.getIncome()); |
|
|
|
loanHomevisitInvestigateTransportService.saveOrUpdateDto(loanHomevisitInvestigateTransportDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<LoanHomeVisitInvestigateInitPropVo> getHomeVisitAssetsInfo(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomeVisitInvestigateInitPropVo loanHomeVisitInvestigateInitPropVo = loanHomevisitInvestigatePropertyService.getHomeVisitAssetsInfo(sid); |
|
|
|
loanHomeVisitInvestigateInitPropVo.setMainSid(sid); |
|
|
|
return rb.success().setData(loanHomeVisitInvestigateInitPropVo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveHomeVisitAssetsInfo(LoanHomeVisitInvestigateInitPropDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanHomevisitInvestigatePropertyDto loanHomevisitInvestigatePropertyDto = new LoanHomevisitInvestigatePropertyDto(); |
|
|
|
loanHomevisitInvestigatePropertyDto.setIsRealEstate(dto.getHouseCheck()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setPropertyType(dto.getHouseState()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealLoanSituation(dto.getHouseLoanKey()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setRealRemarks(dto.getHouseRemarks()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setIsCar(dto.getCarCheck()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarType(dto.getCarState()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setCarLoanSituation(dto.getCarLoanKey()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setDownPaySourceKey(dto.getDownPayment()); |
|
|
|
loanHomevisitInvestigatePropertyDto.setOtherSourceKey(dto.getOtherIncome()); |
|
|
|
BeanUtil.copyProperties(dto,loanHomevisitInvestigatePropertyDto); |
|
|
|
loanHomevisitInvestigatePropertyService.saveOrUpdateDto(loanHomevisitInvestigatePropertyDto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |