|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.store.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
@@ -165,6 +166,9 @@ public class FsUserController extends BaseController
|
|
|
@DeleteMapping("/delete/{id}")
|
|
|
public AjaxResult delete(@PathVariable Long id)
|
|
|
{
|
|
|
+ if (ObjectUtils.isEmpty(id)){
|
|
|
+ return AjaxResult.error("没有关联项目,请直接去会员管理进行处理!");
|
|
|
+ }
|
|
|
return toAjax(userCompanyUserService.deleteFsUserCompanyUserById(id));
|
|
|
}
|
|
|
|