店铺信息getById加入缓存
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.hutool.http.server.HttpServerResponse;
|
||||
import com.czg.account.dto.SysLoginDTO;
|
||||
import com.czg.account.service.AuthorizationService;
|
||||
import com.czg.account.service.PermissionService;
|
||||
import com.czg.account.service.ShopInfoService;
|
||||
import com.czg.account.service.ShopTableService;
|
||||
import com.czg.account.vo.LoginVO;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
@@ -32,6 +33,8 @@ public class AuthorizationController {
|
||||
private AuthorizationService authorizationService;
|
||||
@Resource
|
||||
private PermissionService permissionService;
|
||||
@Resource
|
||||
private ShopInfoService shopInfoService;
|
||||
|
||||
|
||||
/**
|
||||
@@ -64,11 +67,12 @@ public class AuthorizationController {
|
||||
ShopTableService shopTableService;
|
||||
@GetMapping("test")
|
||||
public CzgResult<?> login(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||
shopTableService.createQrCode(1L, 1, response, request);
|
||||
// shopTableService.createQrCode(1L, 1, response, request);
|
||||
|
||||
|
||||
// rabbitPublisher.sendOrderPrintMsg("552");
|
||||
// printMqListener.orderPrint("1");
|
||||
// return CzgResult.success(Map.of("token", StpKit.USER.getShopId()));
|
||||
return CzgResult.success();
|
||||
return CzgResult.success( shopInfoService.getById(1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user