|
|
|
|
|
|
|
|
//查询当前对应的任务 |
|
|
//查询当前对应的任务 |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
.eq(Inspection::getMark, 1)); |
|
|
.eq(Inspection::getMark, 1)); |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
|
|
|
|
|
|
//查询当前对应的任务 |
|
|
//查询当前对应的任务 |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
.eq(Inspection::getMark, 1)); |
|
|
.eq(Inspection::getMark, 1)); |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
|
|
|
|
|
|
//查询当前对应的任务 |
|
|
//查询当前对应的任务 |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
Inspection inspection = inspectionMapper.selectOne(Wrappers.<Inspection>lambdaQuery() |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
.eq(Inspection::getId, query.getInspectionId()) |
|
|
|
|
|
.eq(Inspection::getTenantId,tenantId) |
|
|
.eq(Inspection::getMark, 1)); |
|
|
.eq(Inspection::getMark, 1)); |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
if (ObjectUtil.isNull(inspection)) { |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |
|
|
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); |