|
@@ -10,11 +10,13 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.fjhx.account.entity.account.dto.AccountRequestFundsDto;
|
|
import com.fjhx.account.entity.account.dto.AccountRequestFundsDto;
|
|
import com.fjhx.account.entity.account.dto.AccountRequestFundsSelectDto;
|
|
import com.fjhx.account.entity.account.dto.AccountRequestFundsSelectDto;
|
|
import com.fjhx.account.entity.account.po.AccountManagement;
|
|
import com.fjhx.account.entity.account.po.AccountManagement;
|
|
|
|
+import com.fjhx.account.entity.account.po.AccountPayment;
|
|
import com.fjhx.account.entity.account.po.AccountRequestFunds;
|
|
import com.fjhx.account.entity.account.po.AccountRequestFunds;
|
|
import com.fjhx.account.entity.account.vo.AccountRequestFundsDetailVo;
|
|
import com.fjhx.account.entity.account.vo.AccountRequestFundsDetailVo;
|
|
import com.fjhx.account.entity.account.vo.AccountRequestFundsVo;
|
|
import com.fjhx.account.entity.account.vo.AccountRequestFundsVo;
|
|
import com.fjhx.account.mapper.account.AccountRequestFundsMapper;
|
|
import com.fjhx.account.mapper.account.AccountRequestFundsMapper;
|
|
import com.fjhx.account.service.account.AccountManagementService;
|
|
import com.fjhx.account.service.account.AccountManagementService;
|
|
|
|
+import com.fjhx.account.service.account.AccountPaymentService;
|
|
import com.fjhx.account.service.account.AccountRequestFundsDetailService;
|
|
import com.fjhx.account.service.account.AccountRequestFundsDetailService;
|
|
import com.fjhx.account.service.account.AccountRequestFundsService;
|
|
import com.fjhx.account.service.account.AccountRequestFundsService;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
import com.fjhx.common.constant.SourceConstant;
|
|
@@ -66,6 +68,8 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
private AccountManagementService accountManagementService;
|
|
private AccountManagementService accountManagementService;
|
|
@Autowired
|
|
@Autowired
|
|
private ISysRoleService sysRoleService;
|
|
private ISysRoleService sysRoleService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private AccountPaymentService accountPaymentService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询请款列表
|
|
* 查询请款列表
|
|
@@ -148,12 +152,16 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
// 切换数据源
|
|
// 切换数据源
|
|
DynamicDataSourceContextHolder.push(SourceConstant.BASE);
|
|
DynamicDataSourceContextHolder.push(SourceConstant.BASE);
|
|
|
|
|
|
- // 赋值流程实例id
|
|
|
|
List<Long> accountRequestFundsIds = records.stream().map(AccountRequestFundsVo::getId).collect(Collectors.toList());
|
|
List<Long> accountRequestFundsIds = records.stream().map(AccountRequestFundsVo::getId).collect(Collectors.toList());
|
|
if (ObjectUtil.isNotEmpty(accountRequestFundsIds)) {
|
|
if (ObjectUtil.isNotEmpty(accountRequestFundsIds)) {
|
|
|
|
+ // 赋值流程实例id
|
|
Map<Long, Long> arfMap = flowExampleService.mapKV(FlowExample::getBusinessId, FlowExample::getId,
|
|
Map<Long, Long> arfMap = flowExampleService.mapKV(FlowExample::getBusinessId, FlowExample::getId,
|
|
q -> q.in(FlowExample::getBusinessId, accountRequestFundsIds));
|
|
q -> q.in(FlowExample::getBusinessId, accountRequestFundsIds));
|
|
records.forEach(item -> item.setFlowInfoId(arfMap.get(item.getId())));
|
|
records.forEach(item -> item.setFlowInfoId(arfMap.get(item.getId())));
|
|
|
|
+ //赋值打款id
|
|
|
|
+ Map<Long, Long> accountPaymentMap = accountPaymentService.mapKV(AccountPayment::getBusinessId, AccountPayment::getId,
|
|
|
|
+ q -> q.in(AccountPayment::getBusinessId, accountRequestFundsIds));
|
|
|
|
+ records.forEach(item -> item.setAccountPaymentId(accountPaymentMap.get(item.getId())));
|
|
}
|
|
}
|
|
|
|
|
|
// 查询部门id列表
|
|
// 查询部门id列表
|