Commit 326fa62e by 王军业

[删除付款约定信息]

1 parent 2072b68d
...@@ -104,10 +104,10 @@ public class PaymentAgreeServiceImpl implements PaymentAgreeService { ...@@ -104,10 +104,10 @@ public class PaymentAgreeServiceImpl implements PaymentAgreeService {
try { try {
logger.info("==============删除付款约定信息==================="); logger.info("==============删除付款约定信息===================");
if (!contractServiceImpl.isDelete(s)) { if (!contractServiceImpl.isDelete(s)) {
List<PaymentAgree> list = paymentAgreeVo.getList_payment_data(); List<Integer> list = paymentAgreeVo.getPayment_unids();
for (PaymentAgree paymentAgree : list) { for (int n : list) {
paymentAgree.setContract_unid(s); //paymentAgree.setContract_unid(s);
paymentAgreeMapper.deletePaymentAgree(paymentAgree.getPayment_unid()); paymentAgreeMapper.deletePaymentAgree(n);
} }
return SuccessCode; return SuccessCode;
} else { } else {
......
package com.vion.financial.vo; package com.vion.financial.vo;
import java.util.List; import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vion.financial.entity.PaymentAgree; import com.vion.financial.entity.PaymentAgree;
@JsonInclude(value=Include.NON_NULL) @JsonInclude(value=Include.NON_NULL)
public class PaymentAgreeVo { public class PaymentAgreeVo {
private List<PaymentAgree> list_payment_data; private List<PaymentAgree> list_payment_data;
private List<Integer> payment_unids;
public List<PaymentAgree> getList_payment_data() { public List<PaymentAgree> getList_payment_data() {
return list_payment_data; return list_payment_data;
} }
public void setList_payment_data(List<PaymentAgree> list_payment_data) { public void setList_payment_data(List<PaymentAgree> list_payment_data) {
this.list_payment_data = list_payment_data; 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!