Commit d1dcc3e4 by Sxy

fix: 权限

parent 988c817b
...@@ -12,11 +12,11 @@ class BizoptDao extends Dao { ...@@ -12,11 +12,11 @@ class BizoptDao extends Dao {
extraWhere(qobj, qw, qc) { extraWhere(qobj, qw, qc) {
// 权限添加 // 权限添加
//需要添加公司查询条件 //需要添加公司查询条件
// qc.where["facilitator_id"] = Number(qobj.company_id || -1); qc.where["facilitator_id"] = Number(qobj.company_id || -1);
// // 组织结构 // 组织结构
// if (qobj.opath && qobj.opath != "") { if (qobj.opath && qobj.opath != "") {
// qc.where["salesman_opcode"] = { [this.db.Op.like]: `%${qobj.opath}%` } qc.where["salesman_opcode"] = { [this.db.Op.like]: `%${qobj.opath}%` }
// } }
qc.raw = true; qc.raw = true;
qc.where.business_type = qc.where.business_type ? qc.where.business_type : { qc.where.business_type = qc.where.business_type ? qc.where.business_type : {
......
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