| | |
| | | String name = model.getAccount(); |
| | | model.setAccount(name); |
| | | model.setAccountPhone(accountPhone); |
| | | List<Integer> status = new ArrayList<>(); |
| | | if(CollUtil.isEmpty(model.getStatus())){ |
| | | status.add(1); |
| | | status.add(2); |
| | | status.add(3); |
| | | status.add(4); |
| | | status.add(5); |
| | | status.add(6); |
| | | model.setStatus(status); |
| | | } |
| | | |
| | | List<QueryJhyOrderListVo> maps = jhyOrderMapper.queryOrderList(model); |
| | | if(CollUtil.isNotEmpty(maps)){ |
| | | for(QueryJhyOrderListVo queryJhyOrderListVo : maps){ |
| | |
| | | Long id = model.getId(); |
| | | JhyOrder jhyOrder = jhyOrderMapper.selectByPrimaryKey(id); |
| | | jhyOrder.setStatus(JhyOrder.ORDER_STATUS_CANCEL); |
| | | jhyOrder.setJhyId(""); |
| | | jhyOrderMapper.updateByPrimaryKey(jhyOrder); |
| | | } |
| | | |
| | |
| | | return total; |
| | | } |
| | | |
| | | public void assignJhyOrder(AssignJhyOrderDto model) { |
| | | public void assignJhyOrder(AssignJhyOrderDto model,String userId) { |
| | | Long orderId = model.getOrderId(); |
| | | Long jhyId = model.getJhyId(); |
| | | JhyOrder order = jhyOrderMapper.selectByPrimaryKey(orderId); |
| | | order.setJhyId(jhyId.toString()); |
| | | order.setJhyId(userId); |
| | | order.setStatus(JhyOrder.ORDER_STATUS_IMG); |
| | | jhyOrderMapper.updateByPrimaryKey(order); |
| | | } |