|
|
@@ -75,7 +75,7 @@ public class notice extends Controller {
|
|
|
*/
|
|
|
public String noticeontop() {
|
|
|
String tnoticeid = content.getString("tnoticeid");
|
|
|
- boolean fisontop = content.getBoolean("fisontop");//ÊÇ·ñÖö¥
|
|
|
+ int fisontop = content.getInteger("fisontop");//ÊÇ·ñÖö¥
|
|
|
String status = dbConnect.runSqlUpdate("update tnotice set fisontop=" + fisontop + ", changeby='" + username + "',changedate=getdate() where siteid='" + siteid + "' and tnoticeid='" + tnoticeid + "'");
|
|
|
if ("true".equals(status)) {
|
|
|
return getSucReturnObject().toString();
|
|
|
@@ -193,6 +193,7 @@ public class notice extends Controller {
|
|
|
factory.addParameter("siteid", siteid);
|
|
|
factory.addParameter("tnoticeid", tnoticeid);
|
|
|
Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
|
+ System.err.println(factory.getSQL());
|
|
|
return getSucReturnObject().setDataByPaging(rows).setFinalDo(DataPool.defaultdatalife, 1);
|
|
|
}
|
|
|
|
|
|
@@ -214,6 +215,4 @@ public class notice extends Controller {
|
|
|
Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
|
return getSucReturnObject().setDataByPaging(rows).setFinalDo(DataPool.defaultdatalife, 1);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|