|
|
@ -120,13 +120,13 @@ public class TbsCostApplyController { |
|
|
|
@PreAuthorize("hasRole('tbs:costApply:query')") |
|
|
|
public R<TbsBudgetTableVo> preview(Long id){ |
|
|
|
TbsCostApply costApply = tbsCostApplyService.getById(id); |
|
|
|
TbsBudgetTableVo tableVo = null; |
|
|
|
if(costApply.getMatchType().equals(0)){ |
|
|
|
TbsBudgetCostResult result = budgetApplicationService.buildBudgetCostResult(id,false,true); |
|
|
|
tableVo = result.getTableData(); |
|
|
|
}else if (costApply.getMatchType().equals(1)){ |
|
|
|
tableVo = tbsBudgetMatchApplication.getMatchResult(id,true).getTableVo(); |
|
|
|
} |
|
|
|
TbsBudgetTableVo tableVo = tbsBudgetMatchApplication.getMatchResult(id,true).getTableVo(); |
|
|
|
// if(costApply.getMatchType().equals(0)){
|
|
|
|
// TbsBudgetCostResult result = budgetApplicationService.buildBudgetCostResult(id,false,true);
|
|
|
|
// tableVo = result.getTableData();
|
|
|
|
// }else if (costApply.getMatchType().equals(1)){
|
|
|
|
// tableVo = tbsBudgetMatchApplication.getMatchResult(id,true).getTableVo();
|
|
|
|
// }
|
|
|
|
return R.ok(tableVo); |
|
|
|
} |
|
|
|
|
|
|
|