|
|
@@ -86,6 +86,7 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
//查询当前对应的任务 |
|
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
|
.eq(Inspection::getMark, 1)); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
@@ -127,6 +128,7 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
//查询当前对应的任务 |
|
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
|
.eq(Inspection::getMark, 1)); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
@@ -169,6 +171,7 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
//查询当前对应的任务 |
|
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
|
.eq(Inspection::getMark, 1)); |
|
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
@@ -362,6 +365,12 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
if (null == user.getRoleId()) { |
|
|
|
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()); |
|
|
|
//一周前的时间 |
|
|
@@ -375,7 +384,7 @@ public class InspectionFileServiceImpl implements IInspectionFileService { |
|
|
|
InspectionFileCountVo vo = new InspectionFileCountVo(); |
|
|
|
vo.setCheckTime(s); |
|
|
|
//查询当日登录用户的已处理问题总数,创建时间 |
|
|
|
Integer num = inspectionFileMapper.getInspectionFileHandleCount(s, user.getId()); |
|
|
|
Integer num = inspectionFileMapper.getInspectionFileHandleCount(s, tenantId); |
|
|
|
if (null != num) { |
|
|
|
vo.setInspectionHandleSum(num); |
|
|
|
} |