Ver Fonte

农行银企直连列表报错修复

hu há 5 meses atrás
pai
commit
2312c16fa7

+ 4 - 2
src/custom/restcontroller/webmanage/sale/bankstatement/Bankstatement.java

@@ -61,8 +61,10 @@ public class Bankstatement extends Controller {
         querySQL.setPage(pageSize, pageNumber);
         querySQL.setOrderBy(pageSorting);
         Rows rows = querySQL.query();
-        Rows lastruntime = dbConnect.runSqlQuery("select max(lastruntime) lastruntime from sys_services where classname in ('AutoQueryBoclnfosForJH_" + siteid + "','AutoQueryBoclnfosForNH_" + siteid + "','AutoQueryBoclnfosForZH_" + siteid + "')");
-        rows.get(0).put("lastruntime", lastruntime.isEmpty() ? "" : lastruntime.get(0).getString("lastruntime"));
+        Rows lastruntime = dbConnect.runSqlQuery("select max(lastruntime) lastruntime from sys_services where classname in ('AutoQueryBoclnfosForNH')");
+        if(rows.isNotEmpty()){
+            rows.get(0).put("lastruntime", lastruntime.isEmpty() ? "" : lastruntime.get(0).getString("lastruntime"));
+        }
         return getSucReturnObject().setData(rows).toString();
     }