|
@@ -14,12 +14,16 @@ import com.fs.store.param.h5.FsUserPageListParam;
|
|
import com.fs.store.service.IFsUserService;
|
|
import com.fs.store.service.IFsUserService;
|
|
import com.fs.store.vo.FSUserVO;
|
|
import com.fs.store.vo.FSUserVO;
|
|
import com.fs.store.vo.h5.FsUserPageListVO;
|
|
import com.fs.store.vo.h5.FsUserPageListVO;
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
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;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 用户Controller
|
|
* 用户Controller
|
|
@@ -153,10 +157,14 @@ public class FsUserController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('store:user:darkRoomList')")
|
|
@PreAuthorize("@ss.hasPermi('store:user:darkRoomList')")
|
|
@GetMapping("/darkRoomList")
|
|
@GetMapping("/darkRoomList")
|
|
@ApiOperation("小黑屋")
|
|
@ApiOperation("小黑屋")
|
|
- public TableDataInfo darkRoomList(FsUserPageListParam param) {
|
|
|
|
- startPage();
|
|
|
|
- List<FsUserPageListVO> list = fsUserService.selectFsUserPageList(param);
|
|
|
|
- return getDataTable(list);
|
|
|
|
|
|
+ public R darkRoomList(FsUserPageListParam param) {
|
|
|
|
+// startPage();
|
|
|
|
+ PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
|
+ PageInfo<FsUserPageListVO> fsUserPageListVOPageInfo = fsUserService.selectFsUserPageList(param);
|
|
|
|
+ Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
+ map.put("rows", fsUserPageListVOPageInfo.getList());
|
|
|
|
+ map.put("total", fsUserPageListVOPageInfo.getList().size());
|
|
|
|
+ return R.ok(map);
|
|
}
|
|
}
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('store:user:enabledUsers')")
|
|
@PreAuthorize("@ss.hasPermi('store:user:enabledUsers')")
|