|
|
@@ -1,5 +1,6 @@
|
|
|
package shop.alien.store.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -11,6 +12,7 @@ import shop.alien.entity.store.UserLoginInfo;
|
|
|
import shop.alien.entity.store.vo.StoreClockInVo;
|
|
|
import shop.alien.store.annotation.TrackEvent;
|
|
|
import shop.alien.store.service.StoreClockInService;
|
|
|
+import shop.alien.util.common.JwtUtil;
|
|
|
import shop.alien.util.common.TokenInfo;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
@@ -51,6 +53,12 @@ public class StoreClockInController {
|
|
|
@GetMapping("/getStoreClockInList")
|
|
|
public R<IPage<StoreClockInVo>> getStoreClockInList(Integer userId, int page, int size, String phoneId, int mySelf, @RequestParam(required = false) Integer storeId) {
|
|
|
log.info("StoreClockInController.getStoreClockInList?userId={},page={},size={},phoneId={},mySelf={},storeId={}", userId, page, size, phoneId, mySelf,storeId);
|
|
|
+ if (userId==null){
|
|
|
+ JSONObject data = JwtUtil.getCurrentUserInfo();
|
|
|
+ if (null != data) {
|
|
|
+ userId = data.getInteger("userId");
|
|
|
+ }
|
|
|
+ }
|
|
|
return R.data(storeClockInService.getStoreClockInList(userId, page, size, phoneId, mySelf,storeId));
|
|
|
}
|
|
|
|