xiaoyong931011
2021-08-02 8269efac48716a328c12a4e836a4efb4a5f277d9
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
@@ -92,12 +92,12 @@
            }
        }
        List<JhyOrder> addressExist = jhyOrderMapper.selectJhyOrderListByStatus(StrUtil.split("1,2", ','), jhyOrder.getUserId());
        List<JhyOrder> addressExist = jhyOrderMapper.selectJhyOrderListByStatus(StrUtil.split("1,2", ','), orderDto.getUserId());
        if (CollUtil.isNotEmpty(addressExist)) {
            for (JhyOrder order : addressExist) {
                String orderAddr = order.getArea() + order.getAddress();
                if (orderAddr.equals(address.toString())) {
                if (orderAddr.equals(addressInfo.getAddressArea() + address)) {
                    throw new RestException(-3, "同一地址仅能有一单在进行中");
                }
            }