Commit a2909f70 by 庄冰

删除companyid

parent bf2cfbf8
...@@ -10,9 +10,8 @@ class NeedinfoDao extends Dao{ ...@@ -10,9 +10,8 @@ class NeedinfoDao extends Dao{
// return w; // return w;
// } // }
async getAllProductType(cid){ async getAllProductType(){
var params = { var params = {
company_id: cid
}; };
var returnRes = { var returnRes = {
total: 0,//总记录条数 total: 0,//总记录条数
......
...@@ -166,10 +166,10 @@ class NeedinfoService extends ServiceBase { ...@@ -166,10 +166,10 @@ class NeedinfoService extends ServiceBase {
//产品分类 //产品分类
async getAllProductType(pobj) { async getAllProductType(pobj) {
if (!pobj || !pobj.actionBody || !pobj.actionBody.company_id) { // if (!pobj || !pobj.actionBody || !pobj.actionBody.company_id) {
return system.getResultFail(-100, "参数错误"); // return system.getResultFail(-100, "参数错误");
} // }
var res = await this.dao.getAllProductType(pobj.actionBody.company_id); var res = await this.dao.getAllProductType();
return system.getResultSuccess(res); return system.getResultSuccess(res);
} }
} }
......
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