Commit ffb0b6d6 by 王悦

fix

parent 4148c086
......@@ -24,23 +24,22 @@ class UploadinfoCtl extends trademarkCtl {
* {"error": ""}
*/
async findAndCountAll(p, q, req) {
let query = {
"actionType": "tmInfo",
"actionBody": {}
};
p.search.trademark_id ={$and:[{$not:null},{$not:""}]};
let list = await this.service.findAndCountAll(p);
query.actionBody.tmList = list.results.rows.map(d => {
if (d.trademark_id) {
return d.trademark_id
}
});
let rtn = {}
let query = {
"actionType": "tmInfo",
"actionBody": {}
};
try {
rtn = await this.execClient.execPost(query, tmurl);
p.search.trademark_id = {$and: [{$not: null}, {$not: ""}]};
let list = await this.service.findAndCountAll(p);
query.actionBody.tmList = list.results.rows.map(d => {
if (d.trademark_id) {
return d.trademark_id
}
});
} catch (e) {
return system.getResultFail(-2,e)
console.error(e)
}
let rtn = await this.execClient.execPost(query, tmurl);
let data = JSON.parse(rtn.stdout);
return system.getResultList(data.totalCount, data.data || [])
}
......
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