update 广播模块,新增广播按钮和跳转路径。定时任务新增开关功能

This commit is contained in:
yyb
2025-07-08 14:22:25 +08:00
parent c698a8244c
commit a51771db2e
21 changed files with 493 additions and 95 deletions

View File

@@ -13,7 +13,7 @@
uma.coin,
uab.balance,
uab.active,
COALESCE(uab.amount,0),
COALESCE(uab.amount,0) as amount,
uma.status
FROM
user_account_balance uab
@@ -45,18 +45,14 @@
coin = #{coin} AND `user` = #{user}
<choose>
<when test="startDate != null and endDate != null">
and `create_date` >= #{startDate} AND `create_date`<![CDATA[ <= ]]> #{endDate}
and `create_date` >= #{startDate} and `create_date`<![CDATA[ <= ]]> #{endDate}
</when>
<otherwise>
and `create_date` >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
</otherwise>
</choose>
</where>
</select>
<select id="getHistoryBalance" resultType="com.m2pool.manage.dto.HistoryBalanceDto">
SELECT
@@ -87,9 +83,15 @@
${coin}_users_30m
<where>
`user` = #{minerUser}
<if test="startDate != null and endDate != null">
and `date` >= #{startDate} AND `date`<![CDATA[ <= ]]> #{endDate}
</if>
<choose>
<when test="startDate != null and endDate != null">
and `date` >= #{startDate} and `date`<![CDATA[ <= ]]> #{endDate}
</when>
<otherwise>
and `date` >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
</otherwise>
</choose>
</where>
</select>
@@ -102,9 +104,14 @@
${coin}_mhsv2
<where>
`user` = #{minerUser}
<if test="startDate != null and endDate != null">
and `date` >= #{startDate} AND `date`<![CDATA[ <= ]]> #{endDate}
</if>
<choose>
<when test="startDate != null and endDate != null">
and `date` >= #{startDate} and `date`<![CDATA[ <= ]]> #{endDate}
</when>
<otherwise>
and `date` >= DATE_SUB(NOW(), INTERVAL 1 MONTH)
</otherwise>
</choose>
</where>
group by `date`
</select>
@@ -118,10 +125,20 @@
create_user as createUser,
update_user as updateUser,
update_time as updateTime,
create_time as createTime
create_time as createTime,
button_content as buttonContent,
button_path as buttonPath
FROM
manage_broadcast
where del =false
</select>
<select id="getAccountBalance" resultType="java.math.BigDecimal">
SELECT
SUM(amount)
FROM
wallet_in
where
coin = #{coin} AND `user` = #{user} AND state = 0
</select>
</mapper>