/** * Created by chen on 2017/6/29. */ let mongoose = require("mongoose") module.exports={ createRationGLJ:createRationGLJ } function createRationGLJ() { let gls = mongoose.model('ration_glj'); gls.create({'GLJID':1,'basePrice':23.23,'name':"testgls"},function(err, gls){ console.log(gls) }) }