first commit
This commit is contained in:
+108
@@ -0,0 +1,108 @@
|
||||
<?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.basic.domain.packDetail.repository.mapper.PackDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.basic.domain.packDetail.repository.po.PackDetailPO" id="PackDetailResult">
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="name" column="name" />
|
||||
<result property="number" column="number" />
|
||||
<result property="packMaterial" column="pack_material" />
|
||||
<result property="packSize" column="pack_size" />
|
||||
<result property="length" column="length" />
|
||||
<result property="width" column="width" />
|
||||
<result property="height" column="height" />
|
||||
<result property="volume" column="volume" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="ti" column="ti" />
|
||||
<result property="hi" column="hi" />
|
||||
<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="selectPackDetailPo">
|
||||
select pack_detail_id, organization_id, organization_name, top_organization_id, pack_id, unit_code, name, number, pack_material, pack_size, length, width, height, volume, weight, ti, hi, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from pack_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectPackDetailPo1">
|
||||
<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="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="number != null ">
|
||||
and number = #{number}
|
||||
</if>
|
||||
<if test="packMaterial != null and packMaterial != ''">
|
||||
and pack_material = #{packMaterial}
|
||||
</if>
|
||||
<if test="packSize != null and packSize != ''">
|
||||
and pack_size = #{packSize}
|
||||
</if>
|
||||
<if test="length != null ">
|
||||
and length = #{length}
|
||||
</if>
|
||||
<if test="width != null ">
|
||||
and width = #{width}
|
||||
</if>
|
||||
<if test="height != null ">
|
||||
and height = #{height}
|
||||
</if>
|
||||
<if test="volume != null ">
|
||||
and volume = #{volume}
|
||||
</if>
|
||||
<if test="weight != null ">
|
||||
and weight = #{weight}
|
||||
</if>
|
||||
<if test="ti != null ">
|
||||
and ti = #{ti}
|
||||
</if>
|
||||
<if test="hi != null ">
|
||||
and hi = #{hi}
|
||||
</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.basic.domain.packDetail.repository.todo.PackDetailDO" resultMap="PackDetailResult">
|
||||
<include refid="selectPackDetailPo"/>
|
||||
<include refid="selectPackDetailPo1"/>
|
||||
order by pack_detail_id asc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user