Commit fe4ea0ab by jianan

新单跟进107

parent 4d3dc5a6
......@@ -84,9 +84,9 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
if (commissionDateStart != null && commissionDateEnd != null) {
queryWrapper.between("commission_date", commissionDateStart, commissionDateEnd);
}
// 查询预计入账日期及之前的记录
// 查询预计入账日期及之前的记录, 关联查询 commission_expected 表
if (expectedDate != null) {
queryWrapper.lt("expected_date", expectedDate);
queryWrapper.apply("exists (select 1 from commission_expected where commission_expected_biz_id = commission.commission_expected_biz_id and commission_date <= {0} and status = {1})", expectedDate);
}
queryWrapper.orderByDesc("id");
......
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