ration_glj_controller.js 321 B

1234567891011121314
  1. /**
  2. * Created by chen on 2017/6/29.
  3. */
  4. let mongoose = require("mongoose")
  5. module.exports={
  6. createRationGLJ:createRationGLJ
  7. }
  8. function createRationGLJ() {
  9. let gls = mongoose.model('ration_glj');
  10. gls.create({'GLJID':1,'basePrice':23.23,'name':"testgls"},function(err, gls){
  11. console.log(gls)
  12. })
  13. }