|
|
@@ -290,6 +290,11 @@ module.exports = class extends Base { |
|
|
update_by: this.adminUser?.id || 0 |
|
|
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('、'); |
|
|
const names = patients.map(p => p.name).join('、'); |
|
|
await this.log('delete', '患者管理', `删除患者「${names}」共${patients.length}条`); |
|
|
await this.log('delete', '患者管理', `删除患者「${names}」共${patients.length}条`); |
|
|
return this.success(); |
|
|
return this.success(); |
|
|
|