|
|
@@ -567,7 +567,9 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
|
|
|
String sa_orderitems = "sa_orderitems";
|
|
|
|
|
|
- public InsertSQL getInsertSQL(JSONArray customproperties, long sa_orderitemsid, JSONObject item, Row itemRow, String type, BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice, BigDecimal marketprice, String spec, Rows promotionitems) throws YosException {
|
|
|
+ public InsertSQL getInsertSQL(JSONArray customproperties, long sa_orderitemsid, JSONObject item, Row itemRow, String type,
|
|
|
+ BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice, BigDecimal marketprice,
|
|
|
+ String spec, Rows promotionitems,long width,long length) throws YosException {
|
|
|
Long itemid = item.getLong("itemid");
|
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
|
RowsMap promotionitemsRowsMap = promotionitems.toRowsMap("sa_promotion_itemsid");
|
|
|
@@ -656,10 +658,14 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
//牌价、市场价(元),标准订单牌价取商品价格,项目订单取合同里的牌价
|
|
|
insertSQL.setValue("marketprice", marketprice);
|
|
|
|
|
|
+ insertSQL.setValue("length", width);
|
|
|
+
|
|
|
+ insertSQL.setValue("length", length);
|
|
|
+
|
|
|
return insertSQL;
|
|
|
}
|
|
|
|
|
|
- public UpdateSQL getUpdateSQL(long sa_orderitemsid, JSONObject item, Row itemRow, String type, BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice) throws YosException {
|
|
|
+ public UpdateSQL getUpdateSQL(long sa_orderitemsid, JSONObject item, Row itemRow, String type, BigDecimal defaultprice, BigDecimal price, BigDecimal saleprice,long width,long length) throws YosException {
|
|
|
BigDecimal qty = item.getBigDecimalValue("qty");
|
|
|
|
|
|
UpdateSQL updateSQL = SQLFactory.createUpdateSQL(controller, sa_orderitems);
|
|
|
@@ -722,6 +728,10 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
updateSQL.setValue("defaultamount", defaultprice.multiply(qty));
|
|
|
updateSQL.setValue("saleprice", saleprice);
|
|
|
|
|
|
+ updateSQL.setValue("width", width);
|
|
|
+
|
|
|
+ updateSQL.setValue("length", length);
|
|
|
+
|
|
|
updateSQL.setWhere("siteid", controller.siteid);
|
|
|
updateSQL.setWhere("sa_orderitemsid", sa_orderitemsid);
|
|
|
|