1234567891011121314151617181920212223242526272829 |
- /**
- * 家庭医生平台-用户,包含医生与患者。
- */
- "use strict";
- var log = require('../../util/log');
- var wlyyRepo = require("./../mysql/wlyy.db.js");
- class WlyyDoctorRepo{
- constructor(){
- }
- /**
- * 获取指定时间之后更新的医生数据。
- *
- * @param timestamp
- */
- static getUpdatedUsers(timestamp, handler){
- wlyyRepo.execQuery({
- "sql": "SELECT code, name, sex, birthday, photo, level, 'doctor' 'type' FROM wlyy.wlyy_doctor d where d.czrq > ? UNION " +
- "SELECT code, name, sex, birthday, photo, '', 'patient' 'type' FROM wlyy.wlyy_patient p where p.czrq > ?",
- "args": [timestamp, timestamp],
- "handler": handler
- });
- }
- }
- module.exports = WlyyDoctorRepo;
|