123456789101112131415161718 |
- /**
- * Created by Tony on 2018/4/18.
- */
- import mongoose from "mongoose";
- let rpt_customize_cfg_mdl = mongoose.model("rpt_customize_cfg");
- module.exports = {
- getCustomizeCfg: getCustomizeCfg
- };
- async function getCustomizeCfg(userIds) {
- let filter = {"userId": userIds};
- if (userIds instanceof Array) {
- filter.userId = {$in: userIds};
- }
- return await rpt_customize_cfg_mdl.find(filter, '-_id');
- }
|