Commit b27c4c6b by 任晓松

add getAllPathName

parent ddb06944
......@@ -74,6 +74,9 @@ class OpProductAPI extends APIBase {
case "getymicpProduce"://易名icp获取产品信息
opResult = await this.productSve.getymicpProduce(pobj.actionBody,pobj.appInfo);
break;
case "getAllPathName":
opResult = await this.productSve.getAllPathName();
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......
......@@ -531,6 +531,16 @@ class ProductService extends ServiceBase {
return system.getResult(item);
}
/**
* 聚合path_name
* @returns {Promise<void>}
*/
async getAllPathName(){
let sql = `SELECT path_name FROM p_product GROUP BY path_name`;
let result = await this.customQuery(sql);
return system.getResult(result);
}
//获取易名的icp产品信息
async getymicpProduce(actionBody,appInfo) {
......
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