/** * Created by zhang on 2018/2/24. */ import rationInstallationModel from "../models/ration_installation"; let consts = require('../models/project_consts'); let projectConsts = consts.projectConst; module.exports={ getData:getData }; function getData(projectID, callback) { rationInstallationModel.find({'projectID': projectID}, (err, datas) => { if (err) { callback(1, '', null); } else { callback(0, consts.projectConst.RATION_INSTALLATION, datas); } }) }