feat(oa): 添加财务记录时间范围查询功能
- 在 SysOaFinanceBo 中增加 beginCreateTime 和 endCreateTime 字段 - 配置 JsonFormat 和 DateTimeFormat 注解以支持日期时间格式化 - 修改 SysOaFinanceServiceImpl 中的查询逻辑,使用 BO 对象中的时间字段进行范围查询 - 移除对 params 参数中时间字段的依赖,统一通过 BO 对象传递查询条件
This commit is contained in:
@@ -199,8 +199,8 @@ public class SysOaFinanceServiceImpl implements ISysOaFinanceService {
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getFinanceType()), "sof.finance_type", bo.getFinanceType());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSigningCompany()), "sof.signing_company", bo.getSigningCompany());
|
||||
lqw.eq(Objects.nonNull(bo.getReceiveAccountId()) && bo.getReceiveAccountId()!=-1L, "sof.receive_account_id", bo.getReceiveAccountId());
|
||||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null,
|
||||
"sof.create_time", params.get("beginCreateTime"), params.get("endCreateTime"));
|
||||
lqw.between(bo.getBeginCreateTime()!= null && bo.getEndCreateTime()!= null,
|
||||
"sof.create_time", bo.getBeginCreateTime(), bo.getEndCreateTime());
|
||||
lqw.orderByDesc("create_time");
|
||||
return lqw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user