Browse Source

update 订单导出增加新生课程专享

周箭河 4 năm trước cách đây
mục cha
commit
f84bf140c8

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/SubjectChangeServiceImpl.java

@@ -19,6 +19,7 @@ import com.ym.mec.util.date.DateUtil;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 
 import java.math.BigDecimal;
 import java.math.BigDecimal;
 import java.util.*;
 import java.util.*;
@@ -177,6 +178,7 @@ public class SubjectChangeServiceImpl extends BaseServiceImpl<Integer, SubjectCh
     }
     }
 
 
     @Override
     @Override
+    @Transactional(rollbackFor = Exception.class)
     public SubjectChange addChange(SubjectChange subjectChange) {
     public SubjectChange addChange(SubjectChange subjectChange) {
         Date nowDate = new Date();
         Date nowDate = new Date();
         subjectChange.setStatus(SubjectChangeStatusEnum.WAIT_PAY);
         subjectChange.setStatus(SubjectChangeStatusEnum.WAIT_PAY);