集成wms服务模块
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
<?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.materialMoreDetail.repository.mapper.MaterialMoreDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialMoreDetail.repository.po.MaterialMoreDetailPO" id="MaterialMoreDetailResult">
|
||||
<result property="materialMoreDetailId" column="material_more_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialDetailUniqueId" column="material_detail_unique_id" />
|
||||
<result property="batchId" column="batch_id" />
|
||||
<result property="batchDetailId" column="batch_detail_id" />
|
||||
<result property="batchLabels" column="batch_labels" />
|
||||
<result property="inputControl" column="input_control" />
|
||||
<result property="attributeFormat" column="attribute_format" />
|
||||
<result property="attributeOption" column="attribute_option" />
|
||||
<result property="attributeValue" column="attribute_value" />
|
||||
<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="selectMaterialMoreDetailPo">
|
||||
a.material_more_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.order_number, a.material_detail_unique_id, a.batch_id, a.batch_detail_id,
|
||||
a.batch_labels, a.input_control, a.attribute_format, a.attribute_option, a.attribute_value, a.remark, a.create_time, a.create_by, a.create_by_name,
|
||||
a.update_time, a.update_by, a.update_by_name, a.del_flag
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialMoreDetailPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="materialDetailUniqueId != null ">
|
||||
and a.material_detail_unique_id = #{materialDetailUniqueId}
|
||||
</if>
|
||||
<if test="batchId != null ">
|
||||
and a.batch_id = #{batchId}
|
||||
</if>
|
||||
<if test="batchDetailId != null ">
|
||||
and a.batch_detail_id = #{batchDetailId}
|
||||
</if>
|
||||
<if test="batchLabels != null and batchLabels != ''">
|
||||
and a.batch_labels = #{batchLabels}
|
||||
</if>
|
||||
<if test="inputControl != null ">
|
||||
and a.input_control = #{inputControl}
|
||||
</if>
|
||||
<if test="attributeFormat != null and attributeFormat != ''">
|
||||
and a.attribute_format = #{attributeFormat}
|
||||
</if>
|
||||
<if test="attributeOption != null and attributeOption != ''">
|
||||
and a.attribute_option = #{attributeOption}
|
||||
</if>
|
||||
<if test="attributeValue != null and attributeValue != ''">
|
||||
and a.attribute_value = #{attributeValue}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="orderNumbers != null and orderNumbers.size > 0 ">
|
||||
and a.order_number in
|
||||
<foreach collection="orderNumbers" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialMoreDetail.repository.todo.MaterialMoreDetailDO" resultMap="MaterialMoreDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialMoreDetailPo"/>
|
||||
from material_more_detail a
|
||||
<where>
|
||||
<include refid="selectMaterialMoreDetailPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user