| | |
| | | //转历史档
|
| | | OrderLog orderLog = new OrderLog();
|
| | | orderLog.sync(order);
|
| | | orderLog.setId(null);
|
| | | if (!orderLogService.save(orderLog)) {
|
| | | throw new CoolException("订单转历史档失败");
|
| | | }
|
| | |
| | | for (OrderDetl orderDetl : orderDetls) {
|
| | | OrderDetlLog orderDetlLog = new OrderDetlLog();
|
| | | orderDetlLog.sync(orderDetl);
|
| | | orderDetlLog.setId(null);
|
| | | if(!orderDetlLogService.save(orderDetlLog)) {
|
| | | throw new CoolException("订单明细转历史档失败");
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | //删除订单明细
|
| | | if (!orderDetlService.removeById(orderDetl.getId())) {
|
| | | if (!orderDetlService.removeById(orderDetl)) {
|
| | | throw new CoolException("删除订单明细失败");
|
| | | }
|
| | | }
|