|
|
@@ -450,10 +450,7 @@ public class imdialog extends Controller {
|
|
|
*/
|
|
|
public String subjectAnswer() {
|
|
|
long timsubjectid = content.getLongValue("timsubjectid");
|
|
|
- Rows rows = dbConnect.runSqlQuery("select fisclose from timsubject where siteid='" + siteid + "' and timsubjectid=" + timsubjectid);
|
|
|
- if (!rows.isEmpty() && !rows.get(0).getBoolean("fisclose")) {
|
|
|
- dbConnect.runSqlUpdate("update timsubjectanalysis set fisanswer=1,fanswertime=getDate() where siteid='" + siteid + "' and timsubjectid='" + timsubjectid + "' and tenterprise_userid='" + userid + "' and fisanswer=0");
|
|
|
- }
|
|
|
+ dbConnect.runSqlUpdate("update timsubjectanalysis set fisanswer=1,fanswertime=getDate() where siteid='" + siteid + "' and timsubjectid='" + timsubjectid + "' and tenterprise_userid='" + userid + "' and fisanswer=0");
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|