|
|
@@ -79,10 +79,30 @@ public class OrderFeeCostPlan extends Controller {
|
|
|
, "functionname", "remarks", "isused", "createdate");
|
|
|
querySQL.setWhere("t1.ownerid", ownerid);
|
|
|
querySQL.setWhere("t1.ownertable", ownertable);
|
|
|
+ querySQL.setWhere("t1.sys_datafunctionid in (SELECT sys_datafunctionid from sys_datafunction_params WHERE param='siteid' and value='" + siteid + "')");
|
|
|
querySQL.setPage(pageSize, pageNumber).setOrderBy(pageSorting).setTableAlias("t1");
|
|
|
Rows rows = querySQL.query();
|
|
|
- return getSucReturnObject().setData(rows).toString();
|
|
|
+
|
|
|
+ Row detailRow = new Row();
|
|
|
+ if (rows.isEmpty()) {
|
|
|
+ return getSucReturnObject().setData(detailRow).toString();
|
|
|
+
|
|
|
+ }
|
|
|
+ detailRow = rows.get(0);
|
|
|
+ Long sys_datafunctionid = detailRow.getLong("sys_datafunctionid");
|
|
|
+
|
|
|
+ Rows paramRows = dbConnect.runSqlQuery("SELECT * from sys_datafunction_params WHERE param!='siteid' and sys_datafunctionid=" + sys_datafunctionid);
|
|
|
+ detailRow.put("params",paramRows);
|
|
|
+
|
|
|
+ return getSucReturnObject().setData(detailRow).toString();
|
|
|
}
|
|
|
|
|
|
|
|
|
+// @API(title = "修改参数值")
|
|
|
+// public String modifyFunctionParams() throws YosException {
|
|
|
+//
|
|
|
+//
|
|
|
+// return getSucReturnObject().setData(detailRow).toString();
|
|
|
+// }
|
|
|
+
|
|
|
}
|