|
@@ -15,6 +15,7 @@ import com.qmth.exam.reserve.service.TimePeriodService;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -30,6 +31,7 @@ public class TimePeriodServiceImpl extends ServiceImpl<TimePeriodDao, TimePeriod
|
|
|
@Autowired
|
|
|
private ApplyTaskCacheService cacheService;
|
|
|
|
|
|
+ @Transactional
|
|
|
@Override
|
|
|
public void saveTimePeriod(Long userId, Long id, List<TimePeriodReq> timeList) {
|
|
|
ApplyTaskEntity task = taskService.getById(id);
|