|
|
|
@ -32,22 +32,12 @@ public class TcJgdwController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITcJgdwService tcJgdwService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询监管单位列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:list')")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(TcJgdw tcJgdw) {
|
|
|
|
|
startPage();
|
|
|
|
|
List<TcJgdw> list = tcJgdwService.selectTcJgdwList(tcJgdw);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出监管单位列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:export')")
|
|
|
|
|
@Log(title = "监管单位", businessType = BusinessType.EXPORT)
|
|
|
|
|
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, TcJgdw tcJgdw) {
|
|
|
|
|
List<TcJgdw> list = tcJgdwService.selectTcJgdwList(tcJgdw);
|
|
|
|
@ -58,7 +48,7 @@ public class TcJgdwController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 获取监管单位详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:query')")
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
|
|
return success(tcJgdwService.selectTcJgdwById(id));
|
|
|
|
@ -67,8 +57,7 @@ public class TcJgdwController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 新增监管单位
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:add')")
|
|
|
|
|
@Log(title = "监管单位", businessType = BusinessType.INSERT)
|
|
|
|
|
@ApiOperation(value = "新增监管单位")
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody TcJgdw tcJgdw) {
|
|
|
|
|
return toAjax(tcJgdwService.insertTcJgdw(tcJgdw));
|
|
|
|
@ -77,8 +66,8 @@ public class TcJgdwController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 修改监管单位
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:edit')")
|
|
|
|
|
@Log(title = "监管单位", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "修改监管单位")
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody TcJgdw tcJgdw) {
|
|
|
|
|
return toAjax(tcJgdwService.updateTcJgdw(tcJgdw));
|
|
|
|
@ -87,8 +76,7 @@ public class TcJgdwController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 删除监管单位
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:remove')")
|
|
|
|
|
@Log(title = "监管单位", businessType = BusinessType.DELETE)
|
|
|
|
|
@ApiOperation(value = "删除监管单位")
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
|
|
return toAjax(tcJgdwService.deleteTcJgdwByIds(ids));
|
|
|
|
|