集成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,102 @@
<?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.inventoryAllocationRuleDetail.repository.mapper.InventoryAllocationRuleDetailMapper">
<resultMap type="com.mhd.wms.domain.inventoryAllocationRuleDetail.repository.po.InventoryAllocationRuleDetailPO" id="InventoryAllocationRuleDetailResult">
<result property="id" column="id" />
<result property="createBy" column="create_by" />
<result property="createByName" column="create_by_name" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateByName" column="update_by_name" />
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="inventoryAllocationRuleId" column="inventory_allocation_rule_id" />
<result property="locationKindId" column="location_kind_id" />
<result property="locationKind" column="location_kind" />
<result property="locationTypeId" column="location_type_id" />
<result property="locationType" column="location_type" />
<result property="mixingSlgId" column="mixing_slg_id" />
<result property="mixingSlg" column="mixing_slg" />
<result property="materialStatusId" column="material_status_id" />
<result property="materialStatus" column="material_status" />
<result property="seqNum" column="seq_num" />
</resultMap>
<sql id="selectInventoryAllocationRuleDetailPo">
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_allocation_rule_id, location_kind_id, location_kind, location_type_id, location_type, mixing_slg_id, mixing_slg, material_status_id, material_status, seq_num from inventory_allocation_rule_detail
where del_flag = 1
</sql>
<sql id="selectInventoryAllocationRuleDetailPo1">
<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>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</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="inventoryAllocationRuleId != null ">
and inventory_allocation_rule_id = #{inventoryAllocationRuleId}
</if>
<if test="locationKindId != null ">
and location_kind_id = #{locationKindId}
</if>
<if test="locationKind != null and locationKind != ''">
and location_kind = #{locationKind}
</if>
<if test="locationTypeId != null ">
and location_type_id = #{locationTypeId}
</if>
<if test="locationType != null and locationType != ''">
and location_type = #{locationType}
</if>
<if test="mixingSlgId != null ">
and mixing_slg_id = #{mixingSlgId}
</if>
<if test="mixingSlg != null and mixingSlg != ''">
and mixing_slg = #{mixingSlg}
</if>
<if test="materialStatusId != null ">
and material_status_id = #{materialStatusId}
</if>
<if test="materialStatus != null and materialStatus != ''">
and material_status = #{materialStatus}
</if>
<if test="seqNum != null ">
and seq_num = #{seqNum}
</if>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryAllocationRuleDetail.repository.todo.InventoryAllocationRuleDetailDO" resultMap="InventoryAllocationRuleDetailResult">
<include refid="selectInventoryAllocationRuleDetailPo"/>
<include refid="selectInventoryAllocationRuleDetailPo1"/>
</select>
<select id="selectListByInventoryAllocationRuleId" parameterType="java.lang.Long" resultMap="InventoryAllocationRuleDetailResult">
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_allocation_rule_id, location_kind_id, location_kind, location_type_id, location_type, mixing_slg_id, mixing_slg, material_status_id, material_status, seq_num from inventory_allocation_rule_detail
where del_flag = 1 and inventory_allocation_rule_id = #{id}
</select>
<select id="selectIdsByInventoryAllocationRuleIds" parameterType="java.lang.Long" resultType="java.lang.Long">
select id from inventory_allocation_rule_detail
where del_flag = 1 and inventory_allocation_rule_id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</select>
</mapper>