集成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,98 @@
<?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.inOrderAbnormal.repository.mapper.InOrderAbnormalMapper">
<resultMap type="com.mhd.wms.domain.inOrderAbnormal.repository.po.InOrderAbnormalPO" id="InOrderAbnormalResult">
<result property="inOrderAbnormalId" column="in_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="inOrderNumber" column="in_order_number" />
<result property="receiptOrderNumber" column="receipt_order_number" />
<result property="shelfOrderNumber" column="shelf_order_number" />
<result property="quantity" column="quantity" />
<result property="actualQuantity" column="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="selectInOrderAbnormalPo">
a.in_order_abnormal_id, a.organization_id, a.organization_name, a.top_organization_id, a.abnormal_number, a.in_order_number,
a.receipt_order_number,a.shelf_order_number, a.type, a.quantity, a.actual_quantity, a.allow_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="selectInOrderAbnormalPo1">
<if test="inOrderAbnormalId != null ">
and a.in_order_abnormal_id = #{inOrderAbnormalId}
</if>
<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="inOrderNumber != null and inOrderNumber != ''">
and a.in_order_number = #{inOrderNumber}
</if>
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
and a.receipt_order_number = #{receiptOrderNumber}
</if>
<if test="shelfOrderNumber != null and shelfOrderNumber != ''">
and a.shelf_order_number = #{shelfOrderNumber}
</if>
<if test="quantity != null ">
and a.quantity = #{quantity}
</if>
<if test="actualQuantity != null ">
and a.actual_quantity = #{actualQuantity}
</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>
<select id="queryList" parameterType="com.mhd.wms.domain.inOrderAbnormal.repository.todo.InOrderAbnormalDO" resultMap="InOrderAbnormalResult">
select
<include refid="selectInOrderAbnormalPo"/>
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
from in_order_abnormal a
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
<where>
<include refid="selectInOrderAbnormalPo1"/>
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPoWhere"/>
</where>
ORDER BY a.create_time DESC
</select>
</mapper>