add groovy script

This commit is contained in:
Timi
2026-09-04 20:38:17 +08:00
parent df16ac3c8e
commit 41f692aad9
53 changed files with 1708 additions and 541 deletions
@@ -11,11 +11,16 @@
</foreach>
</select>
<select id="selectActiveByStoreIdAndEventId" resultType="com.imyeyu.api.modules.gao.entity.GaoPointRule">
<select id="selectActiveByTrigger" resultType="com.imyeyu.api.modules.gao.entity.GaoPointRule">
SELECT *
FROM `gao_point_rule`
WHERE `store_id` = #{storeId}
AND `event_id` = #{eventId}
AND `trigger_source_type` = #{triggerSourceType}
AND (`trigger_ref_id` IS NULL
<if test="triggerRefId != null and triggerRefId != ''">
OR `trigger_ref_id` = #{triggerRefId}
</if>
)
AND `status` = 'ACTIVE'
AND (`begin_at` IS NULL OR `begin_at` &lt;= #{now})
AND (`end_at` IS NULL OR #{now} &lt;= `end_at`)