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