|
@@ -595,7 +595,7 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
|
|
|
|
|
public InsertSQL getInsertSQL(JSONArray customproperties, long sa_orderitemsid, JSONObject item, Row itemRow, String type,
|
|
public InsertSQL getInsertSQL(JSONArray customproperties, long sa_orderitemsid, JSONObject item, Row itemRow, String type,
|
|
|
BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice, BigDecimal marketprice,
|
|
BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice, BigDecimal marketprice,
|
|
|
- String spec, Rows promotionitems,long width,long length) throws YosException {
|
|
|
|
|
|
|
+ String spec, Rows promotionitems,long width,long length,long height) throws YosException {
|
|
|
Long itemid = item.getLong("itemid");
|
|
Long itemid = item.getLong("itemid");
|
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
|
RowsMap promotionitemsRowsMap = promotionitems.toRowsMap("sa_promotion_itemsid");
|
|
RowsMap promotionitemsRowsMap = promotionitems.toRowsMap("sa_promotion_itemsid");
|
|
@@ -688,10 +688,12 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
|
|
|
|
|
insertSQL.setValue("length", length);
|
|
insertSQL.setValue("length", length);
|
|
|
|
|
|
|
|
|
|
+ insertSQL.setValue("height", height);
|
|
|
|
|
+
|
|
|
return insertSQL;
|
|
return insertSQL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public UpdateSQL getUpdateSQL(long sa_orderitemsid, JSONObject item, Row itemRow, String type, BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice,long width,long length) throws YosException {
|
|
|
|
|
|
|
+ public UpdateSQL getUpdateSQL(long sa_orderitemsid, JSONObject item, Row itemRow, String type, BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice,long width,long length,long height) throws YosException {
|
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
|
|
|
|
|
|
UpdateSQL updateSQL = SQLFactory.createUpdateSQL(controller, sa_orderitems);
|
|
UpdateSQL updateSQL = SQLFactory.createUpdateSQL(controller, sa_orderitems);
|
|
@@ -758,6 +760,8 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
|
|
|
|
|
updateSQL.setValue("length", length);
|
|
updateSQL.setValue("length", length);
|
|
|
|
|
|
|
|
|
|
+ updateSQL.setValue("height", height);
|
|
|
|
|
+
|
|
|
updateSQL.setWhere("siteid", controller.siteid);
|
|
updateSQL.setWhere("siteid", controller.siteid);
|
|
|
updateSQL.setWhere("sa_orderitemsid", sa_orderitemsid);
|
|
updateSQL.setWhere("sa_orderitemsid", sa_orderitemsid);
|
|
|
|
|
|