| | |
| | | if (!Cools.isEmpty(orderNo)) { |
| | | wrapper.like("order_no", orderNo); |
| | | } |
| | | wrapper.le("settle", 2).eq("doc_type", 1); |
| | | wrapper.le("settle", 2).eq("doc_type", 1).eq("status", 1); |
| | | wrapper.orderBy("create_time", false); |
| | | List<Order> orders = orderService.selectList(wrapper); |
| | | return R.ok().add(orders); |
| | |
| | | } |
| | | for (OrderDetl orderDetl : param.getOrderDetlList()) { |
| | | orderDetl.setOrderId(order.getId()); |
| | | orderDetl.setOrderNo(order.getOrderNo()); |
| | | orderDetl.setCreateBy(getUserId()); |
| | | orderDetl.setCreateTime(now); |
| | | orderDetl.setUpdateBy(getUserId()); |
| | |
| | | if (detl == null) { |
| | | detl = orderDetl; |
| | | detl.setOrderId(order.getId()); |
| | | detl.setOrderNo(order.getOrderNo()); |
| | | detl.setCreateTime(now); |
| | | detl.setCreateBy(userId); |
| | | detl.setUpdateTime(now); |