fix:80405
This commit is contained in:
+4
@@ -124,6 +124,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@ApiOperationSupport(order = 3)
|
||||
@ApiOperation(value="联络人管理-添加", notes="联络人管理-添加")
|
||||
@PostMapping(value = "/add")
|
||||
@RequiresPermissions("system:contactManage:add")
|
||||
public Result<T> add(@Validated @RequestBody LawsContactManage lawsContactManage) {
|
||||
lawsContactManageService.add(lawsContactManage);
|
||||
return Result.OK(ResultCommon.OK);
|
||||
@@ -139,6 +140,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@ApiOperationSupport(order = 4)
|
||||
@ApiOperation(value="联络人管理-编辑", notes="联络人管理-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
@RequiresPermissions("system:contactManage:edit")
|
||||
public Result<T> edit(@Validated @RequestBody LawsContactManage lawsContactManage) {
|
||||
lawsContactManageService.editById(lawsContactManage);
|
||||
return Result.OK(ResultCommon.OK);
|
||||
@@ -154,6 +156,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@ApiOperationSupport(order = 5)
|
||||
@ApiOperation(value="联络人管理-通过id删除", notes="联络人管理-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
@RequiresPermissions("system:contactManage:delete")
|
||||
public Result<T> delete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
@@ -172,6 +175,7 @@ public class LawsContactManageController extends JeroController<LawsContactManag
|
||||
@ApiOperationSupport(order = 6)
|
||||
@ApiOperation(value="联络人管理-批量删除", notes="联络人管理-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
@RequiresPermissions("system:contactManage:delete")
|
||||
public Result<T> deleteBatch(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))){
|
||||
return Result.error(MessageUtils.getMessage(ResultCommon.SELECT_DATA));
|
||||
|
||||
Reference in New Issue
Block a user