|
@@ -93,6 +93,10 @@ public class OrderItems extends Controller {
|
|
|
if (sa_orderitemsid <= 0) {
|
|
|
//获取定制属性
|
|
|
customproperties = orderItemsHelper.getCustomProperties(itemRowsMap, item);
|
|
|
+ if(itemRow.getString("iscustomsize").equals("1")&&customproperties.isEmpty()){
|
|
|
+ return getErrReturnObject().setErrMsg(itemRow.getString("itemno")+"的定制信息为空,无法添加").toString();
|
|
|
+ }
|
|
|
+
|
|
|
spec = orderItemsHelper.getCustomSpec(itemRowsMap, item);
|
|
|
Rows rows = dbConnect.runSqlQuery("SELECT sa_orderitemsid,price from sa_orderitems WHERE siteid='" + siteid + "' and itemid=" + itemid + " and sa_orderid=" + sa_orderid + " and sa_promotion_itemsid=" + item.getLongValue("sa_promotion_itemsid"));
|
|
|
|