|
|
|
|
|
|
|
|
if (null == user.getRoleId()) { |
|
|
if (null == user.getRoleId()) { |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
} |
|
|
} |
|
|
|
|
|
//获取当前租户id |
|
|
|
|
|
String tenantId = CurrentUserUtil.getTenantId(); |
|
|
|
|
|
if(StringUtils.isEmpty(tenantId)){ |
|
|
|
|
|
return JsonResult.error(InspectionFileEnum.TENANT_ID_IS_NULL.getCode(),InspectionFileEnum.TENANT_ID_IS_NULL.getMsg()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//今日 |
|
|
//今日 |
|
|
DateTime endTime = DateUtil.endOfDay(DateUtil.date()); |
|
|
DateTime endTime = DateUtil.endOfDay(DateUtil.date()); |
|
|
//一周前的时间 |
|
|
//一周前的时间 |
|
|
|
|
|
|
|
|
InspectionFileCountVo vo = new InspectionFileCountVo(); |
|
|
InspectionFileCountVo vo = new InspectionFileCountVo(); |
|
|
vo.setCheckTime(s); |
|
|
vo.setCheckTime(s); |
|
|
//查询当日登录用户的已处理问题总数,创建时间 |
|
|
//查询当日登录用户的已处理问题总数,创建时间 |
|
|
Integer num = inspectionFileMapper.getInspectionFileHandleCount(s, user.getId()); |
|
|
|
|
|
|
|
|
Integer num = inspectionFileMapper.getInspectionFileHandleCount(s, tenantId); |
|
|
if (null != num) { |
|
|
if (null != num) { |
|
|
vo.setInspectionHandleSum(num); |
|
|
vo.setInspectionHandleSum(num); |
|
|
} |
|
|
} |