|
|
@@ -321,4 +321,36 @@ public class accountclass extends Controller {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @API(title = "查询冻结账户明细", apiversion = R.ID2025070310561403.v1.class)
|
|
|
+ @CACHEING
|
|
|
+ public String queryAccountbalanceFreez () throws YosException {
|
|
|
+ Long sa_accountbalanceid=content.getLong("sa_accountbalanceid");
|
|
|
+ StringBuffer where = new StringBuffer(" 1=1 ");
|
|
|
+ if (content.containsKey("where")) {
|
|
|
+ JSONObject whereObject = content.getJSONObject("where");
|
|
|
+ if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
+ where.append(" and(");
|
|
|
+ where.append("t1.remarks like'%").append(whereObject.getString("condition")).append("%' ");
|
|
|
+ where.append(")");
|
|
|
+ }
|
|
|
+ if (whereObject.containsKey("sonum") && !"".equals(whereObject.getString("sonum"))) {
|
|
|
+ where.append(" and t2.sonum ='").append(whereObject.getString("sonum")).append("' ");
|
|
|
+ }
|
|
|
+ if (whereObject.containsKey("remarks") && !"".equals(whereObject.getString("remarks"))) {
|
|
|
+ where.append("and t1.remarks like'%").append(whereObject.getString("remarks")).append("%' ");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_accountbalance_freez","*");
|
|
|
+ querySQL.setTableAlias("t1");
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sa_order", "t2", "t1.sourceid = t2.sa_orderid AND t1.siteid = t2.siteid and t1.sourcetable='sa_order'",
|
|
|
+ "status","sonum");
|
|
|
+ querySQL.setSiteid(siteid);
|
|
|
+ querySQL.setWhere("t1.sa_accountbalanceid",sa_accountbalanceid);
|
|
|
+ querySQL.setWhere(where.toString());
|
|
|
+ querySQL.setPage(pageSize, pageNumber);
|
|
|
+ Rows rows = querySQL.query();
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|