提交 d2618a9f authored 作者: liuhaiquan's avatar liuhaiquan

修改结算单查询的sql

上级 9c1914a7
...@@ -13,7 +13,7 @@ public class SettlementDriverDetailSqlProvider { ...@@ -13,7 +13,7 @@ public class SettlementDriverDetailSqlProvider {
return new SQL(){{ return new SQL(){{
SELECT("a.* "); SELECT("a.* ");
FROM("settlement_owner_detail a "); FROM("settlement_owner_detail a ");
LEFT_OUTER_JOIN("settlement_driver b on a.settlement_no = b.settlement_no"); LEFT_OUTER_JOIN("settlement_driver b on a.child_no = b.child_no ");
WHERE("b.create_time >= #{beginTime}"); WHERE("b.create_time >= #{beginTime}");
WHERE("b.status = " + SettlementDriverEnum.Status.WAIT_SETTLEMENT.getCode()); WHERE("b.status = " + SettlementDriverEnum.Status.WAIT_SETTLEMENT.getCode());
ORDER_BY("b.create_time"); ORDER_BY("b.create_time");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论