Explorar el Código

调整分摊算法的事务控制

JammeyJiang hace 1 mes
padre
commit
a8f8ce540e

+ 2 - 1
src/main/java/com/kcim/service/impl/AllocationServiceImpl.java

@@ -85,7 +85,6 @@ public class AllocationServiceImpl extends ServiceImpl<AllocationMapper, Allocat
      * @param hospId   医院id
      */
     @Override
-    @Transactional(rollbackFor = Throwable.class, propagation = Propagation.REQUIRED)
     public void startAllocation(StartDTO startDTO, Long hospId) {
         //获取分摊方式
         String parameterValue = centerService.getParameterValue(ParameterConstant.ALLOCATION_TYPE);
@@ -105,6 +104,7 @@ public class AllocationServiceImpl extends ServiceImpl<AllocationMapper, Allocat
      * 按会计科目分摊
      * @param startDTO
      */
+    @Transactional(rollbackFor = Throwable.class, propagation = Propagation.REQUIRED)
     public void startAccountAllocation(StartDTO startDTO, Long hospId){
         long timeMillis = System.currentTimeMillis();
         // 得到这个月的所有导入的成本数据
@@ -558,6 +558,7 @@ public class AllocationServiceImpl extends ServiceImpl<AllocationMapper, Allocat
      * @param startDTO
      * @param hospId
      */
+    @Transactional(rollbackFor = Throwable.class, propagation = Propagation.REQUIRED)
     public  void startCostAllocation(StartDTO startDTO, Long hospId){
         long timeMillis = System.currentTimeMillis();
         // 得到这个月的所有导入的成本数据