集成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,162 @@
<?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.inventoryWarningAnalyze.repository.mapper.InventoryWarningAnalyzeMapper">
<resultMap type="com.mhd.wms.domain.inventoryWarningAnalyze.repository.po.InventoryWarningAnalyzePO" id="InventoryWarningAnalyzeResult">
<result property="inventoryWarningAnalyzeId" column="inventory_warning_analyze_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="materialBaseInfoId" column="material_base_info_id" />
<result property="materialName" column="material_name" />
<result property="materialCode" column="material_code" />
<result property="warehouseId" column="warehouse_id" />
<result property="warehouseCode" column="warehouse_code" />
<result property="warehouseName" column="warehouse_name" />
<result property="storageSectionId" column="storage_section_id" />
<result property="storageCode" column="storage_code" />
<result property="storageName" column="storage_name" />
<result property="storageLocationId" column="storage_location_id" />
<result property="storageLocationCode" column="storage_location_code" />
<result property="storageLocationName" column="storage_location_name" />
<result property="shipperId" column="shipper_id" />
<result property="shipperName" column="shipper_name" />
<result property="shipperCode" column="shipper_code" />
<result property="packId" column="pack_id" />
<result property="packCode" column="pack_code" />
<result property="packName" column="pack_name" />
<result property="packDetailId" column="pack_detail_id" />
<result property="unitCode" column="unit_code" />
<result property="unitName" column="unit_name" />
<result property="unitQuantity" column="unit_quantity" />
<result property="inventoryQuantity" column="inventory_quantity" />
<result property="warningAnalyzeNumber" column="warning_analyze_number" />
<result property="warningAnalyzeType" column="warning_analyze_type" />
<result property="warningStandardQuantity" column="warning_standard_quantity" />
<result property="warningTime" column="warning_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" />
<result property="barCode" column="bar_code" />
</resultMap>
<sql id="selectInventoryWarningAnalyzePo">
select inventory_warning_analyze_id, organization_id, organization_name, top_organization_id,
material_base_info_id, material_name, material_code, warehouse_id, warehouse_code, warehouse_name,
storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code,
storage_location_name, shipper_id, shipper_name, shipper_code, pack_id, pack_code, pack_name,
pack_detail_id, unit_code, unit_name, unit_quantity, inventory_quantity, warning_analyze_number,
warning_analyze_type, warning_standard_quantity, warning_time, remark, create_time, create_by,
create_by_name, update_time, update_by, update_by_name, del_flag, bar_code from inventory_warning_analyze
</sql>
<sql id="selectInventoryWarningAnalyzePo1">
<where>
and del_flag = 1
<if test="organizationId != null ">
and organization_id = #{organizationId}
</if>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</if>
<if test="materialBaseInfoId != null ">
and material_base_info_id = #{materialBaseInfoId}
</if>
<if test="materialName != null and materialName != ''">
and material_name like concat('%', #{materialName}, '%')
</if>
<if test="materialCode != null and materialCode != ''">
and material_code = #{materialCode}
</if>
<if test="warehouseId != null ">
and warehouse_id = #{warehouseId}
</if>
<if test="warehouseCode != null and warehouseCode != ''">
and warehouse_code = #{warehouseCode}
</if>
<if test="warehouseName != null and warehouseName != ''">
and warehouse_name like concat('%', #{warehouseName}, '%')
</if>
<if test="storageSectionId != null ">
and storage_section_id = #{storageSectionId}
</if>
<if test="storageCode != null and storageCode != ''">
and storage_code = #{storageCode}
</if>
<if test="storageName != null and storageName != ''">
and storage_name like concat('%', #{storageName}, '%')
</if>
<if test="storageLocationId != null ">
and storage_location_id = #{storageLocationId}
</if>
<if test="storageLocationCode != null and storageLocationCode != ''">
and storage_location_code = #{storageLocationCode}
</if>
<if test="storageLocationName != null and storageLocationName != ''">
and storage_location_name like concat('%', #{storageLocationName}, '%')
</if>
<if test="shipperId != null ">
and shipper_id = #{shipperId}
</if>
<if test="shipperName != null and shipperName != ''">
and shipper_name like concat('%', #{shipperName}, '%')
</if>
<if test="shipperCode != null and shipperCode != ''">
and shipper_code = #{shipperCode}
</if>
<if test="packId != null ">
and pack_id = #{packId}
</if>
<if test="packCode != null and packCode != ''">
and pack_code = #{packCode}
</if>
<if test="packName != null and packName != ''">
and pack_name like concat('%', #{packName}, '%')
</if>
<if test="packDetailId != null ">
and pack_detail_id = #{packDetailId}
</if>
<if test="unitCode != null and unitCode != ''">
and unit_code = #{unitCode}
</if>
<if test="unitName != null and unitName != ''">
and unit_name like concat('%', #{unitName}, '%')
</if>
<if test="unitQuantity != null ">
and unit_quantity = #{unitQuantity}
</if>
<if test="inventoryQuantity != null ">
and inventory_quantity = #{inventoryQuantity}
</if>
<if test="warningAnalyzeNumber != null and warningAnalyzeNumber != ''">
and warning_analyze_number = #{warningAnalyzeNumber}
</if>
<if test="warningAnalyzeType != null ">
and warning_analyze_type = #{warningAnalyzeType}
</if>
<if test="warningStandardQuantity != null ">
and warning_standard_quantity = #{warningStandardQuantity}
</if>
<if test="warningTime != null ">
and warning_time = #{warningTime}
</if>
<choose>
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
<otherwise> and del_flag = 1 </otherwise>
</choose>
</where>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryWarningAnalyze.repository.todo.InventoryWarningAnalyzeDO" resultMap="InventoryWarningAnalyzeResult">
<include refid="selectInventoryWarningAnalyzePo"/>
<include refid="selectInventoryWarningAnalyzePo1"/>
</select>
</mapper>