Procházet zdrojové kódy

学年升级记录

tags/正式3.10.0
雍文秀 před 1 rokem
rodič
revize
4290131924

+ 17
- 3
sapi/src/main/resources/mapper/system/SchoolMapper.xml Zobrazit soubor

@@ -116,9 +116,23 @@
116 116
         order by s2.createtime desc
117 117
     </select>
118 118
     <!--学校升级记录-->
119
-    <select id="listUpgrade" resultType="java.util.Map">
120
-        select su.suid,uptype,oldyear,newyear,uptime,upresult
121
-        ,classxznum,classxnnum,stuupnum,stubynum,u.username
119
+    <resultMap id="upResult" type="java.util.Map">
120
+        <result property="suid" column="suid"></result>
121
+        <result property="uptype" column="uptype"></result>
122
+        <result property="oldyear" column="oldyear"></result>
123
+        <result property="newyear" column="newyear"></result>
124
+        <result property="uptime" column="uptime"></result>
125
+        <result property="upresult" column="upresult"></result>
126
+        <result property="username" column="username"></result>
127
+        <collection property="histories" javaType="java.util.List" select="listHistory" column="suid">
128
+        </collection>
129
+    </resultMap>
130
+    <select id="listHistory" resultType="java.util.Map">
131
+        select gradeid,classyxznum,classsxznum,classyxnnum,classsxnnum,stuyupnum,stusupnum
132
+        from t_school_upgrade_history where suid=#{suid} order by suhid desc
133
+    </select>
134
+    <select id="listUpgrade" resultMap="upResult">
135
+        select su.suid,uptype,oldyear,newyear,uptime,upresult,u.username
122 136
         from t_school_upgrade su left join t_user u on su.upuserid=u.userid
123 137
         where su.schoolid=#{schoolid} order by su.suid desc
124 138
     </select>

Načítá se…
Zrušit
Uložit