Commit 8e0e7e65 by 熊付

【进度】

1 parent b9d09b36
......@@ -3,32 +3,34 @@ package com.vion.financial.entity;
import java.util.Date;
public class Receipt {
private int receipt_unid;
private Integer receipt_unid;
private String contract_unid;
private int receipt_progress;
private Integer receipt_progress;
private Double receipt_amount;
private String oa_flow_id;
private String receipt_note;
private Date create_date;
public int getReceipt_unid() {
return receipt_unid;
}
public void setReceipt_unid(int receipt_unid) {
this.receipt_unid = receipt_unid;
}
public String getContract_unid() {
return contract_unid;
}
public void setContract_unid(String contract_unid) {
this.contract_unid = contract_unid;
}
public int getReceipt_progress() {
public Integer getReceipt_unid() {
return receipt_unid;
}
public void setReceipt_unid(Integer receipt_unid) {
this.receipt_unid = receipt_unid;
}
public Integer getReceipt_progress() {
return receipt_progress;
}
public void setReceipt_progress(int receipt_progress) {
public void setReceipt_progress(Integer receipt_progress) {
this.receipt_progress = receipt_progress;
}
public Double getReceipt_amount() {
return receipt_amount;
}
......
......@@ -6,28 +6,30 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.vion.financial.serializer.DateYMDHMSJsonSerializer;
public class ReturnInfo {
private int reback_unid;
private Integer reback_unid;
private String contract_unid;
private int reback_progress;
private Integer reback_progress;
private Date reback_date;
private Double actual_reback_amount;
private String reback_note;
public int getReback_unid() {
return reback_unid;
}
public void setReback_unid(int reback_unid) {
this.reback_unid = reback_unid;
}
public String getContract_unid() {
return contract_unid;
}
public void setContract_unid(String contract_unid) {
this.contract_unid = contract_unid;
}
public int getReback_progress() {
public Integer getReback_unid() {
return reback_unid;
}
public void setReback_unid(Integer reback_unid) {
this.reback_unid = reback_unid;
}
public Integer getReback_progress() {
return reback_progress;
}
public void setReback_progress(int reback_progress) {
public void setReback_progress(Integer reback_progress) {
this.reback_progress = reback_progress;
}
@JsonSerialize(using = DateYMDHMSJsonSerializer.class)
......
......@@ -7,7 +7,16 @@
receipt_note,
</if>
create_date)
values( #{contract_unid},#{receipt_progress},#{receipt_amount},#{oa_flow_id},
values( #{contract_unid},
<choose>
<when test="receipt_progress == null">
(select max(receipt_progress) from tb_receipt where contract_unid=#{contract_unid})
</when>
<otherwise>
#{receipt_progress}
</otherwise>
</choose>
,#{receipt_amount},#{oa_flow_id},
<if test="receipt_note !=null and receipt_note !=''">
#{receipt_note},
</if>
......
......@@ -17,9 +17,12 @@
)
values (
#{contract_unid},
<if test="reback_progress !=null and reback_progress !=''">
<if test="reback_progress !=null">
#{reback_progress},
</if>
<if test="reback_progress ==null">
(select max(reback_progress) from tb_return_info where contract_unid=#{contract_unid}),
</if>
<if test="reback_date !=null">
#{reback_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler},
</if>
......
......@@ -888,12 +888,12 @@ public class ContractServiceImpl implements ContractService {
returnInfo.setActual_reback_amount(importModel.getReback_amount());
returnInfo.setReback_date(importModel.getReback_date());
returnInfo.setReback_note(importModel.getReback_note());
returnInfo.setReback_progress(1);
//returnInfo.setReback_progress(1);
receipt.setContract_unid(importModel.getContract_unid());
receipt.setReceipt_amount(importModel.getReceipt_amount());
receipt.setOa_flow_id(importModel.getOa_flow_id());
receipt.setReceipt_note(importModel.getReceipt_note());
receipt.setReceipt_progress(1);
//receipt.setReceipt_progress(1);
if(importModel.getPre_acceptanc() != null && importModel.getPre_acceptanc().equals("是")) {
projectAcceptanc_pre.setAcceptanc_type("1");
projectAcceptanc_pre.setContract_unid(importModel.getContract_unid());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!