Commit 21e5470e by wkliang

init

parent 665e839d
...@@ -3,5 +3,12 @@ class diagnosisDao extends Dao { ...@@ -3,5 +3,12 @@ class diagnosisDao extends Dao {
constructor() { constructor() {
super(Dao.getModelName(diagnosisDao)); 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; module.exports = diagnosisDao;
\ No newline at end of file
...@@ -2,8 +2,7 @@ const System = require('../../../system') ...@@ -2,8 +2,7 @@ const System = require('../../../system')
const ServiceBase = require("../../sve.base"); const ServiceBase = require("../../sve.base");
class diagnosisneedbusService extends ServiceBase { class diagnosisneedbusService extends ServiceBase {
constructor() { constructor() {
super("dbneed", 'diagnosisneedinfoDao'); super("dbneed", 'diagnosisDao');
this.dniDao = System.getObject("db.dbneed.diagnosisneedinfoDao");
} }
async getList (pobj, data, req) { 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