Browse Source

[feat]

售后管理 出货设备
新增mapper按sn号列表和料号查询设备信息方法;
新增service按sn号列表和料号查询设备信息接口;
dev
王晓迪 3 months ago
parent
commit
9d51a3931e
  1. 5
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java
  2. 5
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java
  3. 5
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java
  4. 8
      ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml

5
ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java

@ -115,4 +115,9 @@ public interface AfterSalesShippingDeviceMapper
* 根据物料号查询出货设备信息列表
* */
List<AfterSalesShippingDevice> selectShippingDeviceListByMaterialNo(AfterSalesShippingDevice afterSalesShippingDevice);
/*
* 根据sn号查询出货设备信息列表
* */
List<AfterSalesShippingDevice> selectShippingDeviceListBySnCodeAndMaterialNo(String[] snCode,String materialNo);
}

5
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java

@ -107,4 +107,9 @@ public interface IAfterSalesShippingDeviceService
* 保存出货设备详情
* */
int detailSaveAfterSalesShippingDevice(AfterSalesShippingDeviceEditDto dto);
/*
* 根据sn号查询出货设备信息列表
* */
List<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode,String materialNo);
}

5
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<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode,String materialNo) {
return afterSalesShippingDeviceMapper.selectShippingDeviceListBySnCodeAndMaterialNo(snCode,materialNo);
}
}

8
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}
</select>
<select id="selectShippingDeviceListBySnCodeAndMaterialNo" parameterType="String" resultMap="AfterSalesShippingDeviceResult">
<include refid="selectAfterSalesShippingDeviceVo"/>
where sn_code in
<foreach item="snCode" collection="array" open="(" separator="," close=")">
#{snCode}
</foreach>
and material_no = #{materialNo}
</select>
<insert id="insertAfterSalesShippingDevice" parameterType="AfterSalesShippingDevice" useGeneratedKeys="true" keyProperty="shippingDeviceCode">

Loading…
Cancel
Save