录入配送单;
This commit is contained in:
+72
@@ -0,0 +1,72 @@
|
||||
<?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.deliveryDetailsLinkItems.repository.mapper.DeliveryDetailsLinkItemsMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.deliveryDetailsLinkItems.repository.po.DeliveryDetailsLinkItemsPO" id="DeliveryDetailsLinkItemsResult">
|
||||
<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="customerNumber" column="customer_number" />
|
||||
<result property="deliveryName" column="delivery_name" />
|
||||
<result property="box" column="box" />
|
||||
<result property="bag" column="bag" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="deliveryId" column="delivery_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectDeliveryDetailsLinkItemsPo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, customer_number, delivery_name, box, bag, amount, material_code, material_name, material_base_info_id, delivery_id from delivery_details_link
|
||||
</sql>
|
||||
|
||||
<sql id="selectDeliveryDetailsLinkItemsPo1">
|
||||
<where>
|
||||
<if test="customerNumber != null and customerNumber != ''">
|
||||
and customer_number = #{customerNumber}
|
||||
</if>
|
||||
<if test="deliveryName != null and deliveryName != ''">
|
||||
and delivery_name like concat('%', #{deliveryName}, '%')
|
||||
</if>
|
||||
<if test="box != null ">
|
||||
and box = #{box}
|
||||
</if>
|
||||
<if test="bag != null ">
|
||||
and bag = #{bag}
|
||||
</if>
|
||||
<if test="amount != null ">
|
||||
and amount = #{amount}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="deliveryId != null ">
|
||||
and delivery_id = #{deliveryId}
|
||||
</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.deliveryDetailsLinkItems.repository.todo.DeliveryDetailsLinkItemsDO" resultMap="DeliveryDetailsLinkItemsResult">
|
||||
<include refid="selectDeliveryDetailsLinkItemsPo"/>
|
||||
<include refid="selectDeliveryDetailsLinkItemsPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user