集成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,86 @@
<?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.qcRuleDetail.repository.mapper.QcRuleDetailMapper">
<resultMap type="com.mhd.wms.domain.qcRuleDetail.repository.po.QcRuleDetailPO" id="QcRuleDetailResult">
<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="qcRuleId" column="qc_rule_id" />
<result property="qcMinRange" column="qc_min_range" />
<result property="qcMaxRange" column="qc_max_range" />
<result property="numTypeId" column="num_type_id" />
<result property="numType" column="num_type" />
<result property="numRatio" column="num_ratio" />
</resultMap>
<sql id="selectQcRuleDetailPo">
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, qc_rule_id, qc_min_range, qc_max_range, num_type_id, num_type, num_ratio from qc_rule_detail
where del_flag = 1
</sql>
<sql id="selectQcRuleDetailPo1">
<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="qcRuleId != null ">
and qc_rule_id = #{qcRuleId}
</if>
<if test="qcMinRange != null and qcMinRange != ''">
and qc_min_range = #{qcMinRange}
</if>
<if test="qcMaxRange != null and qcMaxRange != ''">
and qc_max_range = #{qcMaxRange}
</if>
<if test="numTypeId != null ">
and num_type_id = #{numTypeId}
</if>
<if test="numType != null and numType != ''">
and num_type = #{numType}
</if>
<if test="numRatio != null ">
and num_ratio = #{numRatio}
</if>
</sql>
<select id="queryList" parameterType="com.mhd.wms.domain.qcRuleDetail.repository.todo.QcRuleDetailDO" resultMap="QcRuleDetailResult">
<include refid="selectQcRuleDetailPo"/>
<include refid="selectQcRuleDetailPo1"/>
</select>
<select id="selectListByQcRuleId" parameterType="java.lang.Long" resultMap="QcRuleDetailResult">
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, qc_rule_id, qc_min_range, qc_max_range, num_type_id, num_type, num_ratio from qc_rule_detail
where del_flag = 1 and qc_rule_id = #{id}
</select>
<select id="qcRuleDetailMapper" parameterType="Long" resultType="java.lang.Long">
select id from qc_rule_detail
where del_flag = 1 and qc_rule_id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</select>
</mapper>