You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.3 KiB
48 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="cc.hiver.mall.dao.mapper.MallOrderGroupMapper">
|
|
|
|
<resultMap id="groupMap" type="cc.hiver.mall.entity.MallOrderGroup">
|
|
<id column="id" property="id"/>
|
|
<result column="shop_id" property="shopId"/>
|
|
<result column="head_user_id" property="headUserId"/>
|
|
<result column="head_order_id" property="headOrderId"/>
|
|
<result column="group_Order_ids" property="groupOrderIds"/>
|
|
<result column="target_members" property="targetMembers"/>
|
|
<result column="current_members" property="currentMembers"/>
|
|
<result column="status" property="status"/>
|
|
<result column="group_price" property="groupPrice"/>
|
|
<result column="worker_id" property="workerId"/>
|
|
<result column="worker_commission" property="workerCommission"/>
|
|
<result column="total_delivery_fee" property="totalDeliveryFee"/>
|
|
<result column="create_time" property="createTime"/>
|
|
<result column="expire_time" property="expireTime"/>
|
|
<result column="is_face" property="isFace"/>
|
|
<result column="product_name" property="productName"/>
|
|
<result column="product_picture" property="productPicture"/>
|
|
<result column="product_id" property="productId"/>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectMallGroup" resultMap="groupMap">
|
|
SELECT id,shop_id,head_user_id,head_order_id,group_order_ids,target_members,
|
|
current_members,status,group_price,worker_id,worker_commission,total_delivery_fee,
|
|
create_time,expire_time,is_face,product_name,product_picture,product_id
|
|
FROM mall_order_group
|
|
<where>
|
|
<if test="group.shopId != null and group.shopId != ''">
|
|
AND shop_id = #{group.shopId}
|
|
</if>
|
|
<if test="group.isFace != null and group.isFace != ''">
|
|
AND is_face = #{group.isFace}
|
|
</if>
|
|
<if test="group.status != null">
|
|
AND status = #{group.status}
|
|
</if>
|
|
</where>
|
|
order by create_time asc
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
|