Browse Source

[update] message:

kelei 6 months ago
parent
commit
7c08bba2a2

+ 1 - 1
admin/src/main/java/com/flyer/foster/service/IFosterRecordService.java

@@ -19,5 +19,5 @@ public interface IFosterRecordService extends IService<FosterRecord> {
      * @param addDTO
      * @return
      */
-    boolean addFosterRecord(FosterRecordAddDTO addDTO);
+    Integer addFosterRecord(FosterRecordAddDTO addDTO);
 }

+ 2 - 2
admin/src/main/java/com/flyer/foster/service/impl/FosterRecordServiceImpl.java

@@ -43,7 +43,7 @@ public class FosterRecordServiceImpl extends ServiceImpl<IFosterRecordMapper, Fo
 
     @Transactional
     @Override
-    public boolean addFosterRecord(FosterRecordAddDTO addDTO) {
+    public Integer addFosterRecord(FosterRecordAddDTO addDTO) {
         int tenantId = StpAppUtil.getTokenSession().getInt("tenantId");
         // 一个用户在同一个果园只能认领一棵树
         FosterRecord fosterRecord = this.lambdaQuery()
@@ -81,6 +81,6 @@ public class FosterRecordServiceImpl extends ServiceImpl<IFosterRecordMapper, Fo
             fosterRecord.setUpdatedTime(LocalDateTime.now());
             this.save(fosterRecord);
         }
-        return true;
+        return fosterRecord.getBirdseyeTreeId();
     }
 }