集成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,142 @@
<?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.materialGoodsRule.repository.mapper.MaterialGoodsRuleMapper">
<resultMap type="com.mhd.wms.domain.materialGoodsRule.repository.po.MaterialGoodsRulePO" id="MaterialGoodsRuleResult">
<result property="materialGoodsRuleId" column="material_goods_rule_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="batchCode" column="batch_code" />
<result property="batchName" column="batch_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="ruleId" column="rule_id" />
<result property="ruleCode" column="rule_code" />
<result property="ruleName" column="rule_name" />
<result property="specifyRuleId" column="specify_rule_id" />
<result property="specifyRuleCode" column="specify_rule_code" />
<result property="specifyRuleName" column="specify_rule_name" />
<result property="turnoverRuleId" column="turnover_rule_id" />
<result property="turnoverRuleCode" column="turnover_rule_code" />
<result property="turnoverRuleName" column="turnover_rule_name" />
<result property="distributeRuleId" column="distribute_rule_id" />
<result property="distributeRuleCode" column="distribute_rule_code" />
<result property="distributeRuleName" column="distribute_rule_name" />
<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="selectMaterialGoodsRulePo">
select material_goods_rule_id, organization_id, organization_name, top_organization_id, material_base_info_id, brand_id, batch_code, batch_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, rule_id, rule_code, rule_name, specify_rule_id, specify_rule_code, specify_rule_name, turnover_rule_id, turnover_rule_code, turnover_rule_name, distribute_rule_id, distribute_rule_code, distribute_rule_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_goods_rule
</sql>
<sql id="selectMaterialGoodsRulePo1">
<where>
<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="materialBaseInfoId != null ">
and material_base_info_id = #{materialBaseInfoId}
</if>
<if test="brandId != null ">
and brand_id = #{brandId}
</if>
<if test="batchCode != null and batchCode != ''">
and batch_code = #{batchCode}
</if>
<if test="batchName != null and batchName != ''">
and batch_name like concat('%', #{batchName}, '%')
</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="ruleId != null ">
and rule_id = #{ruleId}
</if>
<if test="ruleCode != null and ruleCode != ''">
and rule_code = #{ruleCode}
</if>
<if test="ruleName != null and ruleName != ''">
and rule_name like concat('%', #{ruleName}, '%')
</if>
<if test="specifyRuleId != null ">
and specify_rule_id = #{specifyRuleId}
</if>
<if test="specifyRuleCode != null and specifyRuleCode != ''">
and specify_rule_code = #{specifyRuleCode}
</if>
<if test="specifyRuleName != null and specifyRuleName != ''">
and specify_rule_name like concat('%', #{specifyRuleName}, '%')
</if>
<if test="turnoverRuleId != null ">
and turnover_rule_id = #{turnoverRuleId}
</if>
<if test="turnoverRuleCode != null and turnoverRuleCode != ''">
and turnover_rule_code = #{turnoverRuleCode}
</if>
<if test="turnoverRuleName != null and turnoverRuleName != ''">
and turnover_rule_name like concat('%', #{turnoverRuleName}, '%')
</if>
<if test="distributeRuleId != null ">
and distribute_rule_id = #{distributeRuleId}
</if>
<if test="distributeRuleCode != null and distributeRuleCode != ''">
and distribute_rule_code = #{distributeRuleCode}
</if>
<if test="distributeRuleName != null and distributeRuleName != ''">
and distribute_rule_name like concat('%', #{distributeRuleName}, '%')
</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>
<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.materialGoodsRule.repository.todo.MaterialGoodsRuleDO" resultMap="MaterialGoodsRuleResult">
<include refid="selectMaterialGoodsRulePo"/>
<include refid="selectMaterialGoodsRulePo1"/>
</select>
</mapper>