123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- package com.onemap.system.controller;
- import java.util.List;
- import java.io.IOException;
- import javax.servlet.http.HttpServletResponse;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.PutMapping;
- import org.springframework.web.bind.annotation.DeleteMapping;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import com.onemap.common.log.annotation.Log;
- import com.onemap.common.log.enums.BusinessType;
- import com.onemap.common.security.annotation.RequiresPermissions;
- import com.onemap.system.domain.TFzssHgxfxScx;
- import com.onemap.system.service.ITFzssHgxfxScxService;
- import com.onemap.common.core.web.controller.BaseController;
- import com.onemap.common.core.web.domain.AjaxResult;
- import com.onemap.common.core.utils.poi.ExcelUtil;
- import com.onemap.common.core.web.page.TableDataInfo;
- /**
- * 合规性审查项Controller
- *
- * @author siwei
- * @date 2022-12-02
- */
- @RestController
- @RequestMapping("/hgxscscx")
- public class TFzssHgxfxScxController extends BaseController
- {
- @Autowired
- private ITFzssHgxfxScxService tFzssHgxfxScxService;
- /**
- * 查询合规性审查项列表
- */
- @RequiresPermissions("system:hgxscscx:list")
- @GetMapping("/list")
- public TableDataInfo list(TFzssHgxfxScx tFzssHgxfxScx)
- {
- startPage();
- List<TFzssHgxfxScx> list = tFzssHgxfxScxService.selectTFzssHgxfxScxList(tFzssHgxfxScx);
- return getDataTable(list);
- }
- /**
- * 导出合规性审查项列表
- */
- @RequiresPermissions("system:hgxscscx:export")
- @Log(title = "合规性审查项", businessType = BusinessType.EXPORT)
- @PostMapping("/export")
- public void export(HttpServletResponse response, TFzssHgxfxScx tFzssHgxfxScx)
- {
- List<TFzssHgxfxScx> list = tFzssHgxfxScxService.selectTFzssHgxfxScxList(tFzssHgxfxScx);
- ExcelUtil<TFzssHgxfxScx> util = new ExcelUtil<TFzssHgxfxScx>(TFzssHgxfxScx.class);
- util.exportExcel(response, list, "合规性审查项数据");
- }
- /**
- * 获取合规性审查项详细信息
- */
- @RequiresPermissions("system:hgxscscx:query")
- @GetMapping(value = "/{bsm}")
- public AjaxResult getInfo(@PathVariable("bsm") String bsm)
- {
- return success(tFzssHgxfxScxService.selectTFzssHgxfxScxByBsm(bsm));
- }
- /**
- * 新增合规性审查项
- */
- @RequiresPermissions("system:hgxscscx:add")
- @Log(title = "合规性审查项", businessType = BusinessType.INSERT)
- @PostMapping
- public AjaxResult add(@RequestBody TFzssHgxfxScx tFzssHgxfxScx)
- {
- return toAjax(tFzssHgxfxScxService.insertTFzssHgxfxScx(tFzssHgxfxScx));
- }
- /**
- * 修改合规性审查项
- */
- @RequiresPermissions("system:hgxscscx:edit")
- @Log(title = "合规性审查项", businessType = BusinessType.UPDATE)
- @PutMapping
- public AjaxResult edit(@RequestBody TFzssHgxfxScx tFzssHgxfxScx)
- {
- return toAjax(tFzssHgxfxScxService.updateTFzssHgxfxScx(tFzssHgxfxScx));
- }
- /**
- * 删除合规性审查项
- */
- @RequiresPermissions("system:hgxscscx:remove")
- @Log(title = "合规性审查项", businessType = BusinessType.DELETE)
- @DeleteMapping("/{bsms}")
- public AjaxResult remove(@PathVariable String[] bsms)
- {
- return toAjax(tFzssHgxfxScxService.deleteTFzssHgxfxScxByBsms(bsms));
- }
- }
|