New file |
| | |
| | | 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.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 |
| | | @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(); |
| | | } |
| | | } |
| | | |