|
@@ -2,8 +2,12 @@ package io.platform.app.web.controller;
|
|
|
|
|
|
|
|
|
import io.platform.app.web.remote.MyPageRemote;
|
|
|
+import io.platform.base.common.exception.RRException;
|
|
|
+import io.platform.base.common.utils.ExecuteResult;
|
|
|
import io.platform.base.common.utils.R;
|
|
|
import io.platform.base.dto.ScanRecordPageDTO;
|
|
|
+import io.platform.base.dto.StoreScanRewordDTO;
|
|
|
+import io.platform.base.vo.StoreScanRewordVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -12,6 +16,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* TODO
|
|
|
* 1.我的页面Controller
|
|
@@ -44,7 +50,35 @@ public class MyPageController {
|
|
|
// 获取扫码记录
|
|
|
//Long storeStock = this.myPageRemote.getStoreStock(scanRecordPageDTO);
|
|
|
// 获取扫码记录
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页获取门店奖励列表
|
|
|
+ * @param storeScanRewordDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/getPageScanRewordList")
|
|
|
+ @ApiOperation("分页获取扫码奖励")
|
|
|
+ public R getPageScanRewordList (@RequestBody StoreScanRewordDTO storeScanRewordDTO) {
|
|
|
+ if (null == storeScanRewordDTO.getStoreId() || null == storeScanRewordDTO.getUserId()) {
|
|
|
+ throw new RRException("门店信息不能为空");
|
|
|
+ }
|
|
|
+ if (null == storeScanRewordDTO.getCurrent() || null == storeScanRewordDTO.getSize()) {
|
|
|
+ throw new RRException("分页参数不能为空");
|
|
|
+ }
|
|
|
+ ExecuteResult<List> result = this.myPageRemote.getPageScanReword(storeScanRewordDTO);
|
|
|
+ return R.ok().put("data",result.getResult());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+ @PostMapping("/getStoreTaskStatistics")
|
|
|
+ @ApiOperation("门店任务量统计")
|
|
|
+ public R getStoreTaskStatistics () {
|
|
|
|
|
|
return R.ok();
|
|
|
}
|