| 123456789101112131415 | 
							- /**
 
-  * Created by Tony on 2017/8/9.
 
-  */
 
- let mongoose = require("mongoose");
 
- let rpt_tpl_mdl = mongoose.model("rpt_templates");
 
- module.exports = {
 
-     getRptTemplate: getRptTemplate
 
- };
 
- async function getRptTemplate(tplId) {
 
-     //console.log('templateId: ' + parseInt(tplId));
 
-     let rst = await  rpt_tpl_mdl.findOne({"ID": parseInt(tplId)}, '-_id');
 
-     return rst;
 
- }
 
 
  |