无关风月
3 天以前 eaf24d5991dbaf85736f24a1420822e5147cd9c5
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
package com.ruoyi.web.controller.api;
 
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.basic.PageInfo;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.framework.web.service.TokenService;
import com.ruoyi.system.model.LandReported;
import com.ruoyi.system.model.LandReported;
import com.ruoyi.system.query.LandReportedListQuery;
import com.ruoyi.system.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
 
/**
 * <p>
 * 已办证土地 前端控制器
 * </p>
 *
 * @author WuGuanFengYue
 * @since 2025-10-17
 */
@RestController
@Api(tags = "已办证土地管理")
@RequestMapping("/land-reported")
public class LandReportedController {
    @Resource
    private LandReportedService landReportedService;
    @ApiOperation(value = "已办证土地分页列表")
    @PostMapping(value = "/pageList")
    public R<PageInfo<LandReported>> pageList(@RequestBody LandReportedListQuery query) {
//        landReportedService.pageList(query)
        return R.ok();
    }
    @ApiOperation(value = "添加")
    @Transactional
    @Log(title = "已办证土地-添加", businessType = BusinessType.INSERT)
    @PostMapping(value = "/add")
    public R<Boolean> save(@RequestBody LandReported entity) {
        landReportedService.save( entity);
        return R.ok();
    }
    @ApiOperation(value = "修改")
    @Transactional
    @Log(title = "已办证土地-修改", businessType = BusinessType.UPDATE)
    @PostMapping(value = "/edit")
    public R<Boolean> edit(@RequestBody LandReported entity) {
        landReportedService.updateById(entity);
 
        return R.ok();
    }
    @Log(title = "已办证土地-删除", businessType = BusinessType.DELETE)
    @Transactional
    @ApiOperation(value = "已办证土地-删除")
    @DeleteMapping(value = "/delete")
    public R delete(@RequestParam String ids) {
        landReportedService.removeBatchByIds(Arrays.asList(ids.split(",")));
        return R.ok();
    }
}