| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | |
| | | orderDetl.sync(wrkDetl); |
| | | orderDetl.setOrderId(order.getId()); |
| | | orderDetl.setOrderNo(orderNo); |
| | | if (BaseController.isJSON(wrkDetl.getOrderNo())) { |
| | | if (!BaseController.isJSON(wrkDetl.getOrderNo())) { |
| | | orderDetl.setQty(orderDetl.getAnfme()); |
| | | } else { |
| | | // 订单合并出库 |
| | | List<OrderDto> orderDtoList = JSON.parseArray(wrkDetl.getOrderNo(), OrderDto.class); |
| | | |
| | | for (OrderDto one : orderDtoList) { |
| | | if (one.getOrderNo().equals(orderNo)) { |
| | | orderDetl.setAnfme(one.getAnfme()); |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 查询上报完结历史档 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Order> selectToBeHistoryOrder() { |
| | | return this.baseMapper.selectToBeHistoryOrder(); |
| | | } |
| | | } |