Commit 326fa62e by 王军业

[删除付款约定信息]

1 parent 2072b68d
......@@ -104,10 +104,10 @@ public class PaymentAgreeServiceImpl implements PaymentAgreeService {
try {
logger.info("==============删除付款约定信息===================");
if (!contractServiceImpl.isDelete(s)) {
List<PaymentAgree> list = paymentAgreeVo.getList_payment_data();
for (PaymentAgree paymentAgree : list) {
paymentAgree.setContract_unid(s);
paymentAgreeMapper.deletePaymentAgree(paymentAgree.getPayment_unid());
List<Integer> list = paymentAgreeVo.getPayment_unids();
for (int n : list) {
//paymentAgree.setContract_unid(s);
paymentAgreeMapper.deletePaymentAgree(n);
}
return SuccessCode;
} else {
......
......@@ -9,7 +9,7 @@ import com.vion.financial.entity.PaymentAgree;
@JsonInclude(value=Include.NON_NULL)
public class PaymentAgreeVo {
private List<PaymentAgree> list_payment_data;
private List<Integer> payment_unids;
public List<PaymentAgree> getList_payment_data() {
return list_payment_data;
}
......@@ -18,5 +18,13 @@ public class PaymentAgreeVo {
this.list_payment_data = list_payment_data;
}
public List<Integer> getPayment_unids() {
return payment_unids;
}
public void setPayment_unids(List<Integer> payment_unids) {
this.payment_unids = payment_unids;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!