Browse Source

[feat]新增供应商模块:单独查询供应商的编号、名称的查询功能

dev
zhangsiqi 6 months ago
parent
commit
9fa971da1c
  1. 9
      ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java
  2. 2
      ruoyi-admin/src/main/resources/mapper/system/SysSupplierMapper.xml

9
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<SysSupplier> list = sysSupplierService.selectSysSupplierBycode();
return getDataTable(list);
}

2
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}
</select>
<select id="selectSysSupplierBycode" resultMap="SysSupplierResult">
select supplier_code,supplier_name from sys_supplier
select supplier_id,supplier_code,supplier_name from sys_supplier where audit_status = 1
</select>
<select id="selectSysSupplierWithMaterial" resultMap="SysSupplierResult">

Loading…
Cancel
Save