| | |
| | | <result column="longitude" property="longitude" /> |
| | | <result column="latitude" property="latitude" /> |
| | | <result column="order_type" property="orderType" /> |
| | | <result column="carriage" property="carriage" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="del_flag" property="delFlag" /> |
| | | <collection property="items" ofType="cc.mrbird.febs.mall.entity.MallOrderItem"> |
| | |
| | | <result property="cnt" column="cnt" /> |
| | | <result property="price" column="price" /> |
| | | <result property="amount" column="amount" /> |
| | | <result property="isNormal" column="is_normal" /> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | |
| | | b.sku_image, |
| | | b.cnt, |
| | | b.price, |
| | | b.amount |
| | | b.amount, |
| | | b.is_normal |
| | | from mall_order_info a |
| | | inner join mall_order_item b on a.id=b.order_id |
| | | where a.id=#{id} |
| | |
| | | |
| | | <select id="selectTotalAmount" resultType="java.math.BigDecimal"> |
| | | select IFNULL(sum(IFNULL(amount,0)),0) from mall_order_info |
| | | where member_id=#{memberId} and status = 4 |
| | | where member_id=#{memberId} and status in (2, 3, 4) and order_type=1 |
| | | </select> |
| | | |
| | | <select id="selectTotalAmountForDate" resultType="java.math.BigDecimal"> |