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}