|
@@ -11,7 +11,9 @@ import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.company.cache.ICompanyUserCacheService;
|
|
import com.fs.company.cache.ICompanyUserCacheService;
|
|
|
|
|
+import com.fs.course.domain.FsUserCompanyUser;
|
|
|
import com.fs.course.dto.BatchSendCourseDTO;
|
|
import com.fs.course.dto.BatchSendCourseDTO;
|
|
|
|
|
+import com.fs.course.mapper.FsUserCompanyUserMapper;
|
|
|
import com.fs.course.param.FsCourseLinkCreateParam;
|
|
import com.fs.course.param.FsCourseLinkCreateParam;
|
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
|
import com.fs.framework.security.LoginUser;
|
|
import com.fs.framework.security.LoginUser;
|
|
@@ -30,6 +32,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.checkerframework.checker.units.qual.A;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -64,6 +67,9 @@ public class FsUserAdminController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private OpenIMService openIMService;
|
|
private OpenIMService openIMService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FsUserCompanyUserMapper fsUserCompanyUserMapper;
|
|
|
|
|
+
|
|
|
@PreAuthorize("@ss.hasPermi('user:fsUser:list')")
|
|
@PreAuthorize("@ss.hasPermi('user:fsUser:list')")
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
|
@ApiOperation("会员列表(与移动端使用的相同查询)")
|
|
@ApiOperation("会员列表(与移动端使用的相同查询)")
|
|
@@ -154,6 +160,17 @@ public class FsUserAdminController extends BaseController {
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody FsUser fsUser)
|
|
public AjaxResult edit(@RequestBody FsUser fsUser)
|
|
|
{
|
|
{
|
|
|
|
|
+ //更新关联表状态
|
|
|
|
|
+ FsUserCompanyUser update = new FsUserCompanyUser();
|
|
|
|
|
+ update.setId(fsUser.getUcuId());
|
|
|
|
|
+ if(fsUser.getStatus() == 2 || fsUser.getStatus() == 0){//如果为禁用状态
|
|
|
|
|
+ update.setStatus(fsUser.getStatus());
|
|
|
|
|
+ fsUser.setStatus(null);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ update.setStatus(1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ fsUserCompanyUserMapper.updateById(update);
|
|
|
return toAjax(fsUserService.updateFsUser(fsUser));
|
|
return toAjax(fsUserService.updateFsUser(fsUser));
|
|
|
}
|
|
}
|
|
|
|
|
|