Explorar o código

新增小区的时候 由于中间表也需要新增 插入先后问题导致获取插入后的ID获取失败的bug修改

王苗苗 hai 1 semana
pai
achega
1e29b949ef

+ 3 - 1
slibra-system/src/main/java/com/slibra/business/service/impl/TNeighborhoodServiceImpl.java

@@ -109,13 +109,15 @@ public class TNeighborhoodServiceImpl implements ITNeighborhoodService
      * @param tNeighborhood 服务小区
      * @return 结果
      */
+    @Transactional(rollbackFor = Exception.class)
     @Override
     public int insertTNeighborhood(TNeighborhood tNeighborhood)
     {
         tNeighborhood.setCreateTime(DateUtils.getNowDate());
+        int i = tNeighborhoodMapper.insertTNeighborhood(tNeighborhood);
         //2024年11月12日15:08:28  需要额外处理一下关联表(小区和楼号的关联表)
         this.handleBuildingNumber(tNeighborhood);
-        return tNeighborhoodMapper.insertTNeighborhood(tNeighborhood);
+        return i;
     }
 
     private void handleBuildingNumber(TNeighborhood tNeighborhood) {

+ 3 - 0
slibra-system/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

@@ -1,6 +1,7 @@
 com/slibra/business/domain/TUserFeeInfo$TUserFeeInfoBuilder.class
 com/slibra/business/req/CutOffExtraReq$CutOffExtraReqBuilder.class
 com/slibra/business/req/CutOffExtraReq.class
+com/slibra/business/res/Ele.class
 com/slibra/system/mapper/SysRoleDeptMapper.class
 com/slibra/business/req/ChatRequest$ChatRequestBuilder.class
 com/slibra/system/service/impl/SysUserOnlineServiceImpl.class
@@ -47,6 +48,8 @@ com/slibra/business/mapper/CityMapper.class
 com/slibra/business/req/PredictorRequest.class
 com/slibra/system/mapper/SysPostMapper.class
 com/slibra/system/service/impl/SysPostServiceImpl.class
+com/slibra/business/service/impl/File2Text.class
+com/slibra/business/res/Ele$EleBuilder.class
 com/slibra/system/mapper/SysNoticeMapper.class
 com/slibra/business/service/ITUserInfoService.class
 com/slibra/business/service/impl/TNeighborhoodBuildingServiceImpl.class

+ 2 - 0
slibra-system/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@@ -32,6 +32,7 @@
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/service/ITWhitelistService.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/service/ISysDictTypeService.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/service/ISysConfigService.java
+/Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/res/Ele.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/service/ISysRoleService.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/res/PumpAndNumber.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/mapper/TUserInfoMapper.java
@@ -61,6 +62,7 @@
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/domain/TUserFeeInfo.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/service/impl/SysUserServiceImpl.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/domain/SysUserOnline.java
+/Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/service/impl/File2Text.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/req/PolicyReq.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/business/domain/TNeighborhoodBuilding.java
 /Users/wangmiaomiao/IdeaProjects/intelligent-voice-customer-service-java/slibra-system/src/main/java/com/slibra/system/service/impl/SysDeptServiceImpl.java