|
@@ -134,11 +134,11 @@ public class AccountPaymentServiceImpl extends ServiceImpl<AccountPaymentMapper,
|
|
|
*/
|
|
|
@Override
|
|
|
public AccountPaymentVo detail(Long id) {
|
|
|
- AccountPayment AccountPayment = baseMapper.detail(id);
|
|
|
- AccountPaymentVo result = BeanUtil.toBean(AccountPayment, AccountPaymentVo.class);
|
|
|
+ AccountPayment accountPayment = baseMapper.detail(id);
|
|
|
+ AccountPaymentVo result = BeanUtil.toBean(accountPayment, AccountPaymentVo.class);
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(result.getAccountManagementId())) {
|
|
|
- //查询实际打款的付款账户名称;
|
|
|
+ //查询实际打款的付款账户名称
|
|
|
AccountManagement accountManagement = accountManagementService.getById(result.getAccountManagementId());
|
|
|
if (ObjectUtil.isNotEmpty(accountManagement)) {
|
|
|
result.setAccountManagementName(accountManagement.getName());
|
|
@@ -146,14 +146,6 @@ public class AccountPaymentServiceImpl extends ServiceImpl<AccountPaymentMapper,
|
|
|
|
|
|
}
|
|
|
|
|
|
- if (ObjectUtil.isNotEmpty(result.getBusinessManagementId())) {
|
|
|
- //查询业务中选中的付款账户名称;
|
|
|
- AccountManagement accountManagement = accountManagementService.getById(result.getBusinessManagementId());
|
|
|
- if (ObjectUtil.isNotEmpty(accountManagement)) {
|
|
|
- result.setBusinessManagementName(accountManagement.getName());
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
return result;
|
|
|
}
|
|
|
|