old_contents: var express = require('express')
  var router = express.Router()
  var orgService = require('../service/orgService')
  var logSercice = require('../service/logService')
  
  // 获取组织机构
  router.get('/getOrgs', function (req, res, next) {
    let opts = req.query
    orgService.getOrgs(opts, result => {
      logSercice.log(req.userId, 'getOrgs', result.status === false ? result.message : '')
      res.json(result)
    })
  })
  // 添加组织机构
  router.post('/addOrg', function (req, res, next) {
    let opts = req.body
    orgService.addOrg(opts, result => {
      logSercice.log(req.userId, 'addOrg', result.status === false ? result.message : '')
      res.json(result)
    })
  })
  // 更新组织机构
  router.post('/editOrg', function (req, res, next) {
    let opts = req.body
    orgService.editOrg(opts, result => {
      logSercice.log(req.userId, 'editOrg', result.status === false ? result.message : '')
      res.json(result)
    })
  })
  
  module.exports = router
new_contents: var express = require('express')
  var router = express.Router()
  var orgService = require('../service/orgService')
  var logSercice = require('../service/logService')
  
  // 获取组织机构
  router.get('/getOrgs', function (req, res, next) {
    let opts = req.query
    orgService.getOrgs(opts, result => {
      res.json(result)
    })
  })
  // 添加组织机构
  router.post('/addOrg', function (req, res, next) {
    let opts = req.body
    orgService.addOrg(opts, result => {
      logSercice.log(req.userId, 'addOrg', result.status === false ? result.message : '')
      res.json(result)
    })
  })
  // 更新组织机构
  router.post('/editOrg', function (req, res, next) {
    let opts = req.body
    orgService.editOrg(opts, result => {
      logSercice.log(req.userId, 'editOrg', result.status === false ? result.message : '')
      res.json(result)
    })
  })
  
  module.exports = router
subject: 修改：删除获取组织机构的日志