|
@@ -108,11 +108,6 @@ public class AccountPaymentServiceImpl extends ServiceImpl<AccountPaymentMapper,
|
|
|
return page;
|
|
|
}
|
|
|
|
|
|
-// // 赋值公司名称信息
|
|
|
-// corporationService.attributeAssign(records, AccountPaymentVo::getCorporationId, (item, corporation) -> {
|
|
|
-// item.setCorporationName(corporation.getName());
|
|
|
-// });
|
|
|
-
|
|
|
// 赋值用户名称
|
|
|
UserUtil.assignmentNickName(records, AccountPayment::getDataUser, AccountPaymentVo::setUserName);
|
|
|
|
|
@@ -121,7 +116,7 @@ public class AccountPaymentServiceImpl extends ServiceImpl<AccountPaymentMapper,
|
|
|
Map<Long, String> deptMap = sysDeptList.stream().collect(Collectors.toMap(SysDept::getDeptId, SysDept::getDeptName));
|
|
|
|
|
|
for (AccountPaymentVo record : records) {
|
|
|
- record.setCorporationName(deptMap.get(record.getCorporationId()));
|
|
|
+ record.setCorporationName(deptMap.get(record.getCompanyId()));
|
|
|
record.setDeptName(deptMap.get(record.getDepartmentId()));
|
|
|
}
|
|
|
|