|
@@ -12,7 +12,6 @@ import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.ParseUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.company.dto.UserProjectDTO;
|
|
|
-import com.fs.course.domain.FsCourseWatchLog;
|
|
|
import com.fs.course.service.IFsCourseWatchLogService;
|
|
|
import com.fs.store.domain.FsUser;
|
|
|
import com.fs.store.param.h5.FsUserPageListParam;
|
|
@@ -221,4 +220,27 @@ public class FsUserController extends BaseController
|
|
|
Boolean r = userCompanyUserService.batchUpdateUserProjectStatus(ids, 1);
|
|
|
return ResponseResult.ok(r);
|
|
|
}
|
|
|
+
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:user:blacklist')")
|
|
|
+ @GetMapping("/blacklist")
|
|
|
+ @ApiOperation("黑名单")
|
|
|
+ public R blacklist(FsUserPageListParam param) {
|
|
|
+ PageInfo<FsUserPageListVO> fsUserPageListVOPageInfo = fsUserService.selectFsUserPageList(param);
|
|
|
+ for (FsUserPageListVO fsUserPageListVO : fsUserPageListVOPageInfo.getList()) {
|
|
|
+ fsUserPageListVO.setPhone(ParseUtils.parsePhone(fsUserPageListVO.getPhone()));
|
|
|
+ }
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
+ map.put("rows", fsUserPageListVOPageInfo.getList());
|
|
|
+ map.put("total", fsUserPageListVOPageInfo.getTotal());
|
|
|
+ return R.ok(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PreAuthorize("@ss.hasPermi('store:user:enabledBlackUsers')")
|
|
|
+ @PostMapping("/enabledBlackUsers")
|
|
|
+ @ApiOperation("批量启用会员")
|
|
|
+ public ResponseResult<Boolean> enabledBlackUsers(@RequestBody List<UserProjectDTO> ids) {
|
|
|
+ log.debug("批量启用会员 ids: {}", JSON.toJSONString(ids));
|
|
|
+ Boolean r = userCompanyUserService.batchUpdateUserProjectStatus(ids, 1);
|
|
|
+ return ResponseResult.ok(r);
|
|
|
+ }
|
|
|
}
|