93 lines
4.3 KiB
XML
93 lines
4.3 KiB
XML
<?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.waveRule.repository.mapper.WaveRuleMapper">
|
|
|
|
<resultMap type="com.mhd.wms.domain.waveRule.repository.po.WaveRulePO" id="WaveRuleResult">
|
|
<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="ruleNum" column="rule_num" />
|
|
<result property="ruleName" column="rule_name" />
|
|
<result property="enabled" column="enabled" />
|
|
<result property="waveNumber" column="wave_number" />
|
|
<result property="orderNumMax" column="order_num_max" />
|
|
<result property="orderNumMin" column="order_num_min" />
|
|
<result property="materialTypeMax" column="material_type_max" />
|
|
<result property="materialTypeMin" column="material_type_min" />
|
|
<result property="materialNumMax" column="material_num_max" />
|
|
<result property="materialNumMin" column="material_num_min" />
|
|
<result property="isMoreShipper" column="is_more_shipper" />
|
|
<result property="isCrossDepot" column="is_cross_depot" />
|
|
<result property="remark" column="remark" />
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectWaveRulePo">
|
|
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, rule_num, rule_name, enabled, wave_number, order_num_max, order_num_min, material_type_max, material_type_min, material_num_max, material_num_min, is_more_shipper, is_cross_depot, remark from wave_rule
|
|
where del_flag = 1
|
|
</sql>
|
|
|
|
<sql id="selectWaveRulePo1">
|
|
|
|
<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="ruleNum != null and ruleNum != ''">
|
|
and rule_num = #{ruleNum}
|
|
</if>
|
|
<if test="ruleName != null and ruleName != ''">
|
|
and rule_name like concat('%', #{ruleName}, '%')
|
|
</if>
|
|
<if test="enabled != null ">
|
|
and enabled = #{enabled}
|
|
</if>
|
|
<if test="waveNumber != null ">
|
|
and wave_number = #{waveNumber}
|
|
</if>
|
|
<if test="orderNumMax != null ">
|
|
and order_num_max = #{orderNumMax}
|
|
</if>
|
|
<if test="orderNumMin != null ">
|
|
and order_num_min = #{orderNumMin}
|
|
</if>
|
|
<if test="materialTypeMax != null ">
|
|
and material_type_max = #{materialTypeMax}
|
|
</if>
|
|
<if test="materialTypeMin != null ">
|
|
and material_type_min = #{materialTypeMin}
|
|
</if>
|
|
<if test="materialNumMax != null ">
|
|
and material_num_max = #{materialNumMax}
|
|
</if>
|
|
<if test="materialNumMin != null ">
|
|
and material_num_min = #{materialNumMin}
|
|
</if>
|
|
<if test="isMoreShipper != null ">
|
|
and is_more_shipper = #{isMoreShipper}
|
|
</if>
|
|
<if test="isCrossDepot != null ">
|
|
and is_cross_depot = #{isCrossDepot}
|
|
</if>
|
|
</sql>
|
|
|
|
<select id="queryList" parameterType="com.mhd.wms.domain.waveRule.repository.todo.WaveRuleDO" resultMap="WaveRuleResult">
|
|
<include refid="selectWaveRulePo"/>
|
|
<include refid="selectWaveRulePo1"/>
|
|
</select>
|
|
</mapper> |