Commit 6850e85c by liyanlin

增加实际付款时间

parent 183972e6
...@@ -136,6 +136,10 @@ public class CostDto { ...@@ -136,6 +136,10 @@ public class CostDto {
@ApiModelProperty("支付时间") @ApiModelProperty("支付时间")
private Date payTime; private Date payTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("实际付款时间")
private Date actualTime;
@ApiModelProperty("转人民币汇率") @ApiModelProperty("转人民币汇率")
private BigDecimal toRmbRate; private BigDecimal toRmbRate;
@ApiModelProperty("费用单人民币总金额") @ApiModelProperty("费用单人民币总金额")
......
...@@ -3,6 +3,7 @@ package com.blt.other.database.model; ...@@ -3,6 +3,7 @@ package com.blt.other.database.model;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
@Data @Data
public class CostCashiercallbackDomain { public class CostCashiercallbackDomain {
...@@ -31,5 +32,6 @@ public class CostCashiercallbackDomain { ...@@ -31,5 +32,6 @@ public class CostCashiercallbackDomain {
private Integer cashierbankcardtype; private Integer cashierbankcardtype;
private String cashiermothercard; private String cashiermothercard;
private BigDecimal toRmbRate; private BigDecimal toRmbRate;
private Date actualTime;
} }
...@@ -271,6 +271,10 @@ public class CostDomain implements Serializable { ...@@ -271,6 +271,10 @@ public class CostDomain implements Serializable {
@ApiModelProperty(value = "ns会计科目Id") @ApiModelProperty(value = "ns会计科目Id")
private Integer nsAccountingSubjectId; private Integer nsAccountingSubjectId;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty("实际付款时间")
private Date actualTime;
public void setCostType(CostTypeDomain costTypeDomain) { public void setCostType(CostTypeDomain costTypeDomain) {
......
...@@ -467,6 +467,7 @@ public abstract class AbstractCostService implements CostService { ...@@ -467,6 +467,7 @@ public abstract class AbstractCostService implements CostService {
costDomain.setAmountRmb(costCashiercallbackDomain.getCashierpaymoneyrmb()); costDomain.setAmountRmb(costCashiercallbackDomain.getCashierpaymoneyrmb());
costDomain.setPayUserId(costCashiercallbackDomain.getPayuserid()); costDomain.setPayUserId(costCashiercallbackDomain.getPayuserid());
costDomain.setPayTime(new Date()); costDomain.setPayTime(new Date());
costDomain.setActualTime(costCashiercallbackDomain.getActualTime());
this.updateCost(costDomain); this.updateCost(costDomain);
costLogService.save(costCashiercallbackDomain.getCostNo(), costCashiercallbackDomain.getPayuserid(), "出纳收/付款成功:" + costCashiercallbackDomain.getPaynote()); costLogService.save(costCashiercallbackDomain.getCostNo(), costCashiercallbackDomain.getPayuserid(), "出纳收/付款成功:" + costCashiercallbackDomain.getPaynote());
......
...@@ -3,6 +3,7 @@ package com.blt.other.module.cost.vo; ...@@ -3,6 +3,7 @@ package com.blt.other.module.cost.vo;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
@Data @Data
public class Paydetail { public class Paydetail {
...@@ -34,4 +35,6 @@ public class Paydetail { ...@@ -34,4 +35,6 @@ public class Paydetail {
private Integer cashierbankcardtype; private Integer cashierbankcardtype;
private String cashiermothercard; private String cashiermothercard;
private Date actualTime;
} }
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
cost_no,message,payid,payno,payamount,payuserid,payusername,paynote,cashierbankaccountid, cost_no,message,payid,payno,payamount,payuserid,payusername,paynote,cashierbankaccountid,
cashierbankname,cashierbankcard,cashierbankcardname,cashierunitcode,cashierunitname, cashierbankname,cashierbankcard,cashierbankcardname,cashierunitcode,cashierunitname,
cashierrate,cashierpaymoney,cashierpaymoneyrmb,cashierservicemoneyrmb,otherordercode, cashierrate,cashierpaymoney,cashierpaymoneyrmb,cashierservicemoneyrmb,otherordercode,
cashierannex,cashierbankcardtype,cashiermothercard,to_rmb_rate cashierannex,cashierbankcardtype,cashiermothercard,to_rmb_rate,actualTime
) )
VALUE VALUE
( (
#{costNo},#{message}, #{payid}, #{payno}, #{payamount}, #{payuserid}, #{payusername}, #{paynote}, #{cashierbankaccountid}, #{costNo},#{message}, #{payid}, #{payno}, #{payamount}, #{payuserid}, #{payusername}, #{paynote}, #{cashierbankaccountid},
#{cashierbankname}, #{cashierbankcard}, #{cashierbankcardname}, #{cashierunitcode}, #{cashierunitname}, #{cashierbankname}, #{cashierbankcard}, #{cashierbankcardname}, #{cashierunitcode}, #{cashierunitname},
#{cashierrate}, #{cashierpaymoney}, #{cashierpaymoneyrmb}, #{cashierservicemoneyrmb}, #{otherordercode}, #{cashierrate}, #{cashierpaymoney}, #{cashierpaymoneyrmb}, #{cashierservicemoneyrmb}, #{otherordercode},
#{cashierannex}, #{cashierbankcardtype}, #{cashiermothercard},#{toRmbRate} #{cashierannex}, #{cashierbankcardtype}, #{cashiermothercard},#{toRmbRate},#{actualTime}
) )
</insert> </insert>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment