|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="DoumuProductHistory" id="DoumuProductHistoryResult">
|
|
<resultMap type="DoumuProductHistory" id="DoumuProductHistoryResult">
|
|
<result property="historyId" column="history_id" />
|
|
<result property="historyId" column="history_id" />
|
|
<result property="productId" column="product_id" />
|
|
<result property="productId" column="product_id" />
|
|
|
|
+ <result property="openid" column="openid" />
|
|
<result property="orderNumber" column="order_number" />
|
|
<result property="orderNumber" column="order_number" />
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
<result property="deliveryType" column="delivery_type" />
|
|
<result property="deliveryType" column="delivery_type" />
|
|
@@ -23,16 +24,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="lat" column="lat" />
|
|
<result property="lat" column="lat" />
|
|
<result property="flowType" column="flow_type" />
|
|
<result property="flowType" column="flow_type" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
|
|
+ <result property="goodsName" column="goods_name" />
|
|
|
|
+ <result property="totalPrice" column="total_price" />
|
|
<result property="mailNo" column="mail_no" />
|
|
<result property="mailNo" column="mail_no" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
|
+
|
|
|
|
+ <result property="beginTime" column="beginTime" />
|
|
|
|
+ <result property="endTime" column="endTime" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDoumuProductHistoryVo">
|
|
<sql id="selectDoumuProductHistoryVo">
|
|
- select history_id,order_number, product_id, name, delivery_type, phonenumber,quantity,province_id,province,city_id,city,county_id,county,lon,lat,status, address, flow_type, mail_no, create_by, create_time, update_by, update_time, remark from doumu_product_history
|
|
|
|
|
|
+ select history_id,order_number,openid, product_id, name, delivery_type, phonenumber,quantity,province_id,province,city_id,city,county_id,county,lon,lat,
|
|
|
|
+ status, address, flow_type,,goods_name,total_price, mail_no, create_by, create_time, update_by, update_time, remark from doumu_product_history
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectDoumuProductHistoryList" parameterType="DoumuProductHistory" resultMap="DoumuProductHistoryResult">
|
|
<select id="selectDoumuProductHistoryList" parameterType="DoumuProductHistory" resultMap="DoumuProductHistoryResult">
|
|
@@ -66,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into doumu_product_history
|
|
insert into doumu_product_history
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="productId != null">product_id,</if>
|
|
<if test="productId != null">product_id,</if>
|
|
|
|
+ <if test="openid != null "> openid,</if>
|
|
<if test="orderNumber != null "> order_number,</if>
|
|
<if test="orderNumber != null "> order_number,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="name != null and name != ''">name,</if>
|
|
<if test="deliveryType != null">delivery_type,</if>
|
|
<if test="deliveryType != null">delivery_type,</if>
|
|
@@ -82,6 +90,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lat != null">lat,</if>
|
|
<if test="lat != null">lat,</if>
|
|
<if test="flowType != null">flow_type,</if>
|
|
<if test="flowType != null">flow_type,</if>
|
|
<if test="status != null">status,</if>
|
|
<if test="status != null">status,</if>
|
|
|
|
+ <if test="goodsName != null">goods_name,</if>
|
|
|
|
+ <if test="totalPrice != null and totalPrice != 0">total_price,</if>
|
|
<if test="mailNo != null">mailNo,</if>
|
|
<if test="mailNo != null">mailNo,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -91,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="productId != null">#{productId},</if>
|
|
<if test="productId != null">#{productId},</if>
|
|
|
|
+ <if test="openid != null "> #{openid},</if>
|
|
<if test="orderNumber != null ">#{orderNumber},</if>
|
|
<if test="orderNumber != null ">#{orderNumber},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
<if test="deliveryType != null">#{deliveryType},</if>
|
|
<if test="deliveryType != null">#{deliveryType},</if>
|
|
@@ -106,6 +117,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lat != null">#{lat},</if>
|
|
<if test="lat != null">#{lat},</if>
|
|
<if test="flowType != null">#{flowType},</if>
|
|
<if test="flowType != null">#{flowType},</if>
|
|
<if test="status != null">#{status},</if>
|
|
<if test="status != null">#{status},</if>
|
|
|
|
+ <if test="goodsName != null">#{goodsName},</if>
|
|
|
|
+ <if test="totalPrice != null and totalPrice != 0">#{totalPrice},</if>
|
|
<if test="mailNo != null">#{mailNo},</if>
|
|
<if test="mailNo != null">#{mailNo},</if>
|
|
<if test="flowType != null">#{flowType},</if>
|
|
<if test="flowType != null">#{flowType},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -120,6 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update doumu_product_history
|
|
update doumu_product_history
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="productId != null">product_id = #{productId},</if>
|
|
<if test="productId != null">product_id = #{productId},</if>
|
|
|
|
+ <if test="openid != null "> openid = #{openid},</if>
|
|
<if test="orderNumber != null and orderNumber != ''"> order_number = #{orderNumber},</if>
|
|
<if test="orderNumber != null and orderNumber != ''"> order_number = #{orderNumber},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
<if test="deliveryType != null">delivery_type = #{deliveryType},</if>
|
|
<if test="deliveryType != null">delivery_type = #{deliveryType},</if>
|
|
@@ -135,6 +149,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lat != null">lat = #{lat},</if>
|
|
<if test="lat != null">lat = #{lat},</if>
|
|
<if test="flowType != null">flow_type = #{flowType},</if>
|
|
<if test="flowType != null">flow_type = #{flowType},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
+ <if test="goodsName != null">goods_name = #{goodsName},</if>
|
|
|
|
+ <if test="totalPrice != null and totalPrice != 0">total_price = #{totalPrice},</if>
|
|
<if test="mailNo != null">mailNo = #{mailNo},</if>
|
|
<if test="mailNo != null">mailNo = #{mailNo},</if>
|
|
<if test="flowType != null">flow_type = #{flowType},</if>
|
|
<if test="flowType != null">flow_type = #{flowType},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|