fix
Helius
2021-07-22 9ff1c9a2df642e6286be4903f841172f2073a7e8
fix
1 files modified
4 ■■■ changed files
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java 4 ●●● patch | view | raw | blame | history
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
@@ -63,7 +63,9 @@
    public void addJhyOrder(AddJhyOrderDto orderDto) {
        JhyInfo jhyInfo = jhyInfoMapper.selectJhyInfoByUserId(orderDto.getUserId());
        if (jhyInfo != null && JhyInfo.CHECK_PASS.equals(jhyInfo.getStatus())) {
            throw new RestException(-3, "集货员不能下单");
            if (JhyInfo.IS_JHY_Y.equals(jhyInfo.getIsJhy())) {
                throw new RestException(-3, "集货员不能下单");
            }
        }
        AddressInfo addressInfo = addressMapper.selectByPrimaryKey(orderDto.getAddressId());