|
@@ -2,6 +2,7 @@ package restcontroller.webmanage.saletool.courseware;
|
|
|
|
|
|
import beans.datacontrllog.DataContrlLog;
|
|
|
import beans.datatag.DataTag;
|
|
|
+import beans.time.Time;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import common.Controller;
|
|
@@ -81,7 +82,7 @@ public class coursewaredetail extends Controller {
|
|
|
updateSQL.setSiteid(siteid);
|
|
|
updateSQL.setValue("status", type == 0 ? "下架" : "上架");
|
|
|
updateSQL.setValue("sendby", type == 0 ? "null" : username);
|
|
|
- updateSQL.setValue("senddate", type == 0 ? "null" : getDateTime_Str());
|
|
|
+ updateSQL.setValue("senddate", type == 0 ? "null" : Time.getDateTime_Str());
|
|
|
updateSQL.setWhere("sat_coursewaredetailid", sat_coursewaredetailids.toArray());
|
|
|
updateSQL.update();
|
|
|
|
|
@@ -238,8 +239,8 @@ public class coursewaredetail extends Controller {
|
|
|
insertSQL.setValue("userid", userid);
|
|
|
insertSQL.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
insertSQL.setValue("hrid", hrid);
|
|
|
- insertSQL.setValue("firstreadtime", getDateTime_Str());
|
|
|
- insertSQL.setValue("lastreadtime", getDateTime_Str());
|
|
|
+ insertSQL.setValue("firstreadtime", Time.getDateTime_Str());
|
|
|
+ insertSQL.setValue("lastreadtime", Time.getDateTime_Str());
|
|
|
insertSQL.setValue("studycount", 1);
|
|
|
|
|
|
insertSQL.insert();
|
|
@@ -251,7 +252,7 @@ public class coursewaredetail extends Controller {
|
|
|
updateSQL.setSiteid(siteid);
|
|
|
updateSQL.setValue("sys_enterpriseid", sys_enterpriseid);
|
|
|
updateSQL.setValue("hrid", hrid);
|
|
|
- updateSQL.setValue("lastreadtime", getDateTime_Str());
|
|
|
+ updateSQL.setValue("lastreadtime", Time.getDateTime_Str());
|
|
|
updateSQL.setValue("studycount", studycount + 1);
|
|
|
|
|
|
updateSQL.update();
|