|
@@ -8,6 +8,8 @@ import com.fs.sop.vo.QwSopTask;
|
|
|
import com.fs.statis.domain.FsStatisSalerWatch;
|
|
|
import com.fs.statis.dto.StatsWatchLogPageListDTO;
|
|
|
import com.fs.statis.service.FsStatisSalerWatchService;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -40,8 +42,16 @@ public class SalesWatchStatisController {
|
|
|
*/
|
|
|
@PostMapping("/seller/pageList")
|
|
|
public R sellerQueryList(@RequestBody StatsWatchLogPageListDTO param){
|
|
|
+ if(param.getPageNum() == null) {
|
|
|
+ param.setPageNum(1);
|
|
|
+ }
|
|
|
+ if(param.getPageSize() == null) {
|
|
|
+ param.setPageSize(10);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
+
|
|
|
List<FsStatisSalerWatch> list = fsStatisSalerWatchService.queryList(param);
|
|
|
- return R.ok().put("data",list);
|
|
|
+ return R.ok().put("data",new PageInfo<>(list));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -51,8 +61,16 @@ public class SalesWatchStatisController {
|
|
|
*/
|
|
|
@PostMapping("/period/pageList")
|
|
|
public R periodQueryList(@RequestBody StatsWatchLogPageListDTO param){
|
|
|
+ if(param.getPageNum() == null) {
|
|
|
+ param.setPageNum(1);
|
|
|
+ }
|
|
|
+ if(param.getPageSize() == null) {
|
|
|
+ param.setPageSize(10);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
+
|
|
|
List<FsStatisSalerWatch> list = fsStatisSalerWatchService.queryPeriodList(param);
|
|
|
- return R.ok().put("data", list);
|
|
|
+ return R.ok().put("data", new PageInfo<>(list));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -62,8 +80,15 @@ public class SalesWatchStatisController {
|
|
|
*/
|
|
|
@PostMapping("/everyDay/pageList")
|
|
|
public R everyDayQueryList(@RequestBody StatsWatchLogPageListDTO param){
|
|
|
+ if(param.getPageNum() == null) {
|
|
|
+ param.setPageNum(1);
|
|
|
+ }
|
|
|
+ if(param.getPageSize() == null) {
|
|
|
+ param.setPageSize(10);
|
|
|
+ }
|
|
|
+ PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
List<FsStatisSalerWatch> list = fsStatisSalerWatchService.queryTodayList(param);
|
|
|
- return R.ok().put("data", list);
|
|
|
+ return R.ok().put("data", new PageInfo<>(list));
|
|
|
}
|
|
|
|
|
|
/**
|