add event verify
This commit is contained in:
@@ -59,6 +59,19 @@
|
||||
AND `deleted_at` IS NULL
|
||||
</update>
|
||||
|
||||
<update id="verify">
|
||||
UPDATE `gao_event_record`
|
||||
SET
|
||||
`verification_status` = 'VERIFIED',
|
||||
`verifier_user_id` = #{verifierUserId},
|
||||
`verified_at` = #{verifiedAt},
|
||||
`updated_at` = ROUND(UNIX_TIMESTAMP(CURRENT_TIMESTAMP(3)) * 1000)
|
||||
WHERE
|
||||
`id` = #{id}
|
||||
AND `verification_status` = 'PENDING'
|
||||
AND `deleted_at` IS NULL
|
||||
</update>
|
||||
|
||||
<select id="countByStoreIdAndRegisteredDateValue" resultType="java.lang.Long">
|
||||
SELECT
|
||||
COUNT(1)
|
||||
@@ -105,6 +118,9 @@
|
||||
#{eventId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="verificationStatus != null">
|
||||
AND r.`verification_status` = #{verificationStatus}
|
||||
</if>
|
||||
<if test="keyword != null and keyword.trim() != ''">
|
||||
AND (
|
||||
c.`code` LIKE CONCAT('%', #{keyword}, '%')
|
||||
|
||||
Reference in New Issue
Block a user