|
@@ -251,7 +251,7 @@ public class ShoppingCart extends Controller {
|
|
|
@API(title = "购物车数量", apiversion = R.ID20220927093202.v1.class)
|
|
|
public String getNum() throws YosException {
|
|
|
|
|
|
- Rows rows = dbConnect.runSqlQuery("SELECT COUNT(0) num FROM sa_shoppingcart t1 WHERE t1.sys_enterpriseid=" + sys_enterpriseid + " AND t1.siteid= '" + siteid + "'");
|
|
|
+ Rows rows = dbConnect.runSqlQuery("SELECT COUNT(0) num FROM sa_shoppingcart t1 WHERE t1.sys_enterpriseid=" + sys_enterpriseid + " AND t1.siteid= '" + siteid + "' and t1.sa_promotionid="+content.getLongValue("sa_promotionid"));
|
|
|
|
|
|
|
|
|
return getSucReturnObject().setData(rows.get(0)).toString();
|