Commit 2b99c499 by 兰国旗

laolan

parent 66e53203
......@@ -80,9 +80,6 @@ class Mediaaggregation extends APIBase {
case "clueMaintenance"://二类产品资质选项(选取数据线索的数据)
opResult = await this.mediaaggregationSve.clueMaintenance(pobj);
break;
case "productListAll"://所有产品及分类
opResult = await this.mediaaggregationSve.productListAll(pobj);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......
......@@ -254,30 +254,5 @@ class MediaaggregationDao extends Dao {
returnRes.total = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].dataCount : 0;
return returnRes;
}
/**
* 所有产品分类及产品
*/
async productListAll(req) {
var params = {
// company_id: req.actionBody.company_id,
company_id: 10
};
var returnRes = {
total: 0,//总记录条数
rows: []
};
var list = await this.customQuery(productTypeSql, params);
var tmpResultCount = await this.customQuery(productTypeCount, params);
returnRes.rows = list;
returnRes.total = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].productTypeCount : 0;
return returnRes;
}
}
module.exports = MediaaggregationDao;
\ No newline at end of file
......@@ -125,18 +125,6 @@ class MediaaggregationSve {
var res = await mediaaggregationDao.clueMaintenance(pobj);
return system.getResultSuccess(res);
}
//二级产品资质选项
async productListAll(pobj) {
if (!pobj || !pobj.actionBody || !pobj.actionBody.company_id) {
return system.getResultFail(-100, "参数错误");
}
var res = await mediaaggregationDao.productListAll(pobj);
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