集成wms服务模块

This commit is contained in:
hjx
2026-01-19 18:55:23 +08:00
parent aab59723f9
commit 1655d57057
835 changed files with 96160 additions and 0 deletions
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mhd.wms.domain.waveOrder.repository.mapper.WaveOrderMapper">
<resultMap type="com.mhd.wms.domain.waveOrder.repository.po.WaveOrderPO" id="WaveOrderResult">
<result property="waveOrderId" column="wave_order_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="waveOrderNumber" column="wave_order_number" />
<result property="status" column="status" />
<result property="waveOrderTypeCode" column="wave_order_type_code" />
<result property="waveOrderTypeName" column="wave_order_type_name" />
<result property="outOrderQuantity" column="out_order_quantity" />
<result property="materialCategoryQuantity" column="material_category_quantity" />
<result property="quantity" column="quantity" />
<result property="allocationQuantity" column="allocation_quantity" />
<result property="pickingQuantity" column="picking_quantity" />
<result property="checkQuantity" column="check_quantity" />
<result property="outQuantity" column="out_quantity" />
<result property="warehouseId" column="warehouse_id" />
<result property="warehouseCode" column="warehouse_code" />
<result property="warehouseName" column="warehouse_name" />
<result property="shipperId" column="shipper_id" />
<result property="shipperName" column="shipper_name" />
<result property="orderTypeCode" column="order_type_code" />
<result property="orderTypeName" column="order_type_name" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="cancelOrder" column="cancel_order" />
<result property="cancelRemark" column="cancel_remark" />
<result property="cancelBy" column="cancel_by" />
<result property="cancelByName" column="cancel_by_name" />
<result property="cancelTime" column="cancel_time" />
<result property="remark" column="remark" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="createByName" column="create_by_name" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="updateByName" column="update_by_name" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectWaveOrderPo">
a.wave_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.wave_order_number, a.status, a.wave_order_type_code,
a.wave_order_type_name, a.out_order_quantity, a.material_category_quantity, a.quantity, a.weight_limit, a.volume_limit, a.allocation_quantity,
a.picking_quantity, a.check_quantity, a.out_quantity, a.warehouse_id, a.warehouse_code,
a.warehouse_name, a.shipper_id, a.shipper_name, a.order_type_code, a.order_type_name, a.customer_id, a.customer_name, a.cancel_order,
a.cancel_remark, a.cancel_by, a.cancel_by_name, a.cancel_time, a.remark, a.create_time, a.create_by, a.create_by_name, a.update_time,
a.update_by, a.update_by_name, a.del_flag
</sql>
<sql id="joinWaveOrderPo">
,b.out_order_quantity, b.material_category_quantity, b.quantity, b.allocation_quantity,
b.picking_quantity, b.check_quantity, b.out_quantity
</sql>
<sql id="selectWaveOrderPo1">
<if test="organizationId != null ">
and a.organization_id = #{organizationId}
</if>
<if test="organizationName != null and organizationName != ''">
and a.organization_name like concat('%', #{organizationName}, '%')
</if>
<if test="topOrganizationId != null ">
and a.top_organization_id = #{topOrganizationId}
</if>
<if test="waveOrderNumber != null and waveOrderNumber != ''">
and a.wave_order_number = #{waveOrderNumber}
</if>
<if test="status != null ">
and a.status = #{status}
</if>
<if test="waveOrderTypeCode != null and waveOrderTypeCode != ''">
and a.wave_order_type_code = #{waveOrderTypeCode}
</if>
<if test="waveOrderTypeName != null and waveOrderTypeName != ''">
and a.wave_order_type_name like concat('%', #{waveOrderTypeName}, '%')
</if>
<if test="outOrderQuantity != null ">
and a.out_order_quantity = #{outOrderQuantity}
</if>
<if test="materialCategoryQuantity != null ">
and a.material_category_quantity = #{materialCategoryQuantity}
</if>
<if test="quantity != null ">
and a.quantity = #{quantity}
</if>
<if test="allocationQuantity != null ">
and a.allocation_quantity = #{allocationQuantity}
</if>
<if test="pickingQuantity != null ">
and a.picking_quantity = #{pickingQuantity}
</if>
<if test="checkQuantity != null ">
and a.check_quantity = #{checkQuantity}
</if>
<if test="outQuantity != null ">
and a.out_quantity = #{outQuantity}
</if>
<if test="warehouseId != null ">
and a.warehouse_id = #{warehouseId}
</if>
<if test="warehouseCode != null and warehouseCode != ''">
and a.warehouse_code = #{warehouseCode}
</if>
<if test="warehouseName != null and warehouseName != ''">
and a.warehouse_name like concat('%', #{warehouseName}, '%')
</if>
<if test="shipperId != null ">
and a.shipper_id = #{shipperId}
</if>
<if test="shipperName != null and shipperName != ''">
and a.shipper_name like concat('%', #{shipperName}, '%')
</if>
<if test="orderTypeCode != null and orderTypeCode != ''">
and a.order_type_code = #{orderTypeCode}
</if>
<if test="orderTypeName != null and orderTypeName != ''">
and a.order_type_name like concat('%', #{orderTypeName}, '%')
</if>
<if test="customerId != null ">
and a.customer_id = #{customerId}
</if>
<if test="customerName != null and customerName != ''">
and a.customer_name like concat('%', #{customerName}, '%')
</if>
<if test="cancelOrder != null ">
and a.cancel_order = #{cancelOrder}
</if>
<if test="cancelRemark != null and cancelRemark != ''">
and a.cancel_remark = #{cancelRemark}
</if>
<if test="cancelBy != null ">
and a.cancel_by = #{cancelBy}
</if>
<if test="cancelByName != null and cancelByName != ''">
and a.cancel_by_name like concat('%', #{cancelByName}, '%')
</if>
<if test="cancelTime != null ">
and a.cancel_time = #{cancelTime}
</if>
<if test="createByName != null and createByName != ''">
and a.create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="updateByName != null and updateByName != ''">
and a.update_by_name like concat('%', #{updateByName}, '%')
</if>
<choose>
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
<otherwise> and a.del_flag = 1 </otherwise>
</choose>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.waveOrder.repository.todo.WaveOrderDO" resultMap="WaveOrderResult">
select
<include refid="selectWaveOrderPo"/>
from wave_order a
<where>
<include refid="selectWaveOrderPo1"/>
</where>
order by a.create_time desc
</select>
</mapper>