ruoyi-service/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/RecipientServiceImpl.java
@@ -27,15 +27,15 @@ @Override @Transactional(rollbackFor = Exception.class) public String addressSaveOrUpdate(Recipient recipient) { public Boolean addressSaveOrUpdate(Recipient recipient) { boolean result; // 主键ID为空,新增收货地址 if (StringUtils.isEmpty(String.valueOf(recipient.getId()))) { if (null == recipient.getId()) { recipient.setUserId(tokenService.getLoginUserStudy().getUserid()); result = this.save(recipient); } else { result = this.updateById(recipient); } return result ? "操作成功!" : "操作失败!"; return result; } }