1.修改查询条件regionCode like截取
2.修改给招聘会提供的接口
This commit is contained in:
@@ -124,6 +124,9 @@ public class CmsJobController extends BaseController
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Job job)
|
||||
{
|
||||
if(job==null){
|
||||
return error("参数为空!");
|
||||
}
|
||||
// 校验描述中的敏感词
|
||||
List<String> sensitiveWords = sensitiveWordChecker.checkSensitiveWords(job.getDescription());
|
||||
if (!sensitiveWords.isEmpty()) {
|
||||
@@ -147,6 +150,9 @@ public class CmsJobController extends BaseController
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Job job)
|
||||
{
|
||||
if(job==null){
|
||||
return error("参数为空!");
|
||||
}
|
||||
// 校验描述中的敏感词
|
||||
List<String> sensitiveWords = sensitiveWordChecker.checkSensitiveWords(job.getDescription());
|
||||
if (!sensitiveWords.isEmpty()) {
|
||||
@@ -168,6 +174,9 @@ public class CmsJobController extends BaseController
|
||||
@DeleteMapping("/{jobIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] jobIds)
|
||||
{
|
||||
if (jobIds == null || jobIds.length == 0) {
|
||||
return error("参数jobIds不能为空");
|
||||
}
|
||||
return toAjax(jobService.deleteJobByJobIds(jobIds));
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.ruoyi.cms.controller.cms;
|
||||
import com.ruoyi.cms.service.IAppUserService;
|
||||
import com.ruoyi.cms.service.ICompanyCollectionService;
|
||||
import com.ruoyi.cms.util.RoleUtils;
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.annotation.BussinessLog;
|
||||
import com.ruoyi.common.core.domain.entity.AppUser;
|
||||
import com.ruoyi.common.core.domain.entity.Company;
|
||||
@@ -88,36 +89,51 @@ public class CompanyController extends BaseController
|
||||
/**
|
||||
* 新增公司
|
||||
*/
|
||||
@Anonymous
|
||||
@ApiOperation("新增公司")
|
||||
// @PreAuthorize("@ss.hasPermi('app:company:add')")
|
||||
@Log(title = "公司", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody Company company)
|
||||
{
|
||||
if(company==null){
|
||||
return error("参数为空");
|
||||
}
|
||||
return toAjax(companyService.insertCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公司
|
||||
*/
|
||||
@Anonymous
|
||||
@ApiOperation("修改公司")
|
||||
// @PreAuthorize("@ss.hasPermi('app:company:edit')")
|
||||
@Log(title = "公司", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody Company company)
|
||||
{
|
||||
if(company==null){
|
||||
return error("参数为空");
|
||||
}
|
||||
if(company.getCompanyId()==null){
|
||||
return error("企业id为空");
|
||||
}
|
||||
return toAjax(companyService.updateCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公司
|
||||
*/
|
||||
@Anonymous
|
||||
@ApiOperation("删除公司")
|
||||
// @PreAuthorize("@ss.hasPermi('app:company:remove')")
|
||||
@Log(title = "公司", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{companyIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] companyIds)
|
||||
{
|
||||
if (companyIds == null || companyIds.length == 0) {
|
||||
return error("参数companyIds不能为空");
|
||||
}
|
||||
return toAjax(companyService.deleteCompanyByCompanyIds(companyIds));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user