台桌批量生成桌码接口
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.utils.ServletUtil;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
@@ -16,6 +17,8 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.multipart.support.StandardMultipartHttpServletRequest;
|
||||
|
||||
import java.net.http.HttpResponse;
|
||||
|
||||
|
||||
/**
|
||||
* 方法调用统一切面处理
|
||||
@@ -40,7 +43,7 @@ public class ControllerAspect {
|
||||
|
||||
// 如果请求参数中包含HttpServletRequest,剔除HttpServletRequest
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (args[i] instanceof HttpServletRequest) {
|
||||
if (args[i] instanceof HttpServletRequest || args[i] instanceof HttpServletResponse) {
|
||||
args[i] = null;
|
||||
}else if (args[i] instanceof MultipartFile) {
|
||||
args[i] = "上传图片";
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.table.ShopTableAddDTO;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.ShopTable;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 台桌配置 服务层。
|
||||
@@ -13,4 +17,6 @@ import com.czg.account.entity.ShopTable;
|
||||
public interface ShopTableService extends IService<ShopTable> {
|
||||
|
||||
Boolean add(Long shopId, ShopTableAddDTO shopTableAddDTO);
|
||||
|
||||
void createQrCode(Long shopId, Integer num, HttpServletResponse response) throws IOException;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user