|
@@ -117,25 +117,28 @@ public class TCStatisticsServiceImpl extends ServiceImpl<TCStatisticsMapper, TCS
|
|
|
/**
|
|
|
* 删除导入数据
|
|
|
*
|
|
|
+ * @param userId
|
|
|
* @param courseSet
|
|
|
* @param setCollections
|
|
|
*/
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public void removeImportData(Set<String> courseSet, Set<Long>... setCollections) {
|
|
|
+ public void removeImportData(Long userId, Set<String> courseSet, Set<Long>... setCollections) {
|
|
|
TCStatisticsService tcStatisticsService = SpringContextHolder.getBean(TCStatisticsService.class);
|
|
|
QueryWrapper<TCStatistics> tcStatisticsQueryWrapper = new QueryWrapper<>();
|
|
|
tcStatisticsQueryWrapper.lambda().in(TCStatistics::getCollegeId, setCollections[0])
|
|
|
.in(TCStatistics::getTeachingRoomId, setCollections[1])
|
|
|
.in(TCStatistics::getCourseCode, courseSet)
|
|
|
- .in(TCStatistics::getClazzId, setCollections[2]);
|
|
|
+ .in(TCStatistics::getClazzId, setCollections[2])
|
|
|
+ .eq(TCStatistics::getCreateId, userId);
|
|
|
tcStatisticsService.remove(tcStatisticsQueryWrapper);
|
|
|
|
|
|
QueryWrapper<TCStatisticsTemp> tcStatisticsTempQueryWrapper = new QueryWrapper<>();
|
|
|
tcStatisticsTempQueryWrapper.lambda().in(TCStatisticsTemp::getCollegeId, setCollections[0])
|
|
|
.in(TCStatisticsTemp::getTeachingRoomId, setCollections[1])
|
|
|
.in(TCStatisticsTemp::getCourseCode, courseSet)
|
|
|
- .in(TCStatisticsTemp::getClazzId, setCollections[2]);
|
|
|
+ .in(TCStatisticsTemp::getClazzId, setCollections[2])
|
|
|
+ .eq(TCStatisticsTemp::getCreateId, userId);
|
|
|
tcStatisticsTempService.remove(tcStatisticsTempQueryWrapper);
|
|
|
}
|
|
|
|