|
|
@ -151,6 +151,7 @@ import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.UserQuery; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamine; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanfileexamine.LoanFileexamineFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitfileexamine.LoanHomevisitFileexamineFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitinvestigate.LoanHomevisitInvestigateFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loanhomevisitprep.LoanHomevisitPrepFeign; |
|
|
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewDetailsVo; |
|
|
@ -284,6 +285,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
@Autowired |
|
|
|
private LoanHomevisitInvestigateFeign loanHomevisitInvestigateFeign; |
|
|
|
@Autowired |
|
|
|
private LoanHomevisitFileexamineFeign loanHomevisitFileexamineFeign; |
|
|
|
@Autowired |
|
|
|
private LoanNoGuaranteeCreditReviewFeign loanNoGuaranteeCreditReviewFeign; |
|
|
|
@Autowired |
|
|
|
private BusSalesOrderLoancontractService busSalesOrderLoancontractService; |
|
|
@ -413,6 +416,27 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
} |
|
|
|
String dtoSid = dto.getSid(); |
|
|
|
if (StringUtils.isBlank(dtoSid)) { |
|
|
|
if ("2".equals(dto.getPaymentMethodKey()) && "1".equals(dto.getIsInvoicing())){ |
|
|
|
List<BusDeliveredApplyDetailsDto> detailsList = dto.getDetailsList(); |
|
|
|
for (BusDeliveredApplyDetailsDto busDeliveredApplyDetailsDto : detailsList) { |
|
|
|
BusSalesOrderVehicle busSalesOrderVehicle = busSalesOrderVehicleService.selectByNoAndVinSid(dto.getContractNo(), busDeliveredApplyDetailsDto.getVinSid()); |
|
|
|
BaseVehicleState baseVehicleState = baseVehicleStateFeign.selectByBusSid(busSalesOrderVehicle.getSid()).getData(); |
|
|
|
if (!"1".equals(baseVehicleState.getFinState())){ |
|
|
|
return rb.setMsg(busDeliveredApplyDetailsDto.getVinNo() + "款项未交清,保存失败"); |
|
|
|
} |
|
|
|
if ("3".equals(baseVehicleState.getFinSourceKey())){//非担保
|
|
|
|
String investigateValue = loanHomevisitInvestigateFeign.selSaleOrderSid(busSalesOrderVehicle.getSalesOrderSid()).getData(); |
|
|
|
if (!"通过".equals(investigateValue)){ |
|
|
|
return rb.setMsg(busDeliveredApplyDetailsDto.getVinNo() + "家访考察未通过,保存失败"); |
|
|
|
} |
|
|
|
}else if ("4".equals(baseVehicleState.getFinSourceKey())){//担保
|
|
|
|
String state = loanHomevisitFileexamineFeign.selSaleOrderSid(busSalesOrderVehicle.getSalesOrderSid()).getData(); |
|
|
|
if (!"2".equals(state)){ |
|
|
|
return rb.setMsg(busDeliveredApplyDetailsDto.getVinNo() + "家访资料审核未通过,保存失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//新增
|
|
|
|
BusDeliveredApply busDeliveredApply = new BusDeliveredApply(); |
|
|
|
BeanUtil.copyProperties(dto, busDeliveredApply, "sid"); |
|
|
@ -856,6 +880,12 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
variables.put("isAdj", busDeliveredApply.getCreateBySid().equals(busDeliveredApply.getStaffUserSid())); |
|
|
|
//判断是否为贷款业务
|
|
|
|
variables.put("isDk", "2".equals(busDeliveredApply.getPaymentMethodKey())); |
|
|
|
//判断贷款业务是否开票
|
|
|
|
if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "1".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", true); |
|
|
|
}else if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "0".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", false); |
|
|
|
} |
|
|
|
//若app移动端有此功能,则传递appMap参数
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
|
|
@ -2128,6 +2158,12 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
variables.put("isAdj", busDeliveredApply.getCreateBySid().equals(busDeliveredApply.getStaffUserSid())); |
|
|
|
//判断是否为贷款业务
|
|
|
|
variables.put("isDk", "2".equals(busDeliveredApply.getPaymentMethodKey())); |
|
|
|
//判断贷款业务是否开票
|
|
|
|
if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "1".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", true); |
|
|
|
}else if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "0".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", false); |
|
|
|
} |
|
|
|
//若app移动端有此功能,则传递appMap参数
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
|
|
@ -2192,6 +2228,12 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
variables.put("isAdj", busDeliveredApply.getCreateBySid().equals(busDeliveredApply.getStaffUserSid())); |
|
|
|
//判断是否为贷款业务
|
|
|
|
variables.put("isDk", "2".equals(busDeliveredApply.getPaymentMethodKey())); |
|
|
|
//判断贷款业务是否开票
|
|
|
|
if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "1".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", true); |
|
|
|
}else if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "0".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", false); |
|
|
|
} |
|
|
|
//若app移动端有此功能,则传递appMap参数
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
|
|
@ -2259,6 +2301,12 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
variables.put("isAdj", busDeliveredApply.getCreateBySid().equals(busDeliveredApply.getStaffUserSid())); |
|
|
|
//判断是否为贷款业务
|
|
|
|
variables.put("isDk", "2".equals(busDeliveredApply.getPaymentMethodKey())); |
|
|
|
//判断贷款业务是否开票
|
|
|
|
if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "1".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", true); |
|
|
|
}else if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "0".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", false); |
|
|
|
} |
|
|
|
//若app移动端有此功能,则传递appMap参数
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
|
|
@ -3320,6 +3368,12 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
|
variables.put("isAdj", busDeliveredApply.getCreateBySid().equals(busDeliveredApply.getStaffUserSid())); |
|
|
|
//判断是否为贷款业务
|
|
|
|
variables.put("isDk", "2".equals(busDeliveredApply.getPaymentMethodKey())); |
|
|
|
//判断贷款业务是否开票
|
|
|
|
if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "1".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", true); |
|
|
|
}else if ("2".equals(busDeliveredApply.getPaymentMethodKey()) && "0".equals(busDeliveredApply.getHasInvoiceKey())){ |
|
|
|
variables.put("isKp", false); |
|
|
|
} |
|
|
|
//若app移动端有此功能,则传递appMap参数
|
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
//需和移动端沟通业务sid保存的属性具体值:appMap中sid不是固定的。移动端提供具体字段。
|
|
|
|