仓储订单列表;

This commit is contained in:
王奎兴
2026-05-06 17:56:07 +08:00
parent d86639ba4b
commit 223da56807
8 changed files with 362 additions and 0 deletions
@@ -451,6 +451,109 @@
ORDER BY a.create_time IS NULL, a.create_time DESC
</select>
<select id="inAndOutList" parameterType="com.mhd.oms.domain.reserveStockInOrder.repository.todo.ReserveStockInOrderDO" resultType="com.mhd.oms.domain.reserveStockInOrder.repository.vo.InAndOutListVo">
select * from
(
SELECT
OUT_ORDER_ID AS orderId,
ORGANIZATION_ID AS organizationId,
organization_name AS topOrganizationId,
out_order_number AS orderNumber,
status,
warehouse_id AS warehouseId,
warehouse_code AS warehouseCode,
warehouse_name AS warehouseName,
shipper_id AS shipperId,
shipper_name AS shipperName,
quantity,
create_time AS createTime,
create_by AS createBy,
create_by_name AS createByName,
update_time AS updateTime,
update_by AS updateBy,
update_by_name AS updateByName,
del_flag AS delFlag,
issue_status AS issueStatus,
issue_time AS issueTime,
issue_id AS issueId,
issue_name AS issueName,
reservation_audit_id AS reservationAuditId,
reservation_audit_name AS reservationAuditName,
reservation_audit_time AS reservationAuditTime,
RESERVATION_ORDER_SOURCE AS reservationOrderSource,
DIRECTOR_ID AS directorId,
DIRECTOR_PHONE AS directorPhone,
DIRECTOR_NAME AS directorName,
'' AS storageTime,
'' AS inQuantity,
CUSTOMER_ID AS customerId,
CUSTOMER_NAME AS customerName,
CUSTOMER_CODE AS customerCode,
OUTBOUND_TIME AS outboundTime,
BUSINESS_ORDER_NO AS businessOrderNo,
'out' as inOrOut
FROM
RESERVE_STOCK_OUT_ORDER UNION ALL
SELECT
IN_ORDER_ID AS orderId,
ORGANIZATION_ID AS organizationId,
organization_name AS topOrganizationId,
in_order_number AS orderNumber,
status,
warehouse_id AS warehouseId,
warehouse_code AS warehouseCode,
warehouse_name AS warehouseName,
shipper_id AS shipperId,
shipper_name AS shipperName,
quantity,
create_time AS createTime,
create_by AS createBy,
create_by_name AS createByName,
update_time AS updateTime,
update_by AS updateBy,
update_by_name AS updateByName,
del_flag AS delFlag,
issue_status AS issueStatus,
issue_time AS issueTime,
issue_id AS issueId,
issue_name AS issueName,
reservation_audit_id AS reservationAuditId,
reservation_audit_name AS reservationAuditName,
reservation_audit_time AS reservationAuditTime,
RESERVATION_ORDER_SOURCE AS reservationOrderSource,
DIRECTOR_ID AS directorId,
DIRECTOR_PHONE AS directorPhone,
DIRECTOR_NAME AS directorName,
STORAGE_TIME AS storageTime,
IN_QUANTITY AS inQuantity,
CUSTOMER_ID AS customerId,
CUSTOMER_NAME AS customerName,
CUSTOMER_CODE AS customerCode,
NULL AS outboundTime,
'' AS businessOrderNo,
'in' as inOrOut
FROM
reserve_stock_in_order
) as a
where 1=1
<if test="organizationId != null">
and a.organization_id = #{organizationId}
</if>
<if test="topOrganizationId != null">
and a.top_organization_id = #{topOrganizationId}
</if>
<if test="warehouseId != null">
and a.warehouse_id = #{warehouseId}
</if>
<if test="shipperId != null">
and a.shipper_id = #{shipperId}
</if>
<if test="customerId != null">
and a.customer_id = #{customerId}
</if>
</select>
<select id="getinfo" parameterType="java.lang.Long" resultType="com.mhd.oms.domain.reservationStockInOrder.repository.po.MaterialBaseInfoPO">
select * from "NGWL_TEST_WMS".MATERIAL_BASE_INFO where MATERIAL_BASE_INFO_ID = #{id}
</select>