From 9fa971da1ccd252ff90ddfa9fad8c7b38f5a4e26 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Wed, 15 May 2024 16:45:45 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E6=96=B0=E5=A2=9E=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E6=A8=A1=E5=9D=97=EF=BC=9A=E5=8D=95=E7=8B=AC=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BE=9B=E5=BA=94=E5=95=86=E7=9A=84=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E3=80=81=E5=90=8D=E7=A7=B0=E7=9A=84=E6=9F=A5=E8=AF=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/system/controller/SysSupplierController.java | 9 +++++---- .../main/resources/mapper/system/SysSupplierMapper.xml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java index b4e5f6e1..b3ae544a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java @@ -138,11 +138,12 @@ public class SysSupplierController extends BaseController } - @PostMapping( "/getsuppliercode") + @PostMapping( "/getSupplier") @ResponseBody - public List code(){ - List list= sysSupplierService.selectSysSupplierBycode(); - return list; + public TableDataInfo getSupplier(SysSupplier sysSupplier){ + startPage(); + List list = sysSupplierService.selectSysSupplierBycode(); + return getDataTable(list); } diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysSupplierMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysSupplierMapper.xml index 00255e7a..1845a7b2 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/SysSupplierMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/SysSupplierMapper.xml @@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where supplier_id = #{supplierId}