| | |
| | | public class StateSettlementController { |
| | | |
| | | private final StateSettlementService settlementService; |
| | | private final StateHouseholdService stateHouseholdService; |
| | | private final ISysDeptService deptService; |
| | | |
| | | @PostMapping(UrlConstants.STATE_SETTLEMENT_SAVE) |
| | |
| | | public AjaxResult<Void> exportSettlement(@RequestBody SettlementBO settlementBO, HttpServletResponse response) { |
| | | try { |
| | | List<HouseholdVO> result = settlementService.exportSettleData(settlementBO, response); |
| | | |
| | | if (Objects.equals(settlementBO.getIsSettled(), SettledProcessEnum.NOT_SETTLE.getValue())) { |
| | | List<NotResettlementHouseholdExportVO> exportVOList = StateProjectConvert.INSTANCE.toNotResettlementHouseholdExportVO(result); |
| | | List<String> deptIdList = exportVOList.stream() |
| | |
| | | |
| | | @PostMapping(UrlConstants.STATE_SETTLEMENT_IMPORT) |
| | | public AjaxResult<Void> importSettlement(ImportSettlementBO importSettlementBO) throws IOException { |
| | | |
| | | settlementService.stateSettlementImport(importSettlementBO); |
| | | return AjaxResult.success(); |
| | | |
| | |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //项目实施明细 |
| | | @PostMapping(UrlConstants.STATE_EXECUTION_DETAIL) |
| | |
| | | |
| | | /** |
| | | * @param projectId |
| | | * @param componsationType 前端传 “null” 无办法 |
| | | * @param componsationType |
| | | * @return |
| | | */ |
| | | @GetMapping(UrlConstants.STATE_SETTLEMENT_GENERATE_SETTLE_BATCH) |
| | |
| | | public AjaxResult<List<String>> listBatchName(@RequestParam String projectId) { |
| | | return AjaxResult.success(settlementService.listBatchName(projectId)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |