集成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,116 @@
<?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.outOrderAbnormal.repository.mapper.OutOrderAbnormalMapper">
<resultMap type="com.mhd.wms.domain.outOrderAbnormal.repository.po.OutOrderAbnormalPO" id="OutOrderAbnormalResult">
<result property="outOrderAbnormalId" column="out_order_abnormal_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="abnormalNumber" column="abnormal_number" />
<result property="outOrderNumber" column="out_order_number" />
<result property="pickingOrderNumber" column="picking_order_number" />
<result property="outTaskOrderNumber" column="out_task_order_number" />
<result property="type" column="type" />
<result property="quantity" column="quantity" />
<result property="actualQuantity" column="actual_quantity" />
<result property="abnormalActualQuantity" column="abnormal_actual_quantity" />
<result property="abnormalType" column="abnormal_type" />
<result property="abnormalReason" column="abnormal_reason" />
<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="selectOutOrderAbnormalPo">
a.out_order_abnormal_id, a.organization_id, a.organization_name, a.top_organization_id, a.abnormal_number, a.out_order_number, a.picking_order_number, a.out_task_order_number, a.type, a.quantity, a.actual_quantity, a.abnormal_actual_quantity, a.abnormal_type, a.abnormal_reason, 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="selectOutOrderAbnormalPo1">
<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="abnormalNumber != null and abnormalNumber != ''">
and a.abnormal_number = #{abnormalNumber}
</if>
<if test="outOrderNumber != null and outOrderNumber != ''">
and a.out_order_number = #{outOrderNumber}
</if>
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
and a.picking_order_number = #{pickingOrderNumber}
</if>
<if test="outTaskOrderNumber != null and outTaskOrderNumber != ''">
and a.out_task_order_number = #{outTaskOrderNumber}
</if>
<if test="type != null ">
and a.type = #{type}
</if>
<if test="quantity != null ">
and a.quantity = #{quantity}
</if>
<if test="actualQuantity != null ">
and a.actual_quantity = #{actualQuantity}
</if>
<if test="abnormalActualQuantity != null ">
and a.abnormal_actual_quantity = #{abnormalActualQuantity}
</if>
<if test="abnormalType != null ">
and a.abnormal_type = #{abnormalType}
</if>
<if test="abnormalReason != null and abnormalReason != ''">
and a.abnormal_reason = #{abnormalReason}
</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>
<sql id="joinStockOutOrderPoWhere">
<if test="warehouseId != null and warehouseId != '' ">
and b.warehouse_id = #{warehouseId}
</if>
<if test="shipperId != null and shipperId != ''">
and b.shipper_id = #{shipperId}
</if>
<if test="orderTypeCode != null and orderTypeCode != ''">
and a.order_type_code = #{orderTypeCode}
</if>
<choose>
<when test="delFlag != null"> and b.del_flag = #{delFlag} </when>
<otherwise> and b.del_flag = 1 </otherwise>
</choose>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.outOrderAbnormal.repository.todo.OutOrderAbnormalDO" resultMap="OutOrderAbnormalResult">
select
<include refid="selectOutOrderAbnormalPo"/>
<include refid="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper.joinStockOutOrderPo"/>
from out_order_abnormal a
left join stock_out_order b on a.out_order_number = b.out_order_number
<where>
<include refid="selectOutOrderAbnormalPo1"/>
<include refid="joinStockOutOrderPoWhere"/>
</where>
ORDER BY a.create_time DESC
</select>
</mapper>