|
|
@@ -124,13 +124,15 @@ public class Paybill extends Controller {
|
|
|
}
|
|
|
|
|
|
public QuerySQL query(String where) throws YosException {
|
|
|
- QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_paybill");
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_paybill",
|
|
|
+ "billno","status","payer","period","amount","sa_paybillid");
|
|
|
querySQL.setTableAlias("t1");
|
|
|
querySQL.addJoinTable(JOINTYPE.inner, "sa_agents", "t2", "t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid"
|
|
|
, "agentnum");
|
|
|
querySQL.addJoinTable(JOINTYPE.inner, "sys_enterprise", "t3", "t1.siteid = t2.siteid and t1.sys_enterpriseid = t3.sys_enterpriseid"
|
|
|
, "enterprisename", "abbreviation");
|
|
|
querySQL.setWhere(where);
|
|
|
+ querySQL.addQueryFields("paydate","DATE_FORMAT(t1.paydate,'%Y-%m-%d')");
|
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
|
return querySQL;
|
|
|
}
|