|
@@ -126,12 +126,13 @@ public class PaymentService extends ServiceImpl<PaymentMapper, Payment> {
|
|
|
if (IterUtil.isNotEmpty(insertList)) {
|
|
|
for (Payment payment : insertList) {
|
|
|
PaymentHistory history = new PaymentHistory();
|
|
|
+ history.setPaymentId(payment.getId());
|
|
|
history.setContractsId(payment.getContractsId());
|
|
|
history.setDescription("新增收款项");
|
|
|
history.setBeforeContent("--");
|
|
|
String afterContent = formatPaymentContent(payment);
|
|
|
history.setAfterContent(afterContent);
|
|
|
- history.setOperatorId(payment.getUpdateId());
|
|
|
+ history.setOperatorId(10000L);
|
|
|
history.setOperateDate(LocalDateTime.now());
|
|
|
histories.add(history);
|
|
|
}
|
|
@@ -142,10 +143,11 @@ public class PaymentService extends ServiceImpl<PaymentMapper, Payment> {
|
|
|
//比较原有收款项
|
|
|
for (Payment payment : oldPaymentList) {
|
|
|
PaymentHistory history = new PaymentHistory();
|
|
|
+ history.setPaymentId(payment.getId());
|
|
|
history.setContractsId(payment.getContractsId());
|
|
|
String before = formatPaymentContent(payment);
|
|
|
history.setBeforeContent(before);
|
|
|
- history.setOperatorId(payment.getUpdateId());
|
|
|
+ history.setOperatorId(10000L);
|
|
|
history.setOperateDate(LocalDateTime.now());
|
|
|
Optional<Payment> newPayment = paymentList.stream().filter(entry -> payment.getId().equals(entry.getId())).findFirst();
|
|
|
if (newPayment.isPresent()) {
|