mitao
2025-01-16 586b24afe3f0cc8739f50f3e80f3c3d7aace54cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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<PageInfo<StateApplyRecordVO>> page(@RequestBody StateApplyRecordPageBO stateApplyRecordPageBO) {
        return AjaxResult.success(stateApplyRecordService.pageInfo(stateApplyRecordPageBO));
    }
 
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_PAGE_LEVEL)
    @ApiOperation(value = "分页查询一级台账", notes = "分页查询一级台账")
    public AjaxResult<StateApplyRecordPageInfoLevelVO> pageInfoLevel(@RequestBody StateApplyRecordPageInfoLevelBO stateApplyRecordPageInfoLevelBO) {
        return AjaxResult.success(stateApplyRecordService.pageInfoLevel(stateApplyRecordPageInfoLevelBO));
    }
 
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_SAVE)
    @ApiOperation(value = "保存请账", notes = "保存请账")
    public AjaxResult<Boolean> saveStateApplyRecordAndItem(@RequestBody SaveRecordAndItemBO saveRecordAndItemBO) {
        return AjaxResult.success(stateApplyRecordService.saveStateApplyRecordAndItem(saveRecordAndItemBO));
    }
 
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_IMPORT)
    @ApiOperation(value = "导入权利人", notes = "导入权利人")
    public AjaxResult<List<ApplyOwnerBO>> importOwnerByFile(ImportApplyRecordBO importApplyRecordBO) {
        return AjaxResult.success(stateApplyRecordService.importOwnerByFile(importApplyRecordBO));
    }
 
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_GET_OWNER)
    @ApiOperation(value = "通过项目id查询权利人", notes = "通过项目id查询权利人")
    public AjaxResult<ApplyHouseholdOwnerVO> getApplyHouseholdOwner(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) {
        return AjaxResult.success(stateApplyRecordService.getApplyHouseholdOwner(getApplyHouseholdOwnerBO));
    }
    //TODO 接口不清楚
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_GET_OWNER_INFO)
    @ApiOperation(value = "住宅临时安置补助费户详情或者 或者 停产停业补助费详情", notes = "停产停业补助费详情")
    public AjaxResult<PageInfo<ApplyOwnerBO>> getApplyHouseholdOwnerInfo(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) {
        return AjaxResult.success(stateApplyRecordService.getApplyHouseholdOwnerInfo(getApplyHouseholdOwnerBO));
    }
 
    @PostMapping(UrlConstants.STATE_APPLY_RECORD_DETAIL)
    @ApiOperation(value = "任务中心-请帐详情",notes = "任务中心-请帐详情")
    public AjaxResult<ApplyBO> stateApplyRecordDetail(@RequestBody GetApplyHouseholdOwnerBO getApplyHouseholdOwnerBO) {
        return AjaxResult.success(stateApplyRecordService.stateApplyRecordDetail(getApplyHouseholdOwnerBO));
    }
}