|
@@ -11,6 +11,7 @@ import com.fdkankan.common.util.SecurityUtil;
|
|
import com.fdkankan.manage.common.CacheUtil;
|
|
import com.fdkankan.manage.common.CacheUtil;
|
|
import com.fdkankan.manage.common.OssPath;
|
|
import com.fdkankan.manage.common.OssPath;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
import com.fdkankan.manage.common.ResultCode;
|
|
|
|
+import com.fdkankan.manage.entity.CameraDetail;
|
|
import com.fdkankan.manage.entity.SysUser;
|
|
import com.fdkankan.manage.entity.SysUser;
|
|
import com.fdkankan.manage.entity.UserIncrement;
|
|
import com.fdkankan.manage.entity.UserIncrement;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
@@ -213,6 +214,11 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
if(userParam.getId() == null){
|
|
if(userParam.getId() == null){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
|
|
+ List<CameraDetail> list = cameraDetailService.getByUserId(userParam.getId());
|
|
|
|
+ if(list != null && list.size() >0){
|
|
|
|
+ throw new BusinessException(ResultCode.DEL_UCENTER_ERROR);
|
|
|
|
+ }
|
|
|
|
+
|
|
this.removeById(userParam.getId());
|
|
this.removeById(userParam.getId());
|
|
}
|
|
}
|
|
|
|
|