Browse Source

话题回复调整为任何状态下都统计回复信息

沈静伟 3 years ago
parent
commit
e09d84edc8
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/dsb/com/cnd3b/restcontroller/system/im/imdialog/imdialog.java

+ 1 - 4
src/dsb/com/cnd3b/restcontroller/system/im/imdialog/imdialog.java

@@ -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();
     }