|
|
@ -53,12 +53,19 @@ |
|
|
|
and CATEGORY_CODE=#{categoryCode} |
|
|
|
<if test="applyFlag != null and applyFlag != ''"> |
|
|
|
and APPLY_FLAG= #{applyFlag} |
|
|
|
</if> |
|
|
|
<if test="businessCode != null and businessCode != '' and businessCode == 'point_fine'.toString()"> |
|
|
|
and (( type='rule' and POINT_VALUE < 0 )or TYPE='category') |
|
|
|
</if> |
|
|
|
<if test="businessCode != null and businessCode != '' and businessCode == 'point_reward'.toString()"> |
|
|
|
and (( type='rule' and POINT_VALUE > 0 )or TYPE='category') |
|
|
|
</if> |
|
|
|
and CUSTOMER_ID=#{customerId} |
|
|
|
order by UPDATED_TIME desc |
|
|
|
</select> |
|
|
|
<select id="selectList4tree" resultType="com.epmet.dto.PointAdditiveRuleDTO"> |
|
|
|
select id, |
|
|
|
pid, |
|
|
|
type, |
|
|
|
CATEGORY_NAME, |
|
|
|
RULE_NAME, |
|
|
|