桌码下载修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user