// return system.getResult(null, "product to interface is data empty !");
// }
asyncgetProductInterface(pobj,actionBody){
varsql="select * from v_op_interface where is_enabled=1 and uapp_id="+pobj.appInfo.uapp_id+" and product_id="+actionBody.product_id;
varlist=awaitthis.customQuery(sql);
returnsystem.getResultSuccess(list);
}
/**
* 获取应用接口信息
* @param {*} actionBody
*/
asyncgetAppInterface(pobj,actionBody){
varsql="select * from v_op_interface where is_enabled=1 and product_id is null and uapp_id="+pobj.appInfo.uapp_id;
varlist=awaitthis.customQuery(sql);
returnsystem.getResultSuccess(list);
}
...
...
@@ -62,7 +68,7 @@ class ProductService extends ServiceBase {
if(actionBody.regType=="ali.companyreg"){
vararea=actionBody.area||"";
producesql="SELECT pc.pay_code payCode,pt.channel_item_code channelItemCode FROM `p_product` pt JOIN p_product_price pc ON pt.id = pc.product_id WHERE pt.channel_item_name LIKE '%"+actionBody.city
+"%' AND pc.price_desc LIKE '%"+actionBody.area
+"%' AND pc.price_desc LIKE '%"+area
+"%' and pc.additions_desc LIKE '%"+actionBody.companyCategory+"%' ;"
}else{
producesql="SELECT pc.pay_code payCode,pt.channel_item_code channelItemCode FROM `p_product` pt JOIN p_product_price pc ON pt.id = pc.product_id WHERE pt.channel_item_name LIKE '%"+actionBody.park