|
|
@@ -256,6 +256,22 @@ public class imdialog extends Controller {
|
|
|
return querySubject();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 话题关闭
|
|
|
+ * @return
|
|
|
+ * @throws D3bException
|
|
|
+ * @throws P2Exception
|
|
|
+ */
|
|
|
+ public String closeSubject() throws D3bException, P2Exception {
|
|
|
+ long timsubjectid = content.getLongValue("timsubjectid"); //话题ID 新增时默认传0
|
|
|
+ String status = dbConnect.runSqlUpdate("update timsubject set fisclose=1,closedate=getDate() where siteid='" + siteid + "' and timsubjectid=" + timsubjectid);
|
|
|
+ if ("true".equals(status)) {
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+ } else {
|
|
|
+ return getErrReturnObject().toString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 话题内容查询
|
|
|
*
|