fix notify delete
This commit is contained in:
@@ -12,4 +12,26 @@
|
||||
</foreach>
|
||||
AND `deleted_at` IS NULL
|
||||
</select>
|
||||
|
||||
<select id="selectRecipientPage" resultType="com.imyeyu.api.modules.gao.entity.GaoUser">
|
||||
SELECT *
|
||||
FROM `gao_user`
|
||||
WHERE `enabled` = 1
|
||||
AND (`deleted_at` IS NULL OR FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) < `deleted_at`)
|
||||
<if test="page.equalsExample != null and page.equalsExample.storeId != null and page.equalsExample.storeId != ''">
|
||||
AND `store_id` = #{page.equalsExample.storeId}
|
||||
</if>
|
||||
ORDER BY COALESCE(`updated_at`, `created_at`) DESC
|
||||
LIMIT #{page.offset}, #{page.limit}
|
||||
</select>
|
||||
|
||||
<select id="countRecipients" resultType="long">
|
||||
SELECT COUNT(*)
|
||||
FROM `gao_user`
|
||||
WHERE `enabled` = 1
|
||||
AND (`deleted_at` IS NULL OR FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000) < `deleted_at`)
|
||||
<if test="page.equalsExample != null and page.equalsExample.storeId != null and page.equalsExample.storeId != ''">
|
||||
AND `store_id` = #{page.equalsExample.storeId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user