Browse Source

fix: 移除 getTableOrders 中重复的 selectTableQrcodeById 查询

verifyOwnership 已确认记录存在,无需再次查询。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
qmj 2 tháng trước cách đây
mục cha
commit
69748cd089

+ 0 - 5
ruoyi-admin/src/main/java/com/ruoyi/app/tableqrcode/TableQrcodeController.java

@@ -385,11 +385,6 @@ public class TableQrcodeController extends BaseController
         {
             return error("无权访问");
         }
-        TableQrcode tableQrcode = tableQrcodeService.selectTableQrcodeById(id);
-        if (tableQrcode == null)
-        {
-            return error("餐桌码不存在");
-        }
 
         IPage<PosOrder> pageParam = new Page<>(page, size);
         QueryWrapper<PosOrder> queryWrapper = new QueryWrapper<>();