|
|
@@ -10,6 +10,7 @@ import shop.alien.entity.store.dto.StoreInfoDto;
|
|
|
import shop.alien.entity.store.vo.StoreInfoVo;
|
|
|
import shop.alien.entity.store.vo.StoreMainInfoVo;
|
|
|
import shop.alien.storeplatform.service.StoreManageService;
|
|
|
+import shop.alien.storeplatform.util.LoginUserUtil;
|
|
|
|
|
|
/**
|
|
|
* web端商户店铺管理 前端控制器
|
|
|
@@ -105,9 +106,9 @@ public class StoreManageController {
|
|
|
@ApiImplicitParam(name = "storeId", value = "店铺ID", dataType = "Integer", paramType = "query", required = true)
|
|
|
})
|
|
|
@GetMapping("/getTodayIncome")
|
|
|
- public R<String> getTodayIncome(@RequestParam("storeId") Integer storeId) {
|
|
|
- log.info("StoreManageController.getTodayIncome?storeId={}", storeId);
|
|
|
+ public R<String> getTodayIncome() {
|
|
|
try {
|
|
|
+ Integer storeId = LoginUserUtil.getCurrentStoreId();
|
|
|
String income = storeManageService.getTodayIncome(storeId);
|
|
|
return R.data(income, "查询成功");
|
|
|
} catch (Exception e) {
|
|
|
@@ -122,9 +123,9 @@ public class StoreManageController {
|
|
|
@ApiImplicitParam(name = "storeId", value = "店铺ID", dataType = "Integer", paramType = "query", required = true)
|
|
|
})
|
|
|
@GetMapping("/getTodayOrderCount")
|
|
|
- public R<Integer> getTodayOrderCount(@RequestParam("storeId") Integer storeId) {
|
|
|
- log.info("StoreManageController.getTodayOrderCount?storeId={}", storeId);
|
|
|
+ public R<Integer> getTodayOrderCount() {
|
|
|
try {
|
|
|
+ Integer storeId = LoginUserUtil.getCurrentStoreId();
|
|
|
Integer count = storeManageService.getTodayOrderCount(storeId);
|
|
|
return R.data(count, "查询成功");
|
|
|
} catch (Exception e) {
|