| | |
| | | <result property="storeName" column="shop_name" /> |
| | | <result property="orderType" column="order_type" /> |
| | | <result property="applyStatus" column="apply_status" /> |
| | | <result property="scorePay" column="score_pay" /> |
| | | <result property="companyId" column="company_id" /> |
| | | </resultMap> |
| | | |
| | |
| | | <result property="postage" column="postage" /> |
| | | <result property="orderType" column="order_type" /> |
| | | <result property="storeName" column="shop_name" /> |
| | | <result property="scorePay" column="score_pay" /> |
| | | <result property="companyId" column="company_id" /> |
| | | <result property="activityType" column="activity_type" /> |
| | | <!--支付时间--> |
| | |
| | | postage, |
| | | order_type, |
| | | activity_type, |
| | | score_pay, |
| | | company_id |
| | | </sql> |
| | | |
| | |
| | | #{item.postage}, |
| | | #{item.orderType}, |
| | | #{item.activityType}, |
| | | #{item.scorePay}, |
| | | #{item.companyId} |
| | | </sql> |
| | | |
| | |
| | | <if test="_parameter.containsKey('orderType')"> |
| | | order_type = #{orderType}, |
| | | </if> |
| | | <if test="_parameter.containsKey('scorePay')"> |
| | | score_pay = #{scorePay}, |
| | | </if> |
| | | </set> |
| | | WHERE id=#{id} |
| | | </update> |
| | |
| | | </if> |
| | | <if test="record.postage != null and record.postage != '' "> |
| | | postage = #{record.postage}, |
| | | </if> |
| | | <if test="record.scorePay != null and record.scorePay != '' "> |
| | | score_pay = #{record.scorePay}, |
| | | </if> |
| | | <if test="true"> |
| | | update_time = now(), |
| | |
| | | o.postage, |
| | | s.shop_name, |
| | | o.order_type, |
| | | o.score_pay, |
| | | o.apply_status |
| | | from shop_order o |
| | | INNER JOIN sys_shop_info s on o.store_id = s.ID |
| | |
| | | o.pay_result, |
| | | o.postage, |
| | | s.store_name, |
| | | s.score_pay, |
| | | o.order_type |
| | | from shop_order o |
| | | LEFT JOIN shop_store s on o.store_id = s.store_id |
| | |
| | | <select id="selectOrderStatusCount" resultType="java.util.HashMap" > |
| | | select count(order_status) as count , order_status as orderStatus |
| | | from shop_order |
| | | where user_id=#{openId} |
| | | where user_id=#{userId} |
| | | group by order_status |
| | | </select> |
| | | |