|
@@ -9,14 +9,14 @@ import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
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.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.param.FsCourseLinkCreateParam;
|
|
import com.fs.course.param.FsCourseLinkCreateParam;
|
|
|
|
|
+import com.fs.course.service.IFsUserCompanyUserService;
|
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
|
import com.fs.framework.security.LoginUser;
|
|
import com.fs.framework.security.LoginUser;
|
|
|
import com.fs.framework.service.TokenService;
|
|
import com.fs.framework.service.TokenService;
|
|
|
-
|
|
|
|
|
import com.fs.his.domain.FsUser;
|
|
import com.fs.his.domain.FsUser;
|
|
|
import com.fs.his.service.IFsUserService;
|
|
import com.fs.his.service.IFsUserService;
|
|
|
import com.fs.his.utils.PhoneUtil;
|
|
import com.fs.his.utils.PhoneUtil;
|
|
@@ -37,8 +37,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
-import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
|
|
-
|
|
|
|
|
@Api(tags = "会员管理接口")
|
|
@Api(tags = "会员管理接口")
|
|
|
@RestController
|
|
@RestController
|
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -64,6 +62,9 @@ public class FsUserAdminController extends BaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private OpenIMService openIMService;
|
|
private OpenIMService openIMService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsUserCompanyUserService fsUserCompanyUserService;
|
|
|
|
|
+
|
|
|
@PreAuthorize("@ss.hasPermi('user:fsUser:list')")
|
|
@PreAuthorize("@ss.hasPermi('user:fsUser:list')")
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
|
@ApiOperation("会员列表(与移动端使用的相同查询)")
|
|
@ApiOperation("会员列表(与移动端使用的相同查询)")
|
|
@@ -146,6 +147,15 @@ public class FsUserAdminController extends BaseController {
|
|
|
return AjaxResult.success(fsUserService.selectFsUserPageListVOByUserId(userId));
|
|
return AjaxResult.success(fsUserService.selectFsUserPageListVOByUserId(userId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取项目用户详细信息
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping(value = "/member/{id}")
|
|
|
|
|
+ public AjaxResult getMemberInfo(@PathVariable("id") Long id)
|
|
|
|
|
+ {
|
|
|
|
|
+ return AjaxResult.success(fsUserService.selectFsMemberUserPageListVOById(id));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 修改用户
|
|
* 修改用户
|
|
|
*/
|
|
*/
|
|
@@ -157,6 +167,17 @@ public class FsUserAdminController extends BaseController {
|
|
|
return toAjax(fsUserService.updateFsUser(fsUser));
|
|
return toAjax(fsUserService.updateFsUser(fsUser));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 修改用户
|
|
|
|
|
+ */
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('user:fsUser:edit')")
|
|
|
|
|
+ @Log(title = "用户", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @PutMapping("/member")
|
|
|
|
|
+ public AjaxResult editMemberUser(@RequestBody FsUserCompanyUser fsUser)
|
|
|
|
|
+ {
|
|
|
|
|
+ return toAjax(fsUserCompanyUserService.updateFsUserCompanyUser(fsUser));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@ApiOperation("后台会员批量发送课程消息")
|
|
@ApiOperation("后台会员批量发送课程消息")
|
|
|
@PostMapping("/batchSendCourse")
|
|
@PostMapping("/batchSendCourse")
|