|
@@ -76,13 +76,7 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
|
wrapper.eq(ObjectUtil.isNotEmpty(dto.getStatus()), "arf.status", dto.getStatus());
|
|
|
wrapper.eq(ObjectUtil.isNotEmpty(dto.getPaymentStatus()), "ap.status", dto.getPaymentStatus());
|
|
|
wrapper.like(ObjectUtil.isNotEmpty(dto.getKeyword()), "arf.payment_remarks", dto.getKeyword());
|
|
|
- wrapper.eq(ObjectUtil.isNotEmpty(dto.getWriteOffStatus()), "arf.write_off_status", dto.getWriteOffStatus());
|
|
|
- //添加权限自己看自己
|
|
|
- wrapper.eq("arf.create_user", SecurityUtils.getUserId());
|
|
|
- // 请款审批状态 按 审批中、已通过、未通过 排序
|
|
|
- wrapper.orderByAsc("case arf.status when 10 then 1 when 30 then 2 else 3 END");
|
|
|
- // 同状态按发起时间倒序排序
|
|
|
- wrapper.orderByDesc("arf.create_time");
|
|
|
+ wrapper.orderByDesc("ap.status", "arf.payment_time", "arf.create_time");
|
|
|
Page<AccountRequestFundsVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
|
|
|
List<AccountRequestFundsVo> records = page.getRecords();
|
|
@@ -168,11 +162,6 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
|
}
|
|
|
|
|
|
DynamicDataSourceContextHolder.poll();
|
|
|
- //赋值流程id
|
|
|
- FlowExample flowExample = flowExampleService.getOne(q -> q.eq(FlowExample::getBusinessId, accountRequestFunds.getId()));
|
|
|
- if (ObjectUtil.isNotEmpty(flowExample)) {
|
|
|
- accountRequestFundsVo.setFlowInfoId(flowExample.getId());
|
|
|
- }
|
|
|
|
|
|
return accountRequestFundsVo;
|
|
|
}
|