소스 검색

条件租户条件判断

tags/v1.0.0^2
chengwang 1 년 전
부모
커밋
91b65d6df7
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java

+ 3
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionFileServiceImpl.java 파일 보기

@@ -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);

Loading…
취소
저장