diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java index afe3d0d0..ed533449 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java @@ -115,4 +115,9 @@ public interface AfterSalesShippingDeviceMapper * 根据物料号查询出货设备信息列表 * */ List selectShippingDeviceListByMaterialNo(AfterSalesShippingDevice afterSalesShippingDevice); + + /* + * 根据sn号查询出货设备信息列表 + * */ + List selectShippingDeviceListBySnCodeAndMaterialNo(String[] snCode,String materialNo); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java index 18e68589..2f58f853 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java @@ -107,4 +107,9 @@ public interface IAfterSalesShippingDeviceService * 保存出货设备详情 * */ int detailSaveAfterSalesShippingDevice(AfterSalesShippingDeviceEditDto dto); + + /* + * 根据sn号查询出货设备信息列表 + * */ + List selectShippingDeviceListBySnCode(String[] snCode,String materialNo); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java index e6223b7a..816e0bb6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java @@ -249,4 +249,9 @@ public class AfterSalesShippingDeviceServiceImpl implements IAfterSalesShippingD public int detailSaveAfterSalesShippingDevice(AfterSalesShippingDeviceEditDto dto) { return 1; } + + @Override + public List selectShippingDeviceListBySnCode(String[] snCode,String materialNo) { + return afterSalesShippingDeviceMapper.selectShippingDeviceListBySnCodeAndMaterialNo(snCode,materialNo); + } } diff --git a/ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml b/ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml index 4fc8904b..8a497ec5 100644 --- a/ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml @@ -118,6 +118,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where material_no = #{materialNo} +