|
|
@@ -441,7 +441,12 @@ public class OrderItems extends Controller {
|
|
|
row.put("attinfos", attinfoRowsMap.getOrDefault(row.getString("itemid"), new Rows()));
|
|
|
row.put("tradefield", tradefieldRowsMap.getOrDefault(row.getString("itemid"), new Rows()));
|
|
|
row.put("brand", brandRowsMap.getOrDefault(row.getString("itemid"), new Rows()));
|
|
|
- row.put("price", itemPriceRowsMap.get(row.getString("itemid")).getPrice());
|
|
|
+ if( itemPriceRowsMap.containsKey(row.getString("itemid"))){
|
|
|
+ row.put("price", itemPriceRowsMap.get(row.getString("itemid")).getPrice());
|
|
|
+ }else {
|
|
|
+ row.put("price", 0);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|