店铺信息getById加入缓存

This commit is contained in:
张松
2025-03-01 18:06:41 +08:00
parent 4b5f62705d
commit 65cd160e61
2 changed files with 18 additions and 2 deletions

View File

@@ -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));
}
}