|
@@ -3,6 +3,7 @@ package restcontroller.webmanage.saletool.courseware;
|
|
|
import beans.attachment.Attachment;
|
|
|
import beans.department.Department;
|
|
|
import beans.salearea.SaleArea;
|
|
|
+import beans.time.Time;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -196,8 +197,8 @@ public class coursewaretesthead extends Controller {
|
|
|
UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, sat_courseware_testhead);
|
|
|
updateSQL.setSiteid(siteid);
|
|
|
updateSQL.setValue("status", status == 0 ? "新建" : "发布");
|
|
|
- updateSQL.setValue("sendby", username);
|
|
|
- updateSQL.setValue("senddate", getDateTime_Str());
|
|
|
+ updateSQL.setValue("sendby", status == 0 ? "null" : username);
|
|
|
+ updateSQL.setValue("senddate", status == 0 ? "null" : Time.getDateTime_Str());
|
|
|
updateSQL.setWhere("sat_courseware_testheadid", sat_courseware_testheadids.toArray());
|
|
|
updateSQL.update();
|
|
|
|