Browse Source

评价统计按科目搜索

tags/正式3.2.0
雍文秀 2 years ago
parent
commit
05e0d252b6

+ 4
- 0
sapi/src/main/java/com/xhkjedu/sapi/model/assess/TAssess.java View File

51
     @Transient
51
     @Transient
52
     //用户类型
52
     //用户类型
53
     private Integer usertype;
53
     private Integer usertype;
54
+
55
+    @Transient
56
+    //科目id
57
+    private String subjectid;
54
 }
58
 }

+ 3
- 0
sapi/src/main/resources/mapper/assess/AssessMapper.xml View File

106
         <if test="assess.classid!=null and assess.classid!=0">
106
         <if test="assess.classid!=null and assess.classid!=0">
107
             and au.classid=#{assess.classid}
107
             and au.classid=#{assess.classid}
108
         </if>
108
         </if>
109
+        <if test="assess.subjectid!=null and assess.subjectid!='0'.toString() and assess.subjectid!=''">
110
+            and au.subjectid=#{assess.subjectid}
111
+        </if>
109
         group by au.userid,au.autype,au.quotaid
112
         group by au.userid,au.autype,au.quotaid
110
         union select aq.quotapid,aq1.quotaname quotapname,aq.quotaid,aq.quotaname,aq.quotaorder
113
         union select aq.quotapid,aq1.quotaname quotapname,aq.quotaid,aq.quotaname,aq.quotaorder
111
         ,null userid,null username,null usertype,null autype,null aunum
114
         ,null userid,null username,null usertype,null autype,null aunum

Loading…
Cancel
Save