1.注释掉企业、岗位的接口的权限
This commit is contained in:
@@ -49,7 +49,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 查询岗位列表
|
* 查询岗位列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询岗位列表")
|
@ApiOperation("查询岗位列表")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:job:list')")
|
// @PreAuthorize("@ss.hasPermi('cms:job:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(Job job)
|
public TableDataInfo list(Job job)
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 获取岗位详细信息
|
* 获取岗位详细信息
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取岗位详细信息")
|
@ApiOperation("获取岗位详细信息")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:query')")
|
// @PreAuthorize("@ss.hasPermi('bussiness:job:query')")
|
||||||
@GetMapping(value = "/{jobId}")
|
@GetMapping(value = "/{jobId}")
|
||||||
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
|
public AjaxResult getInfo(@PathVariable("jobId") Long jobId)
|
||||||
{
|
{
|
||||||
@@ -77,7 +77,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 导出岗位列表
|
* 导出岗位列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("导出岗位列表")
|
@ApiOperation("导出岗位列表")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:export')")
|
// @PreAuthorize("@ss.hasPermi('bussiness:job:export')")
|
||||||
@Log(title = "岗位", businessType = BusinessType.EXPORT)
|
@Log(title = "岗位", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, Job job)
|
public void export(HttpServletResponse response, Job job)
|
||||||
@@ -90,7 +90,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 新增岗位
|
* 新增岗位
|
||||||
*/
|
*/
|
||||||
@ApiOperation("新增岗位")
|
@ApiOperation("新增岗位")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:add')")
|
// @PreAuthorize("@ss.hasPermi('bussiness:job:add')")
|
||||||
@Log(title = "岗位", businessType = BusinessType.INSERT)
|
@Log(title = "岗位", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody Job job)
|
public AjaxResult add(@RequestBody Job job)
|
||||||
@@ -109,7 +109,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 修改岗位
|
* 修改岗位
|
||||||
*/
|
*/
|
||||||
@ApiOperation("修改岗位")
|
@ApiOperation("修改岗位")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:edit')")
|
// @PreAuthorize("@ss.hasPermi('bussiness:job:edit')")
|
||||||
@Log(title = "岗位", businessType = BusinessType.UPDATE)
|
@Log(title = "岗位", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody Job job)
|
public AjaxResult edit(@RequestBody Job job)
|
||||||
@@ -127,7 +127,7 @@ public class CmsJobController extends BaseController
|
|||||||
* 删除岗位
|
* 删除岗位
|
||||||
*/
|
*/
|
||||||
@ApiOperation("删除岗位")
|
@ApiOperation("删除岗位")
|
||||||
@PreAuthorize("@ss.hasPermi('bussiness:job:remove')")
|
// @PreAuthorize("@ss.hasPermi('bussiness:job:remove')")
|
||||||
@Log(title = "岗位", businessType = BusinessType.DELETE)
|
@Log(title = "岗位", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{jobIds}")
|
@DeleteMapping("/{jobIds}")
|
||||||
public AjaxResult remove(@PathVariable Long[] jobIds)
|
public AjaxResult remove(@PathVariable Long[] jobIds)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class CompanyController extends BaseController
|
|||||||
* 查询公司列表
|
* 查询公司列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询公司列表")
|
@ApiOperation("查询公司列表")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:company:list')")
|
// @PreAuthorize("@ss.hasPermi('cms:company:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(Company company)
|
public TableDataInfo list(Company company)
|
||||||
{
|
{
|
||||||
@@ -53,7 +53,7 @@ public class CompanyController extends BaseController
|
|||||||
* 导出公司列表
|
* 导出公司列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("导出公司列表")
|
@ApiOperation("导出公司列表")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:export')")
|
// @PreAuthorize("@ss.hasPermi('app:company:export')")
|
||||||
@Log(title = "公司", businessType = BusinessType.EXPORT)
|
@Log(title = "公司", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, Company company)
|
public void export(HttpServletResponse response, Company company)
|
||||||
@@ -67,7 +67,7 @@ public class CompanyController extends BaseController
|
|||||||
* 获取公司详细信息
|
* 获取公司详细信息
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取公司详细信息")
|
@ApiOperation("获取公司详细信息")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:query')")
|
// @PreAuthorize("@ss.hasPermi('app:company:query')")
|
||||||
@GetMapping(value = "/{companyId}")
|
@GetMapping(value = "/{companyId}")
|
||||||
public AjaxResult getInfo(@PathVariable("companyId") Long companyId)
|
public AjaxResult getInfo(@PathVariable("companyId") Long companyId)
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ public class CompanyController extends BaseController
|
|||||||
* 新增公司
|
* 新增公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("新增公司")
|
@ApiOperation("新增公司")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:add')")
|
// @PreAuthorize("@ss.hasPermi('app:company:add')")
|
||||||
@Log(title = "公司", businessType = BusinessType.INSERT)
|
@Log(title = "公司", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody Company company)
|
public AjaxResult add(@RequestBody Company company)
|
||||||
@@ -90,7 +90,7 @@ public class CompanyController extends BaseController
|
|||||||
* 修改公司
|
* 修改公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("修改公司")
|
@ApiOperation("修改公司")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:edit')")
|
// @PreAuthorize("@ss.hasPermi('app:company:edit')")
|
||||||
@Log(title = "公司", businessType = BusinessType.UPDATE)
|
@Log(title = "公司", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody Company company)
|
public AjaxResult edit(@RequestBody Company company)
|
||||||
@@ -102,7 +102,7 @@ public class CompanyController extends BaseController
|
|||||||
* 删除公司
|
* 删除公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("删除公司")
|
@ApiOperation("删除公司")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:remove')")
|
// @PreAuthorize("@ss.hasPermi('app:company:remove')")
|
||||||
@Log(title = "公司", businessType = BusinessType.DELETE)
|
@Log(title = "公司", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{companyIds}")
|
@DeleteMapping("/{companyIds}")
|
||||||
public AjaxResult remove(@PathVariable Long[] companyIds)
|
public AjaxResult remove(@PathVariable Long[] companyIds)
|
||||||
@@ -120,7 +120,7 @@ public class CompanyController extends BaseController
|
|||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
@ApiOperation("企业资质修改")
|
@ApiOperation("企业资质修改")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:approval:edit')")
|
// @PreAuthorize("@ss.hasPermi('app:company:approval:edit')")
|
||||||
@GetMapping("/approval/edit")
|
@GetMapping("/approval/edit")
|
||||||
public AjaxResult approvalEdit(Company company)
|
public AjaxResult approvalEdit(Company company)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user