Commit 079cfad3 by 王勇飞

gyq

parent a0f35f12
...@@ -32,6 +32,7 @@ class BizOptCtl extends CtlBase { ...@@ -32,6 +32,7 @@ class BizOptCtl extends CtlBase {
delete pobj.search.dateType delete pobj.search.dateType
} }
const rs = await this.service.findAndCountAll(pobj); const rs = await this.service.findAndCountAll(pobj);
console.log("rs-------------" + rs);
let rarr = []; let rarr = [];
let results = rs.results.rows; let results = rs.results.rows;
results.forEach(element => { results.forEach(element => {
...@@ -66,6 +67,7 @@ class BizOptCtl extends CtlBase { ...@@ -66,6 +67,7 @@ class BizOptCtl extends CtlBase {
rs.results.rows = rarr; rs.results.rows = rarr;
return system.getResult(rs); return system.getResult(rs);
} catch (error) { } catch (error) {
console.log("error------------------------" + error);
return system.getResultError(error); return system.getResultError(error);
} }
} }
......
...@@ -19,6 +19,7 @@ class BizoptDao extends Dao { ...@@ -19,6 +19,7 @@ class BizoptDao extends Dao {
} }
//不是来自平台前端查询 //不是来自平台前端查询
if (qobj.bizpath && qobj.bizpath.indexOf("pmx") < 0) { if (qobj.bizpath && qobj.bizpath.indexOf("pmx") < 0) {
console.log("bizpath-------------" + qobj.bizpath);
qc.where.business_type = qc.where.business_type || { qc.where.business_type = qc.where.business_type || {
[this.db.Op.In]: ["bookkeeping"] [this.db.Op.In]: ["bookkeeping"]
} }
...@@ -27,6 +28,7 @@ class BizoptDao extends Dao { ...@@ -27,6 +28,7 @@ class BizoptDao extends Dao {
// qw["salesman_id"] = qobj.userid; // qw["salesman_id"] = qobj.userid;
// } // }
// } // }
console.log(")))))))))))))))))))))))))))))))))");
} }
} }
......
...@@ -20,9 +20,9 @@ var settings = { ...@@ -20,9 +20,9 @@ var settings = {
salt: "%iatpD1gcxz7iF#B", salt: "%iatpD1gcxz7iF#B",
defaultpwd: "gsb2020", defaultpwd: "gsb2020",
basepath: path.normalize(path.join(__dirname, '../..')), basepath: path.normalize(path.join(__dirname, '../..')),
port: process.env.NODE_PORT || 8888, port: process.env.NODE_PORT || 8889,
logindex: "center_manage", logindex: "center_manage",
appname: "ic_deliver", appname: "book-deliver",
kongurl: function () { kongurl: function () {
if (this.env == "localhost") { if (this.env == "localhost") {
var localsettings = require("./localsettings"); var localsettings = require("./localsettings");
......
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