|
@@ -123,11 +123,14 @@ public class FinanceInvoiceServiceImpl extends ServiceImpl<FinanceInvoiceMapper,
|
|
orderFund.setOrderName(item.getName());
|
|
orderFund.setOrderName(item.getName());
|
|
String oaNo = item.getOaNo();
|
|
String oaNo = item.getOaNo();
|
|
if (StrUtil.isBlank(oaNo)){
|
|
if (StrUtil.isBlank(oaNo)){
|
|
- ErrorCode.throwBusinessException(ErrorCode.CUSTOM_ERROR,"项目编号(大友OA编号不能为空)");
|
|
|
|
|
|
+ //ErrorCode.throwBusinessException(ErrorCode.CUSTOM_ERROR,"项目编号(大友OA编号不能为空)");
|
|
|
|
+ //如果没有大友OA流水号就用事业部流水号
|
|
|
|
+ oaNo = item.getBusinessNo();
|
|
}
|
|
}
|
|
orderFund.setOrderId(oaNo);
|
|
orderFund.setOrderId(oaNo);
|
|
orderFund.setBusinessId(item.getId());
|
|
orderFund.setBusinessId(item.getId());
|
|
orderFund.setBusinessType(ITEM_BUSINESS.name());
|
|
orderFund.setBusinessType(ITEM_BUSINESS.name());
|
|
|
|
+ orderFund.setClientManagerId(item.getUserId());
|
|
orderFundService.add(orderFund);
|
|
orderFundService.add(orderFund);
|
|
dto.setOrderFundId(orderFund.getId());
|
|
dto.setOrderFundId(orderFund.getId());
|
|
}
|
|
}
|
|
@@ -163,11 +166,7 @@ public class FinanceInvoiceServiceImpl extends ServiceImpl<FinanceInvoiceMapper,
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<FinanceInvoice> getList(Long id, Long productionFundId) {
|
|
public List<FinanceInvoice> getList(Long id, Long productionFundId) {
|
|
- List<FinanceInvoice> list = this.list(new LambdaQueryWrapper<FinanceInvoice>()
|
|
|
|
- .eq(FinanceInvoice::getOrderFundId, id)
|
|
|
|
- .eq(productionFundId!=null,FinanceInvoice::getProductionFundId, productionFundId)
|
|
|
|
- .orderByDesc(BaseEntity::getCreated));
|
|
|
|
- return list;
|
|
|
|
|
|
+ return financeInvoiceMapper.getList(id,productionFundId);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|