集成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,90 @@
<?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.inventoryTurnoverRuleDetail.repository.mapper.InventoryTurnoverRuleDetailMapper">
<resultMap type="com.mhd.wms.domain.inventoryTurnoverRuleDetail.repository.po.InventoryTurnoverRuleDetailPO" id="InventoryTurnoverRuleDetailResult">
<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="inventoryTurnoverRuleId" column="inventory_turnover_rule_id" />
<result property="batchAttributeId" column="batch_attribute_id" />
<result property="batchAttribute" column="batch_attribute" />
<result property="sortord" column="sortord" />
<result property="seqNum" column="seq_num" />
</resultMap>
<sql id="selectInventoryTurnoverRuleDetailPo">
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_turnover_rule_id, batch_attribute_id, batch_attribute, sortord, seq_num from inventory_turnover_rule_detail
where del_flag = 1
</sql>
<sql id="selectInventoryTurnoverRuleDetailPo1">
<where>
<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="inventoryTurnoverRuleId != null ">
and inventory_turnover_rule_id = #{inventoryTurnoverRuleId}
</if>
<if test="batchAttributeId != null and batchAttributeId != ''">
and batch_attribute_id = #{batchAttributeId}
</if>
<if test="batchAttribute != null and batchAttribute != ''">
and batch_attribute = #{batchAttribute}
</if>
<if test="sortord != null and sortord != ''">
and sortord = #{sortord}
</if>
<if test="seqNum != null ">
and seq_num = #{seqNum}
</if>
</where>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryTurnoverRuleDetail.repository.todo.InventoryTurnoverRuleDetailDO" resultMap="InventoryTurnoverRuleDetailResult">
<include refid="selectInventoryTurnoverRuleDetailPo"/>
<include refid="selectInventoryTurnoverRuleDetailPo1"/>
</select>
<select id="selectIdsByInventoryTurnoverRuleId" parameterType="java.lang.Long" resultType="java.lang.Long">
select id from inventory_turnover_rule_detail
where del_flag = 1 and inventory_turnover_rule_id = #{inventoryTurnoverRuleId}
</select>
<select id="selectListByInventoryTurnoverRuleId" parameterType="java.lang.Long" resultMap="InventoryTurnoverRuleDetailResult">
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_turnover_rule_id, batch_attribute_id, batch_attribute, sortord, seq_num from inventory_turnover_rule_detail
where del_flag = 1 and inventory_turnover_rule_id = #{id}
</select>
<select id="selectListByInventoryTurnoverRuleIds" parameterType="Long" resultType="java.lang.Long">
select id from inventory_turnover_rule_detail
where inventory_turnover_rule_id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</select>
</mapper>