“djh”
4 天以前 f99d902db3c31e57229439962abd2746bb06868d
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
72
73
74
package com.gkhy.exam.admin.controller.system;
 
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.CompanyBasic;
import com.gkhy.exam.system.domain.CompanyIndustryType;
import com.gkhy.exam.system.service.SysIndustryTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "行业模版")
@RestController
@RequestMapping("/system/industry/type")
public class SysIndustryTypeController{
    @Autowired
    private SysIndustryTypeService service;
 
    /**
     * 行业类型列表
     * @return
     */
    @ApiOperation(value = "行业类型列表分页")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10")
    })
    @GetMapping("/list")
    public CommonResult listIndustryType(){
        return CommonResult.success(service.selectIndustryTypeList());
    }
 
    @ApiOperation(value = "行业类型列表")
    @GetMapping("/listAll")
    public CommonResult listIndustryTypeAll(){
        return CommonResult.success(service.selectList());
    }
 
    /**
     * 行业类型新增
     * @param companyIndustryType
     * @return
     */
    @ApiOperation(value = "行业类型新增")
    @PostMapping("/insert")
    public CommonResult insertIndustryType(@RequestBody CompanyIndustryType companyIndustryType){
        return service.insertIndustryType(companyIndustryType);
    }
 
    /**
     * 行业类型修改
     * @param companyIndustryType
     * @return
     */
    @ApiOperation(value = "行业类型修改")
    @PostMapping("/update")
    public CommonResult updateIndustryType(@RequestBody CompanyIndustryType companyIndustryType){
        return service.updateIndustryType(companyIndustryType);
    }
 
    /**
     * 行业类型删除
     * @param IndustryId
     * @return
     */
    @ApiOperation(value = "行业类型删除")
    @GetMapping("/deleted")
    public CommonResult deletedIndustryType(@RequestParam("IndustryId") Integer IndustryId){
        return service.deletedIndustryType(IndustryId);
    }
 
}