浏览代码

BUG修复

wangliang 3 年之前
父节点
当前提交
ecc07e924a
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      distributed-print-business/src/main/resources/mapper/TCStatisticsMapper.xml

+ 6 - 2
distributed-print-business/src/main/resources/mapper/TCStatisticsMapper.xml

@@ -5,6 +5,10 @@
     <select id="list" resultType="com.qmth.distributed.print.business.bean.dto.TCStatisticsDto">
         select
         t.id,
+        t.collegeId,
+        t.collegeName,
+        t.teachingRoomId,
+        t.teachingRoomName,
         t.courseName,
         t.courseCode,
         t.teacherName,
@@ -14,8 +18,8 @@
         t.printPlanId,
         IF(t.examStudentCount = 0,null,t.printPlanName) as printPlanName,
         t.examStudentCount,
-        IF(t.examStudentCount = 0,0,t.examStudentCount + (t.drawCount * t.backupCount)) as printSum,
-        t.status
+        IF(t.examStudentCount = 0,null,t.examStudentCount + (t.drawCount * t.backupCount)) as printSum,
+        IF(t.examStudentCount = 0,null,t.status) as status
         from
         (
         select