| | |
| | | for (SysOrderItem item : sysOrder.getItems()) { |
| | | ShoppingGoods shoppingGoods = shoppingGoodsDao.selectById(item.getGoodsId()); |
| | | item.setType(shoppingGoods.getGoodType()); |
| | | if (item.getZkPrice() == null) { |
| | | item.setZkPrice(shoppingGoods.getSealPice()); |
| | | } |
| | | |
| | | if (item.getZkPrice() == 0) { |
| | | item.setIsFree(Dictionary.FLAG_YES); |
| | | } |
| | | Double itemZkTotal = MoneyUtil.mul(item.getZkPrice(), Double.valueOf(item.getCount())); |
| | | zkTotal = MoneyUtil.add(zkTotal, itemZkTotal); |
| | | |
| | | if (item.getPrice() == null) { |
| | | item.setPrice(shoppingGoods.getSealPice()); |
| | | } |
| | | item.setStatus(Dictionary.ORDER_STATU_DFK); |
| | | item.setRefundCount(0); |
| | | } |