|
|
@@ -21,6 +21,7 @@ import com.fs.course.param.newfs.FsUserCourseBeMemberImageParam;
|
|
|
import com.fs.course.param.newfs.FsUserCourseBeMemberParam;
|
|
|
import com.fs.course.service.IFsUserCompanyUserService;
|
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
|
+import com.fs.course.vo.FsUserCourseListPVO;
|
|
|
import com.fs.course.vo.newfs.FsCourseAnalysisVO;
|
|
|
import com.fs.his.domain.FsUser;
|
|
|
import com.fs.his.service.IFsUserProjectTagService;
|
|
|
@@ -30,7 +31,9 @@ import com.fs.store.param.h5.TagListParam;
|
|
|
import com.fs.store.param.h5.UserStatisticsCommonParam;
|
|
|
import com.fs.store.service.IFsUserCourseCountService;
|
|
|
import com.fs.store.vo.h5.*;
|
|
|
+import com.fs.system.mapper.SysDictDataMapper;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
+import com.fs.system.vo.DictVO;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -46,6 +49,7 @@ import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.fs.his.utils.PhoneUtil.encryptPhone;
|
|
|
|
|
|
@@ -60,7 +64,8 @@ public class FsUserController extends AppBaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private ICompanyUserService companyUserService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private SysDictDataMapper dictDataMapper;
|
|
|
@Autowired
|
|
|
private ICompanyTagUserService companyTagUserService;
|
|
|
|
|
|
@@ -92,7 +97,26 @@ public class FsUserController extends AppBaseController {
|
|
|
// PageInfo<FsUserPageListVO> pageInfo = new PageInfo<>(list);
|
|
|
return ResponseResult.ok(fsUserPageListVOPageInfo);
|
|
|
}
|
|
|
-
|
|
|
+ @Login
|
|
|
+ @PostMapping("/pageListByApp")
|
|
|
+ @ApiOperation("用户会员分页列表")
|
|
|
+ public ResponseResult<PageInfo<FsUser>> pageListByApp(@RequestBody FsUser param) {
|
|
|
+ log.debug("用户会员分页列表 param: {}", JSON.toJSONString(param));
|
|
|
+ param.setUserId(Long.parseLong(getUserId()));
|
|
|
+ List<FsUser> fsUsers = fsUserService.selectFsUserList(param);
|
|
|
+ List<DictVO> dictVOS = dictDataMapper.selectDictDataListByType("sys_course_project");
|
|
|
+ Map<String, String> projectMap = dictVOS.stream()
|
|
|
+ .collect(Collectors.toMap(DictVO::getDictValue, DictVO::getDictLabel));
|
|
|
+ for (FsUser vo : fsUsers) {
|
|
|
+ if (vo.getProjectId() != null) {
|
|
|
+ String projectName = projectMap.get(vo.getProjectId().toString());
|
|
|
+ if (projectName != null) {
|
|
|
+ vo.setProjectName(projectName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return ResponseResult.ok( new PageInfo<>(fsUsers));
|
|
|
+ }
|
|
|
@Login
|
|
|
@GetMapping("/allCompanyUser")
|
|
|
@ApiOperation("获取所有公司销售")
|