沈静伟 4 лет назад
Родитель
Сommit
3932a1142e
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/dsb/com/cnd3b/restcontroller/enterprise/notice/notice.java

+ 2 - 3
src/dsb/com/cnd3b/restcontroller/enterprise/notice/notice.java

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