|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
<resultMap type="DoumuProductInfo" id="DoumuProductInfoResult">
|
|
|
<result property="productId" column="product_id" />
|
|
|
+ <result property="openid" column="openid" />
|
|
|
<result property="orderNumber" column="order_number" />
|
|
|
<result property="name" column="name" />
|
|
|
<result property="deliveryType" column="delivery_type" />
|
|
@@ -22,6 +23,8 @@
|
|
|
<result property="lat" column="lat" />
|
|
|
<result property="flowType" column="flow_type" />
|
|
|
<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="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -34,7 +37,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDoumuProductInfoVo">
|
|
|
- select product_id,order_number, 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_info
|
|
|
+ select product_id,openid,order_number, 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_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDoumuProductInfoList" parameterType="DoumuProductInfo" resultMap="DoumuProductInfoResult">
|
|
@@ -66,6 +70,7 @@
|
|
|
<insert id="insertDoumuProductInfo" parameterType="DoumuProductInfo" useGeneratedKeys="true" keyProperty="productId">
|
|
|
insert into doumu_product_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="openid != null "> openid,</if>
|
|
|
<if test="orderNumber != null "> order_number,</if>
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
<if test="deliveryType != null">delivery_type,</if>
|
|
@@ -82,6 +87,8 @@
|
|
|
<if test="lat != null">lat,</if>
|
|
|
<if test="flowType != null">flow_type,</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="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -90,6 +97,7 @@
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="openid != null "> #{openid},</if>
|
|
|
<if test="orderNumber != null ">#{orderNumber},</if>
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
<if test="deliveryType != null">#{deliveryType},</if>
|
|
@@ -106,6 +114,8 @@
|
|
|
<if test="lat != null">#{lat},</if>
|
|
|
<if test="flowType != null">#{flowType},</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="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -118,6 +128,7 @@
|
|
|
<update id="updateDoumuProductInfo" parameterType="DoumuProductInfo">
|
|
|
update doumu_product_info
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="openid != null "> openid = #{openid},</if>
|
|
|
<if test="orderNumber != null and orderNumber != ''"> order_number = #{orderNumber},</if>
|
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
<if test="deliveryType != null">delivery_type = #{deliveryType},</if>
|
|
@@ -134,6 +145,8 @@
|
|
|
<if test="lat != null">lat = #{lat},</if>
|
|
|
<if test="flowType != null">flow_type = #{flowType},</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="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|