소스 검색

BUG修改

wangliang 2 년 전
부모
커밋
24fdbe23bc

+ 2 - 1
teachcloud-common/src/main/java/com/qmth/teachcloud/common/mapper/TBTaskMapper.java

@@ -1,5 +1,6 @@
 package com.qmth.teachcloud.common.mapper;
 
+import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.qmth.teachcloud.common.bean.dto.DataPermissionRule;
@@ -8,7 +9,6 @@ import com.qmth.teachcloud.common.entity.TBTask;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.Map;
-import java.util.Set;
 
 /**
  * <p>
@@ -20,6 +20,7 @@ import java.util.Set;
  */
 public interface TBTaskMapper extends BaseMapper<TBTask> {
 
+    @InterceptorIgnore(tenantLine = "true")
     public IPage<TaskListResult> query(IPage<Map> iPage,
                                        @Param("schoolId") Long schoolId,
                                        @Param("printPlanId") Long printPlanId,

+ 1 - 1
teachcloud-common/src/main/resources/mapper/TBTaskMapper.xml

@@ -14,7 +14,7 @@
             tbt.create_id as createId,
             su.real_name as createName,
             if(ISNULL(tbt.import_file_path),false,true) as hasImportFile,
-            if(ISNULL(tbt.result_file_path),false,true) as hasResultFile,
+            if(ISNULL(tbt.result_file_path),false,true) or if(ISNULL(tbt.import_file_path),false,true) as hasResultFile,
             if(ISNULL(tbt.report_file_path),false,true) as hasReportFile,
             if(ISNULL(tbt.error_file_path),false,true) as hasErrorFile,
             tbt.reset_count as resetCount,