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,4 +51,8 @@ public class TAssess extends BaseBean {
51 51
     @Transient
52 52
     //用户类型
53 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,6 +106,9 @@
106 106
         <if test="assess.classid!=null and assess.classid!=0">
107 107
             and au.classid=#{assess.classid}
108 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 112
         group by au.userid,au.autype,au.quotaid
110 113
         union select aq.quotapid,aq1.quotaname quotapname,aq.quotaid,aq.quotaname,aq.quotaorder
111 114
         ,null userid,null username,null usertype,null autype,null aunum

Loading…
Cancel
Save