|
@@ -87,8 +87,20 @@ public class OrderFeeCostPlan extends Controller {
|
|
|
@API(title = "定制费用方案-参数列表", apiversion = R.ID20231212111202.v1.class)
|
|
@API(title = "定制费用方案-参数列表", apiversion = R.ID20231212111202.v1.class)
|
|
|
public String queryParam() throws YosException {
|
|
public String queryParam() throws YosException {
|
|
|
Long sys_datafunctionid = content.getLongValue("sys_datafunctionid");
|
|
Long sys_datafunctionid = content.getLongValue("sys_datafunctionid");
|
|
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_datafunction",
|
|
|
|
|
+ "sys_datafunctionid", "functionname", "remarks", "createdate");
|
|
|
|
|
+ querySQL.addQueryFields("createby", "\'admin\'");
|
|
|
|
|
+ querySQL.setWhere("t1.sys_datafunctionid", sys_datafunctionid);
|
|
|
|
|
+ querySQL.setPage(pageSize, pageNumber).setOrderBy(pageSorting).setTableAlias("t1");
|
|
|
|
|
+ Rows rows = querySQL.query();
|
|
|
|
|
+ if(rows.isEmpty()){
|
|
|
|
|
+ return getSucReturnObject().setData(new Row()).toString();
|
|
|
|
|
+ }
|
|
|
|
|
+ Row detail=rows.get(0);
|
|
|
|
|
+
|
|
|
Rows paramRows = dbConnect.runSqlQuery("SELECT * from sys_datafunction_params WHERE param!='siteid' and sys_datafunctionid=" + sys_datafunctionid);
|
|
Rows paramRows = dbConnect.runSqlQuery("SELECT * from sys_datafunction_params WHERE param!='siteid' and sys_datafunctionid=" + sys_datafunctionid);
|
|
|
- return getSucReturnObject().setData(paramRows).toString();
|
|
|
|
|
|
|
+ detail.put("param",paramRows);
|
|
|
|
|
+ return getSucReturnObject().setData(detail).toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|