Commit 6c43fe21 by 兰国旗

laolan

parent 97bf7bd5
......@@ -10,14 +10,15 @@ class MediaaggregationDao extends Dao {
*/
async productList(req) {
var params = {
product_type_code: req.actionBody.product_type_code,
company_id: req.actionBody.company_id
};
var returnRes = {
total: 0,//总记录条数
rows: []
};
var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and company_id = :company_id ";
var sql = "select * from mc_product where deleted_at is null and company_id = :company_id ";
var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and product_type_code = :product_type_code and company_id = :company_id ";
var sql = "select * from mc_product where deleted_at is null and product_type_code = :product_type_code and company_id = :company_id ";
var list = await this.customQuery(sql,params);
returnRes.rows = list;
......
......@@ -7,7 +7,7 @@ class MediaaggregationSve {
}
//服务列表
async productList(pobj) {
if (!pobj || !pobj.actionBody || !pobj.actionBody.company_id) {
if (!pobj || !pobj.actionBody || !pobj.actionBody.company_id || !pobj.actionBody.product_type_code) {
return system.getResultFail(-100, "参数错误");
}
var res =await mediaaggregationDao.productList(pobj);
......
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