Commit 21e5470e by wkliang

init

parent 665e839d
......@@ -3,5 +3,12 @@ class diagnosisDao extends Dao {
constructor() {
super(Dao.getModelName(diagnosisDao));
}
async findAndCountAll (query) {
return await this.model.findAndCountAll(query)
}
async update (param, id) {
return await this.model.update(param, { where: { id } })
}
}
module.exports = diagnosisDao;
\ No newline at end of file
......@@ -2,8 +2,7 @@ const System = require('../../../system')
const ServiceBase = require("../../sve.base");
class diagnosisneedbusService extends ServiceBase {
constructor() {
super("dbneed", 'diagnosisneedinfoDao');
this.dniDao = System.getObject("db.dbneed.diagnosisneedinfoDao");
super("dbneed", 'diagnosisDao');
}
async getList (pobj, data, req) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment