线上问题-老用户基础首充-获取奖励sql语句不严谨
This commit is contained in:
@@ -34,10 +34,11 @@
|
||||
when reward_type = 2 then Concat(reward_day,"天")
|
||||
when reward_type = 3 then Concat(reward_day,"天")
|
||||
when reward_type = 4 then Concat(reward_day,"天")
|
||||
ELSE Concat(reward_num,"个") END as showTime
|
||||
ELSE Concat(reward_num,"个") END as showTime
|
||||
FROM first_charge_reward fr
|
||||
left join first_charge_level fl on fl.id = fr.first_charge_level_id
|
||||
where fl.lower_limit <= #{amount} and fl.upper_limit >= #{amount} and fl.first_charge_status = 1
|
||||
inner join first_charge_level fl on fl.id = fr.first_charge_level_id
|
||||
where fl.lower_limit <= #{amount} and fl.upper_limit >= #{amount}
|
||||
and fl.first_charge_type = 1 and fl.first_charge_status = 1
|
||||
</select>
|
||||
|
||||
<select id="getLimitFirstChargeRewardList" resultType="com.accompany.business.model.FirstChargeReward">
|
||||
|
Reference in New Issue
Block a user