|
@ -105,10 +105,10 @@ |
|
|
user_badge_certificate_record |
|
|
user_badge_certificate_record |
|
|
WHERE |
|
|
WHERE |
|
|
DEL_FLAG = 0 |
|
|
DEL_FLAG = 0 |
|
|
AND IS_LAST = 'yes' |
|
|
|
|
|
AND BADGE_ID = #{badgeId} |
|
|
AND BADGE_ID = #{badgeId} |
|
|
<if test="userId != null and userId != '' "> |
|
|
<if test="userId != null and userId != '' "> |
|
|
AND USER_ID = #{userId} |
|
|
AND USER_ID = #{userId} |
|
|
|
|
|
AND IS_LAST = 'yes' |
|
|
</if> |
|
|
</if> |
|
|
<if test="recordId != null and recordId != ''"> |
|
|
<if test="recordId != null and recordId != ''"> |
|
|
AND ID = #{recordId} |
|
|
AND ID = #{recordId} |
|
|