Browse Source

🐞 fix: 更新电费账号清除提醒信息

Pchen. 7 months ago
parent
commit
41a6325569
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Power/AddAccount.js

+ 1 - 1
apis/Power/AddAccount.js

@@ -56,7 +56,7 @@ class AddAccount extends API {
             sql = 'INSERT INTO power_task (create_user, create_time, update_time, area, building, room, email, lowest, notes, balance, koufei_date) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'
             r = await db.query(sql, [uuid, time, time, area, building, room, email, lowest, notes ?? '', balance, koufei_date])
         } else {
-            sql = 'UPDATE power_task SET area = ?, building = ?, room = ?, email = ?, lowest = ?, notes = ? WHERE id = ?'
+            sql = 'UPDATE power_task SET area = ?, building = ?, room = ?, email = ?, lowest = ?, notes = ?, is_notice = 0 WHERE id = ?'
             r = await db.query(sql, [area, building, room, email, lowest, notes ?? '', id])
         }