|
@@ -699,6 +699,9 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
}
|
|
|
Page<ContractBudgetVo> page = this.baseMapper.getProfitClearingPage(dto.getPage(), wrapper);
|
|
|
List<ContractBudgetVo> list = page.getRecords();
|
|
|
+ if (ObjectUtil.isEmpty(list)) {
|
|
|
+ return page;
|
|
|
+ }
|
|
|
|
|
|
customerService.attributeAssign(list, Contract::getBuyCorporationId, (item, customer) -> {
|
|
|
item.setCustomerName(customer.getName());
|
|
@@ -882,6 +885,17 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public void modifyAgencyFee(ContractDto contractDto) {
|
|
|
+ this.update(q -> q
|
|
|
+ .eq(Contract::getId, contractDto.getId())
|
|
|
+ .set(Contract::getProfitAgencyFee, contractDto.getProfitAgencyFee())
|
|
|
+ .set(BasePo::getUpdateTime, new Date())
|
|
|
+ .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
public void delete(Long id) {
|
|
|
this.removeById(id);
|
|
|
}
|