|
|
@ -69,14 +69,14 @@ public interface HighCouponAgentRelMapperExt { |
|
|
|
" b.sales_price price" + |
|
|
|
" b.sales_price price" + |
|
|
|
" from high_coupon_agent_code a " + |
|
|
|
" from high_coupon_agent_code a " + |
|
|
|
" LEFT JOIN high_coupon_agent_rel b on b.id = a.coupon_agent_id" + |
|
|
|
" LEFT JOIN high_coupon_agent_rel b on b.id = a.coupon_agent_id" + |
|
|
|
" where b.id = 22 and a.`status` = 2) a," + |
|
|
|
" where b.id = #{couponAgentRelId} and a.`status` = 2) a," + |
|
|
|
" (select " + |
|
|
|
" (select " + |
|
|
|
" b.id," + |
|
|
|
" b.id," + |
|
|
|
" count(1) usedNum," + |
|
|
|
" count(1) usedNum," + |
|
|
|
" b.sales_price price" + |
|
|
|
" b.sales_price price" + |
|
|
|
" from high_coupon_agent_code a" + |
|
|
|
" from high_coupon_agent_code a" + |
|
|
|
" LEFT JOIN high_coupon_agent_rel b on b.id = a.coupon_agent_id" + |
|
|
|
" LEFT JOIN high_coupon_agent_rel b on b.id = a.coupon_agent_id" + |
|
|
|
" where b.id = 22 and a.`status` = 3) b" + |
|
|
|
" where b.id = #{couponAgentRelId} and a.`status` = 3) b" + |
|
|
|
" where a.id = b.id ") |
|
|
|
" where a.id = b.id ") |
|
|
|
Map<String, Object> getUseNum(@Param("couponAgentRelId") Long couponAgentRelId); |
|
|
|
Map<String, Object> getUseNum(@Param("couponAgentRelId") Long couponAgentRelId); |
|
|
|
} |
|
|
|
} |
|
|
|