package com.zzg.web.controller.state; import com.github.pagehelper.PageInfo; import com.zzg.common.constant.state.UrlConstants; import com.zzg.common.core.domain.AjaxResult; import com.zzg.system.domain.bo.ApplyBO; import com.zzg.system.domain.bo.ApplyOwnerBO; import com.zzg.system.domain.bo.GetApplyHouseholdOwnerBO; import com.zzg.system.domain.bo.ImportApplyRecordBO; import com.zzg.system.domain.bo.SaveRecordAndItemBO; import com.zzg.system.domain.bo.StateApplyRecordPageBO; import com.zzg.system.domain.bo.StateApplyRecordPageInfoLevelBO; import com.zzg.system.domain.vo.ApplyHouseholdOwnerVO; import com.zzg.system.domain.vo.StateApplyRecordPageInfoLevelVO; import com.zzg.system.domain.vo.StateApplyRecordVO; import com.zzg.system.service.state.StateApplyRecordService; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequiredArgsConstructor public class StateApplyRecordController { private final StateApplyRecordService stateApplyRecordService; @PostMapping(UrlConstants.STATE_APPLY_RECORD_PAGE) @ApiOperation(value = "分页查询台账", notes = "分页查询台账") public AjaxResult> page(@RequestBody StateApplyRecordPageBO stateApplyRecordPageBO) { return AjaxResult.success(stateApplyRecordService.pageInfo(stateApplyRecordPageBO)); } @PostMapping(UrlConstants.STATE_APPLY_RECORD_PAGE_LEVEL) @ApiOperation(value = "分页查询一级台账", notes = "分页查询一级台账") public AjaxResult pageInfoLevel(@RequestBody StateApplyRecordPageInfoLevelBO stateApplyRecordPageInfoLevelBO) { return AjaxResult.success(stateApplyRecordService.pageInfoLevel(stateApplyRecordPageInfoLevelBO)); } @PostMapping(UrlConstants.STATE_APPLY_RECORD_SAVE) @ApiOperation(value = "保存请账", notes = "保存请账") public AjaxResult saveStateApplyRecordAndItem(@RequestBody SaveRecordAndItemBO saveRecordAndItemBO) { return AjaxResult.success(stateApplyRecordService.saveStateApplyRecordAndItem(saveRecordAndItemBO)); } @PostMapping(UrlConstants.STATE_APPLY_RECORD_IMPORT) @ApiOperation(value = "导入权利人", notes = "导入权利人") public AjaxResult> importOwnerByFile(ImportApplyRecordBO importApplyRecordBO) { return AjaxResult.success(stateApplyRecordService.importOwnerByFile(importApplyRecordBO)); } @PostMapping(UrlConstants.STATE_APPLY_RECORD_GET_OWNER) @ApiOperation(value = "通过项目id查询权利人", notes = "通过项目id查询权利人") public AjaxResult getApplyHouseholdOwner(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) { return AjaxResult.success(stateApplyRecordService.getApplyHouseholdOwner(getApplyHouseholdOwnerBO)); } //TODO 接口不清楚 @PostMapping(UrlConstants.STATE_APPLY_RECORD_GET_OWNER_INFO) @ApiOperation(value = "住宅临时安置补助费户详情或者 或者 停产停业补助费详情", notes = "停产停业补助费详情") public AjaxResult> getApplyHouseholdOwnerInfo(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) { return AjaxResult.success(stateApplyRecordService.getApplyHouseholdOwnerInfo(getApplyHouseholdOwnerBO)); } @PostMapping(UrlConstants.STATE_APPLY_RECORD_DETAIL) @ApiOperation(value = "任务中心-请帐详情",notes = "任务中心-请帐详情") public AjaxResult stateApplyRecordDetail(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) { return AjaxResult.success(stateApplyRecordService.stateApplyRecordDetail(getApplyHouseholdOwnerBO)); } }