Procházet zdrojové kódy

通告,课程管理

eganwu před 2 roky
rodič
revize
c86357969e

+ 1 - 1
src/custom/restcontroller/webmanage/saletool/courseware/courseware.java

@@ -264,7 +264,7 @@ public class courseware extends Controller {
             row.put("attinfos", attRowsMap.getOrDefault(row.getString("sat_coursewareid"), new Rows()));
             row.put("tag", DataTag.queryTag(this, "sat_courseware", sat_coursewareid, false));
             row.putIfAbsent("publishdate","");
-            row.put("role", roleRows);
+            row.put("role", roleRows.toArray("roleid"));
         }
 
         return getSucReturnObject().setData(row).toString();

+ 1 - 1
src/custom/restcontroller/webmanage/saletool/notice/notice.java

@@ -168,7 +168,7 @@ public class notice extends Controller {
             row.put("attinfos", attRowsMap.getOrDefault(row.getString("sat_noticeid"), new Rows()));
             row.putIfAbsent("publishdate", "");
 
-            row.put("role", roleRows);
+            row.put("role", roleRows.toArray("roleid"));
         }