明树Git Lab

Commit 33d87081 authored by zfp1's avatar zfp1

update

parent 9610d80a
...@@ -73,7 +73,12 @@ async function updateDeepPlant(req, res, next) { ...@@ -73,7 +73,12 @@ async function updateDeepPlant(req, res, next) {
} }
} }
async function getSccjMap() {
let list = await DB.Sccj.findAll({ del: 0 });
let namemap = {};
list.map(o => { namemap(o.key) = o.name });
return map;
}
module.exports = { module.exports = {
createDeepPlant, createDeepPlant,
......
...@@ -108,7 +108,12 @@ async function importExcel(req, res, next) { ...@@ -108,7 +108,12 @@ async function importExcel(req, res, next) {
next(error) next(error)
} }
} }
async function getSccjMap() {
let list = await DB.Sccj.findAll({ del: 0 });
let namemap = {};
list.map(o => { namemap(o.key) = o.name });
return map;
}
module.exports = { module.exports = {
createlt, createlt,
listlt, listlt,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment