fix
Helius
2021-08-09 35bfed834faee8b04988e9f202a0f5c79b13b405
gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java
@@ -100,6 +100,7 @@
        Long id = model.getId();
        JhyOrder jhyOrder = jhyOrderMapper.selectByPrimaryKey(id);
        jhyOrder.setStatus(JhyOrder.ORDER_STATUS_CANCEL);
        jhyOrder.setJhyId("");
        jhyOrderMapper.updateByPrimaryKey(jhyOrder);
    }
@@ -162,11 +163,10 @@
        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);
    }