|
@@ -80,6 +80,13 @@ public class ShoppingCart extends Controller {
|
|
|
sqlFactory.addParameter("sa_brandid", sa_brandid);
|
|
|
sqlFactory.addParameter("qty", qty);
|
|
|
sqlFactory.addParameter("sys_enterpriseid", sys_enterpriseid);
|
|
|
+ String cheek = content.getStringValue("cheek");
|
|
|
+ String colors = content.getStringValue("colors");
|
|
|
+ String material = content.getStringValue("material");
|
|
|
+
|
|
|
+ sqlFactory.addParameter("cheek", cheek.equals("0") ? "" : cheek);
|
|
|
+ sqlFactory.addParameter("colors", colors.equals("0") ? "" : colors);
|
|
|
+ sqlFactory.addParameter("material", material.equals("0") ? "" : material);
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
@@ -143,13 +150,13 @@ public class ShoppingCart extends Controller {
|
|
|
sqlFactory.addParameter("qty", qty);
|
|
|
sqlFactory.addParameter("sys_enterpriseid", sys_enterpriseid);
|
|
|
|
|
|
- String customcheek = item.getStringValue("customcheek");
|
|
|
- String customcolors = item.getStringValue("customcolors");
|
|
|
- String custommaterial = item.getStringValue("custommaterial");
|
|
|
+ String cheek = content.getStringValue("cheek");
|
|
|
+ String colors = content.getStringValue("colors");
|
|
|
+ String material = content.getStringValue("material");
|
|
|
|
|
|
- sqlFactory.addParameter("customcheek", customcheek.equals("0") ? "" : customcheek);
|
|
|
- sqlFactory.addParameter("customcolors", customcolors.equals("0") ? "" : customcolors);
|
|
|
- sqlFactory.addParameter("custommaterial", custommaterial.equals("0") ? "" : custommaterial);
|
|
|
+ sqlFactory.addParameter("cheek", cheek.equals("0") ? "" : cheek);
|
|
|
+ sqlFactory.addParameter("colors", colors.equals("0") ? "" : colors);
|
|
|
+ sqlFactory.addParameter("material", material.equals("0") ? "" : material);
|
|
|
//System.out.println(sqlFactory.getSQL());
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
}
|