|
|
@ -2029,26 +2029,27 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
record.setClosingDate("-"); |
|
|
|
} |
|
|
|
record.setShowFinancialBtn(false); |
|
|
|
LoanSolutions data = loanSolutionsFeign.getOneByOrderSid(record.getSaleOrderSid()).getData(); |
|
|
|
if (null != data) { |
|
|
|
if (StringUtils.isNotBlank(record.getSaleOrderState())) { |
|
|
|
if (record.getSaleOrderState().equals("已办结")) { |
|
|
|
//查询金融方案
|
|
|
|
LoanSolutions solutions = loanSolutionsFeign.getOneByOrderSid(record.getSaleOrderSid()).getData(); |
|
|
|
if (solutions != null) { |
|
|
|
String solutionsSid = solutions.getSid(); |
|
|
|
BusSolutionsChange busSolutionsChange = busSolutionsChangeService.selectBySolutionSid(solutionsSid); |
|
|
|
if (null != busSolutionsChange) { |
|
|
|
if (busSolutionsChange.getNodeState().equals("终止") || busSolutionsChange.getNodeState().equals("已办结")) { |
|
|
|
record.setShowFinancialBtn(true); |
|
|
|
} |
|
|
|
} else { |
|
|
|
record.setShowFinancialBtn(true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//是否显示金融方案变更按钮
|
|
|
|
// LoanSolutions data = loanSolutionsFeign.getOneByOrderSid(record.getSaleOrderSid()).getData();
|
|
|
|
// if (null != data) {
|
|
|
|
// if (StringUtils.isNotBlank(record.getSaleOrderState())) {
|
|
|
|
// if (record.getSaleOrderState().equals("已办结")) {
|
|
|
|
// //查询金融方案
|
|
|
|
// LoanSolutions solutions = loanSolutionsFeign.getOneByOrderSid(record.getSaleOrderSid()).getData();
|
|
|
|
// if (solutions != null) {
|
|
|
|
// String solutionsSid = solutions.getSid();
|
|
|
|
// BusSolutionsChange busSolutionsChange = busSolutionsChangeService.selectBySolutionSid(solutionsSid);
|
|
|
|
// if (null != busSolutionsChange) {
|
|
|
|
// if (busSolutionsChange.getNodeState().equals("终止") || busSolutionsChange.getNodeState().equals("已办结")) {
|
|
|
|
// record.setShowFinancialBtn(true);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// record.setShowFinancialBtn(true);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|