1107
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
'use strict';
|
||||
const dbName = 'jjx-enquiry-attributes'
|
||||
module.exports = {
|
||||
/**
|
||||
* 查询现货列表
|
||||
* @url client/spot/goods/kh/getList 前端调用的url参数地址
|
||||
* data 请求参数
|
||||
* @param {String} params1 参数1
|
||||
*/
|
||||
main: async (event) => {
|
||||
let { data = {}, userInfo, util, filterResponse, originalParam } = event;
|
||||
let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
|
||||
let { uid } = data;
|
||||
let res = { code: 0, msg: "",list: [] };
|
||||
// 业务逻辑开始-----------------------------------------------------------
|
||||
const {pageIndex,pageSize,label } = data
|
||||
|
||||
let whereJson = {
|
||||
enable: true,
|
||||
label
|
||||
};
|
||||
|
||||
|
||||
|
||||
const info = await vk.baseDao.findByWhereJson({
|
||||
dbName,
|
||||
getCount:false,
|
||||
whereJson: whereJson,
|
||||
});
|
||||
|
||||
if(info != null) {
|
||||
res.list = info.values.map(item => {
|
||||
return {
|
||||
label: item,
|
||||
value: item
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 业务逻辑结束-----------------------------------------------------------
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user