|
@@ -7,9 +7,12 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import shop.alien.entity.result.R;
|
|
import shop.alien.entity.result.R;
|
|
|
import shop.alien.entity.store.StoreClockIn;
|
|
import shop.alien.entity.store.StoreClockIn;
|
|
|
|
|
+import shop.alien.entity.store.UserLoginInfo;
|
|
|
import shop.alien.entity.store.vo.StoreClockInVo;
|
|
import shop.alien.entity.store.vo.StoreClockInVo;
|
|
|
import shop.alien.store.annotation.TrackEvent;
|
|
import shop.alien.store.annotation.TrackEvent;
|
|
|
import shop.alien.store.service.StoreClockInService;
|
|
import shop.alien.store.service.StoreClockInService;
|
|
|
|
|
+import shop.alien.util.common.TokenInfo;
|
|
|
|
|
+import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@Api(tags = {"店铺打卡"})
|
|
@Api(tags = {"店铺打卡"})
|
|
@@ -88,9 +91,10 @@ public class StoreClockInController {
|
|
|
@ApiOperationSupport(order = 6)
|
|
@ApiOperationSupport(order = 6)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主键id", dataType = "Integer", paramType = "query")})
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主键id", dataType = "Integer", paramType = "query")})
|
|
|
@GetMapping("/getStoreClockInById")
|
|
@GetMapping("/getStoreClockInById")
|
|
|
- public R<StoreClockInVo> getStoreClockInById(Integer id) {
|
|
|
|
|
- log.info("StoreClockInController.getStoreClockInById?id={}", id);
|
|
|
|
|
- return R.data(storeClockInService.getStoreClockInById(id));
|
|
|
|
|
|
|
+ public R<StoreClockInVo> getStoreClockInById(@ApiIgnore @TokenInfo UserLoginInfo userLoginInfo, Integer id) {
|
|
|
|
|
+ Integer userId = userLoginInfo != null ? userLoginInfo.getUserId() : null;
|
|
|
|
|
+ log.info("StoreClockInController.getStoreClockInById?userId={},id={}", userId, id);
|
|
|
|
|
+ return R.data(storeClockInService.getStoreClockInById(id, userId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|