Browse Source

[feat]

仓库管理 出货单
新增出货单mapper按生产单号总和出库数方法;
dev
王晓迪 3 months ago
parent
commit
64efd94ae2
  1. 5
      ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java
  2. 5
      ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml

5
ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java

@ -104,4 +104,9 @@ public interface WarehouseOutOrderMapper
* */ * */
WarehouseOutOrder selectWarehouseOutOrderByShippingDeviceId(String shippingDeviceId); WarehouseOutOrder selectWarehouseOutOrderByShippingDeviceId(String shippingDeviceId);
/*
* 根据生产单号查询出库单数据
* */
public int sumOutOrderQuantityByMakeNo(String makeNo);
} }

5
ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml

@ -102,6 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where shipping_device_id = #{shippingDeviceId} where shipping_device_id = #{shippingDeviceId}
</select> </select>
<select id="sumOutOrderQuantityByMakeNo" parameterType="String" resultType="int">
select sum(out_order_sum) as totalQuantity
from warehouse_out_order
where make_no = #{makeNo} and warehouse_out_status = '7'
</select>
<insert id="insertWarehouseOutOrder" parameterType="WarehouseOutOrder" useGeneratedKeys="true" keyProperty="outOrderId"> <insert id="insertWarehouseOutOrder" parameterType="WarehouseOutOrder" useGeneratedKeys="true" keyProperty="outOrderId">
insert into warehouse_out_order insert into warehouse_out_order

Loading…
Cancel
Save