leiyun před 3 hodinami
rodič
revize
4d55cf41dd
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. +5
    -0
      src/controller/admin/patient.js

+ 5
- 0
src/controller/admin/patient.js Zobrazit soubor

@@ -290,6 +290,11 @@ module.exports = class extends Base {
update_by: this.adminUser?.id || 0
});

// 清除 wechat_user 表中的患者关联,避免用户重新认证时走 update 逻辑
await this.model('wechat_user')
.where({ patient_id: ['in', ids] })
.update({ patient_id: 0 });

const names = patients.map(p => p.name).join('、');
await this.log('delete', '患者管理', `删除患者「${names}」共${patients.length}条`);
return this.success();


Načítá se…
Zrušit
Uložit