Commit 357a0e41 by 任晓松

update

parent 18898473
......@@ -15,7 +15,10 @@ class ProductService extends ServiceBase {
async getProductList(actionBody, appInfo) {
var sql = "select * from v_product where uapp_id=" + appInfo.uapp_id + " and path_code like '" + actionBody.pathCode + "%'";
if(actionBody.productName){
sql = "select * from v_product where uapp_id=" + appInfo.uapp_id + " and item_name like '" + actionBody.productName + "%'";
sql = "select * from v_product where uapp_id=" + appInfo.uapp_id ;
if(actionBody.productName != "All"){
sql += " and item_name like '" + actionBody.productName + "%'"
}
}
var list = await this.customQuery(sql);
return system.getResultSuccess(list);
......
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