|
|
@@ -30,6 +30,8 @@ import com.fs.store.service.cache.IFsUserCacheService;
|
|
|
import com.fs.store.service.cache.IFsUserCourseCacheService;
|
|
|
import com.hc.openapi.tool.util.StringUtils;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -44,6 +46,9 @@ import java.util.stream.Collectors;
|
|
|
*/
|
|
|
@Service
|
|
|
public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatchLog> implements IQwWatchLogService {
|
|
|
+
|
|
|
+ private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
+
|
|
|
@Autowired
|
|
|
private QwUserMapper qwUserMapper;
|
|
|
@Autowired
|
|
|
@@ -188,7 +193,8 @@ public class QwWatchLogServiceImpl extends ServiceImpl<QwWatchLogMapper, QwWatch
|
|
|
Date eTime = param.getETime();
|
|
|
List<Date> datesBetween = getDatesBetween(sTime, eTime);
|
|
|
if (datesBetween.size() > 7) {
|
|
|
- return new ArrayList<>();
|
|
|
+ logger.error("时间间隔不能超过7天");
|
|
|
+ throw new RuntimeException("时间间隔不能超过7天");
|
|
|
}
|
|
|
if (param.getCompanyUserId()!=null){
|
|
|
param.setIds(companyUserMapper.selectQwUserIdsByCompany(param.getCompanyUserId()));
|