|
|
@@ -31,6 +31,8 @@
|
|
|
<result property="totalMoney" column="total_money"/>
|
|
|
<result property="redPacketAmount" column="red_packet_amount"/>
|
|
|
<result property="businessDate" column="busines_date"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="goodsNameJoin" column="goods_name_join"/>
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
@@ -168,10 +170,14 @@
|
|
|
po.number_rows,
|
|
|
po.goods_total_num,
|
|
|
po.total_money,
|
|
|
- po.busines_date
|
|
|
+ po.busines_date,
|
|
|
+ po.goods_name_join,
|
|
|
+ po.status,
|
|
|
+ sum(tc.value) as red_packet_amount
|
|
|
FROM
|
|
|
tire_user_coupon u
|
|
|
INNER JOIN pjpf_order po ON u.order_id = po.id
|
|
|
+ inner join tire_coupon tc on u.coupon_id = tc.id
|
|
|
WHERE
|
|
|
u.acquire_time IS NOT NULL
|
|
|
AND u.STATUS = 1
|
|
|
@@ -184,5 +190,6 @@
|
|
|
and u.tenant_id = #{tenantId}
|
|
|
and po.tenant_id = #{tenantId}
|
|
|
and u.corps_id = #{customerId}
|
|
|
+ group by po.id
|
|
|
</select>
|
|
|
</mapper>
|