@@ -279,5 +279,32 @@ class ProductService extends ServiceBase {
}
returnsystem.getResult(rtn);
}
/**
* 更改产品销售价格
* @param actionBody
* @returns {Promise<void>}
*/
asyncupdateProductPrice(actionBody,appInfo){
// let productPrice = await this.findOne({pay_code:actionBody.payCode});
letsql="SELECT a.uapp_id,a.item_name,b.id,b.product_id,b.pay_code,b.price,b.supply_price FROM `p_product` a LEFT JOIN `p_product_price` b ON a.id = b.product_id where b.pay_code = :payCode and a.uapp_id = :uapp_id";