|
|
@@ -107,6 +107,21 @@ public class coursewaretesthead extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
+ @API(title = "考试表头发布", apiversion = R.ID20240323141002.v1.class)
|
|
|
+ public String release() throws YosException {
|
|
|
+
|
|
|
+ JSONArray sat_courseware_testheadids = content.getJSONArray("sat_courseware_testheadids");
|
|
|
+ int status = content.getIntValue("status", 0);
|
|
|
+
|
|
|
+ UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, sat_courseware_testhead);
|
|
|
+ updateSQL.setSiteid(siteid);
|
|
|
+ updateSQL.setValue("status", status == 0 ? "新建" : "发布");
|
|
|
+ updateSQL.setWhere("sat_courseware_testheadid", sat_courseware_testheadids.toArray());
|
|
|
+ updateSQL.update();
|
|
|
+
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+ }
|
|
|
+
|
|
|
@API(title = "考试表头列表", apiversion = R.ID20240323112502.v1.class)
|
|
|
public String list() throws YosException {
|
|
|
StringBuffer where = new StringBuffer(" 1=1 ");
|