| | |
| | | address.append(StrUtil.isNotBlank(addressInfo.getUnitName()) ? addressInfo.getUnitName() : ""); |
| | | } |
| | | } |
| | | |
| | | List<JhyOrder> addressExist = jhyOrderMapper.selectJhyOrderListByStatus(StrUtil.split("1,2", ','), jhyOrder.getUserId()); |
| | | if (CollUtil.isNotEmpty(addressExist)) { |
| | | for (JhyOrder order : addressExist) { |
| | | String orderAddr = order.getArea() + order.getAddress(); |
| | | |
| | | log.info("orderAddr====>>>>{}", orderAddr); |
| | | log.info("address===>{}", address); |
| | | if (orderAddr.equals(address.toString())) { |
| | | throw new RestException(-3, "同一地址仅能有一单在进行中"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | jhyOrder.setAddress(address.toString()); |
| | | |
| | | jhyOrder.setUsername(addressInfo.getRelaName()); |