Commit 50766cf5 authored by tangf's avatar tangf

修改商户余额资金流水

parent 144dfaa3
...@@ -19,21 +19,23 @@ public class CapitalFlowDaoImpl extends BaseDaoImpl implements CapitalFlowDao { ...@@ -19,21 +19,23 @@ public class CapitalFlowDaoImpl extends BaseDaoImpl implements CapitalFlowDao {
protected void init() { protected void init() {
register(CapitalFlowVo.class); register(CapitalFlowVo.class);
table.add(QUERY_LIST, "SELECT * FROM pd_capital_flow where 1=1 {WHERE} order by time desc") table.add(QUERY_LIST, "SELECT * FROM pd_capital_flow where 1=1 {WHERE} order by time desc")
.add("companyId","and company_id = ? ") .add("companyId"," AND company_id = ? ")
.add("companyName","and company_name LIKE concat(?,'%') ") .add("companyName"," AND company_name LIKE concat(?,'%') ")
.add("startDate", "and time >= ? ") .add("startDate", " AND time >= ? ")
.add("endDate", "and time <= ? ") .add("endDate", " AND time <= ? ")
.add("orderId", "and order_id = ? ") .add("orderId", " AND order_id = ? ")
.add("category", "and category = ?"); .add("category", " AND category = ?")
.add("status"," AND status = ? ");
table.add(QUERY_LIST_TOTAL, "SELECT sum(order_money) as order_money,sum(order_fee) as order_fee,sum(actual_money) as actual_money " + table.add(QUERY_LIST_TOTAL, "SELECT sum(order_money) as order_money,sum(order_fee) as order_fee,sum(actual_money) as actual_money " +
"FROM pd_capital_flow where 1=1 {WHERE} order by time desc") "FROM pd_capital_flow where 1=1 {WHERE} order by time desc")
.add("companyId","and company_id = ? ") .add("companyId","AND company_id = ? ")
.add("companyName","and company_name LIKE concat(?,'%')") .add("companyName","AND company_name LIKE concat(?,'%')")
.add("startDate", "and time >= ? ") .add("startDate", "AND time >= ? ")
.add("endDate", "and time <= ? ") .add("endDate", "AND time <= ? ")
.add("orderId", "and order_id = ? ") .add("orderId", "AND order_id = ? ")
.add("category", "and category = ?"); .add("category", "AND category = ?")
.add("status"," AND status = ? ");
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment