集成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,143 @@
<?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.serialNumber.repository.mapper.SerialNumberMapper">
<resultMap type="com.mhd.wms.domain.serialNumber.repository.po.SerialNumberPO" id="SerialNumberResult">
<result property="serialNumberId" column="serial_number_id" />
<result property="shelfOrderId" column="shelf_order_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="serialNumber" column="serial_number" />
<result property="inOrderNumber" column="in_order_number" />
<result property="materialBaseInfoId" column="material_base_info_id" />
<result property="materialDetailId" column="material_detail_id" />
<result property="materialCode" column="material_code" />
<result property="materialName" column="material_name" />
<result property="barCode" column="bar_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="batchNumber" column="batch_number" />
<result property="containerId" column="container_id" />
<result property="containerCode" column="container_code" />
<result property="containerType" column="container_type" />
<result property="containerTypeName" column="container_type_name" />
<result property="status" column="status" />
<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="selectSerialNumberPo">
select serial_number_id, shelf_order_id, organization_id, organization_name, top_organization_id, serial_number, in_order_number, material_base_info_id, material_code, material_name, bar_code, warehouse_id, warehouse_code, warehouse_name, storage_section_id,
storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, batch_number, container_id, container_code, container_type, container_type_name, status,
create_time, create_by, create_by_name, update_time, update_by, update_by_name, material_detail_id, del_flag from serial_number
where del_flag = 1
</sql>
<sql id="selectSerialNumberPo1">
<if test="shelfOrderId != null ">
and shelf_order_id = #{shelfOrderId}
</if>
<if test="organizationId != null ">
and organization_id = #{organizationId}
</if>
<if test="organizationName != null and organizationName != ''">
and organization_name like concat('%', #{organizationName}, '%')
</if>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</if>
<if test="serialNumber != null and serialNumber != ''">
and serial_number like concat('%', #{serialNumber}, '%')
</if>
<if test="inOrderNumber != null and inOrderNumber != ''">
and in_order_number = #{inOrderNumber}
</if>
<if test="materialBaseInfoId != null ">
and material_base_info_id = #{materialBaseInfoId}
</if>
<if test="materialDetailId != null ">
and material_detail_id = #{materialDetailId}
</if>
<if test="materialCode != null and materialCode != ''">
and material_code = #{materialCode}
</if>
<if test="materialName != null and materialName != ''">
and material_name like concat('%', #{materialName}, '%')
</if>
<if test="barCode != null and barCode != ''">
and bar_code = #{barCode}
</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="batchNumber != null and batchNumber != ''">
and batch_number = #{batchNumber}
</if>
<if test="containerId != null ">
and container_id = #{containerId}
</if>
<if test="containerCode != null and containerCode != ''">
and container_code = #{containerCode}
</if>
<if test="containerType != null and containerType != ''">
and container_type = #{containerType}
</if>
<if test="containerTypeName != null and containerTypeName != ''">
and container_type_name like concat('%', #{containerTypeName}, '%')
</if>
<if test="status != null ">
and status = #{status}
</if>
<if test="createByName != null and createByName != ''">
and create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="updateByName != null and updateByName != ''">
and update_by_name like concat('%', #{updateByName}, '%')
</if>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.serialNumber.repository.todo.SerialNumberDO" resultMap="SerialNumberResult">
<include refid="selectSerialNumberPo"/>
<include refid="selectSerialNumberPo1"/>
</select>
</mapper>