桌码下载修改

This commit is contained in:
张松
2025-02-28 09:37:27 +08:00
parent 41faa3a5f1
commit 10e399bde5
3 changed files with 19 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryMethods;
import com.mybatisflex.core.query.QueryWrapper;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -38,11 +39,11 @@ public class ShopTableController {
*/
@SaAdminCheckPermission("shopTable:code")
@PostMapping("/code")
public void createCode(@RequestParam Integer num, HttpServletResponse response) throws IOException {
public void createCode(@RequestParam Integer num, HttpServletResponse response, HttpServletRequest request) throws IOException {
if (num > 100) {
throw new ApiNotPrintException("单次最多可获取100个");
}
shopTableService.createQrCode(StpKit.USER.getShopId(), num, response);
shopTableService.createQrCode(StpKit.USER.getShopId(), num, response, request);
}
/**