|
|
@@ -156,8 +156,11 @@ public class HlgPaymentServiceImpl extends ServiceImpl<HlgPaymentMapper, HlgPaym
|
|
|
}
|
|
|
hlgPaymentT.setRemark(remark);
|
|
|
//付款人显示(通过付款明细的付款人同步给付款单)
|
|
|
- if (StringUtils.isNotBlank(hlgPaymentDetailList.get(0).getPaymentBy())) {
|
|
|
- hlgPaymentT.setUpdateBy(hlgPaymentDetailList.get(0).getPaymentBy());
|
|
|
+ if (hlgPaymentDetailList.stream().findFirst().isPresent()) {
|
|
|
+ String paymentBy = hlgPaymentDetailList.stream().findFirst().get().getPaymentBy();
|
|
|
+ if (StringUtils.isNotBlank(paymentBy)) {
|
|
|
+ hlgPaymentT.setUpdateBy(paymentBy);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return pageList.setRecords(list);
|