维他奶出入库业务单修改;
This commit is contained in:
+62
@@ -0,0 +1,62 @@
|
||||
<?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.oms.domain.reservationDeliveryDetailsLink.repository.mapper.ReservationDeliveryDetailsLinkMapper">
|
||||
|
||||
<resultMap type="com.mhd.oms.domain.reservationDeliveryDetailsLink.repository.po.ReservationDeliveryDetailsLinkPO" id="ReservationDeliveryDetailsLinkResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="category" column="category" />
|
||||
<result property="invoiceNumber" column="invoice_number" />
|
||||
<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" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectReservationDeliveryDetailsLinkPo">
|
||||
select id, create_by, create_time, update_by, update_time, del_flag, order_id, category, invoice_number, customer_number, delivery_name, box, bag, amount from RESERVATION_DELIVERY_DETAILS_LINK
|
||||
</sql>
|
||||
|
||||
<sql id="selectReservationDeliveryDetailsLinkPo1">
|
||||
<where>
|
||||
<if test="orderId != null ">
|
||||
and order_id = #{orderId}
|
||||
</if>
|
||||
<if test="category != null and category != ''">
|
||||
and category = #{category}
|
||||
</if>
|
||||
<if test="invoiceNumber != null and invoiceNumber != ''">
|
||||
and invoice_number = #{invoiceNumber}
|
||||
</if>
|
||||
<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>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.reservationDeliveryDetailsLink.repository.todo.ReservationDeliveryDetailsLinkDO" resultMap="ReservationDeliveryDetailsLinkResult">
|
||||
<include refid="selectReservationDeliveryDetailsLinkPo"/>
|
||||
<include refid="selectReservationDeliveryDetailsLinkPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user