|
@@ -6,7 +6,6 @@ import com.alibaba.fastjson2.JSONWriter;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.fjhx.account.service.account.AccountManagementService;
|
|
|
import com.fjhx.common.utils.Assert;
|
|
|
import com.fjhx.purchase.entity.purchase.dto.PurchasePayRecordDetailSelectDto;
|
|
|
import com.fjhx.purchase.entity.purchase.po.Purchase;
|
|
@@ -42,8 +41,6 @@ public class PurchasePayRecordDetailServiceImpl extends ServiceImpl<PurchasePayR
|
|
|
private PurchaseService purchaseService;
|
|
|
@Autowired
|
|
|
private PurchasePayRecordService purchasePayRecordService;
|
|
|
- @Autowired
|
|
|
- private AccountManagementService accountManagementService;
|
|
|
|
|
|
@Override
|
|
|
public Page<PurchasePayRecordDetailVo> getPage(PurchasePayRecordDetailSelectDto dto) {
|
|
@@ -52,10 +49,6 @@ public class PurchasePayRecordDetailServiceImpl extends ServiceImpl<PurchasePayR
|
|
|
wrapper.orderByDesc("pprd", PurchasePayRecordDetail::getId);
|
|
|
Page<PurchasePayRecordDetailVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
UserUtil.assignmentNickName(page.getRecords(), PurchasePayRecordDetailVo::getCreateUser, PurchasePayRecordDetailVo::setPayUserName);
|
|
|
- //赋值付款账户名称
|
|
|
- accountManagementService.attributeAssign(page.getRecords(), PurchasePayRecordDetailVo::getPayAccountId, (item, accountManagement) -> {
|
|
|
- item.setPayAccountName(accountManagement.getName());
|
|
|
- });
|
|
|
return page;
|
|
|
}
|
|
|
|