|
@@ -12,6 +12,7 @@
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
<result property="deliveryType" column="delivery_type" />
|
|
<result property="deliveryType" column="delivery_type" />
|
|
<result property="phonenumber" column="phonenumber" />
|
|
<result property="phonenumber" column="phonenumber" />
|
|
|
|
+ <result property="contactNumber" column="contact_number" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="provinceId" column="province_id" />
|
|
<result property="provinceId" column="province_id" />
|
|
<result property="province" column="province" />
|
|
<result property="province" column="province" />
|
|
@@ -38,7 +39,7 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDoumuProductInfoVo">
|
|
<sql id="selectDoumuProductInfoVo">
|
|
- select product_id,openid,order_number, name, delivery_type, phonenumber,quantity,province_id,province,city_id,city,county_id,county,lon,lat,status, address,
|
|
|
|
|
|
+ select product_id,openid,order_number, name, delivery_type, phonenumber,contact_number,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
|
|
flow_type,goods_name,total_price, mail_no, create_by, create_time, update_by, update_time, remark from doumu_product_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -68,6 +69,14 @@
|
|
where product_id = #{productId}
|
|
where product_id = #{productId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectDoumuProductInfoByProductIdList" resultMap="DoumuProductInfoResult">
|
|
|
|
+ <include refid="selectDoumuProductInfoVo"/>
|
|
|
|
+ where product_id in
|
|
|
|
+ <foreach collection="productIdList" index="index" item="productId" open="(" separator="," close=")">
|
|
|
|
+ #{productId}
|
|
|
|
+ </foreach>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<insert id="insertDoumuProductInfo" parameterType="DoumuProductInfo" useGeneratedKeys="true" keyProperty="productId">
|
|
<insert id="insertDoumuProductInfo" parameterType="DoumuProductInfo" useGeneratedKeys="true" keyProperty="productId">
|
|
insert into doumu_product_info
|
|
insert into doumu_product_info
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -76,6 +85,7 @@
|
|
<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>
|
|
<if test="phonenumber != null">phonenumber,</if>
|
|
<if test="phonenumber != null">phonenumber,</if>
|
|
|
|
+ <if test="contactNumber != null">contact_number,</if>
|
|
<if test="quantity != null">quantity,</if>
|
|
<if test="quantity != null">quantity,</if>
|
|
<if test="provinceId != null">province_id,</if>
|
|
<if test="provinceId != null">province_id,</if>
|
|
<if test="province != null">province,</if>
|
|
<if test="province != null">province,</if>
|
|
@@ -103,6 +113,7 @@
|
|
<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>
|
|
<if test="phonenumber != null">#{phonenumber},</if>
|
|
<if test="phonenumber != null">#{phonenumber},</if>
|
|
|
|
+ <if test="contactNumber != null">#{contactNumber},</if>
|
|
<if test="quantity != null">#{quantity},</if>
|
|
<if test="quantity != null">#{quantity},</if>
|
|
<if test="provinceId != null">#{provinceId},</if>
|
|
<if test="provinceId != null">#{provinceId},</if>
|
|
<if test="province != null">#{province},</if>
|
|
<if test="province != null">#{province},</if>
|
|
@@ -134,6 +145,7 @@
|
|
<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>
|
|
<if test="phonenumber != null">phonenumber = #{phonenumber},</if>
|
|
<if test="phonenumber != null">phonenumber = #{phonenumber},</if>
|
|
|
|
+ <if test="contactNumber != null">contact_number = #{contactNumber},</if>
|
|
<if test="quantity != null">quantity = #{quantity},</if>
|
|
<if test="quantity != null">quantity = #{quantity},</if>
|
|
<if test="provinceId != null">province_id = #{provinceId},</if>
|
|
<if test="provinceId != null">province_id = #{provinceId},</if>
|
|
<if test="province != null">province = #{province},</if>
|
|
<if test="province != null">province = #{province},</if>
|