rpt_tpl_data_demo_facade.js 326 B

1234567891011121314
  1. /**
  2. * Created by Tony on 2017/8/9.
  3. */
  4. const mongoose = require("mongoose");
  5. let rpt_tpl_data_demo_mdl = mongoose.model("rpt_temp_tpl_data");
  6. module.exports = {
  7. getDemoData: getDemoData
  8. };
  9. async function getDemoData(dataKey) {
  10. let rst = await rpt_tpl_data_demo_mdl.findOne({"Data_Key": dataKey});
  11. return rst;
  12. }