Commit 17041cf2 by huluobin

Merge branch 'master' into 3.0

parents f0fd2060 6a3d971f
......@@ -9,6 +9,7 @@ public class CostCashiercallbackDomain {
private Integer id;
private String costNo;
private String message;
private Integer payid;
private String payno;
private BigDecimal payamount;
......
......@@ -435,16 +435,21 @@ public abstract class AbstractCostService implements CostService {
}
void cashierCallbackPass(CostCashiercallbackDomain costCashiercallbackDomain) {
CostDomain costDomain = this.getCostByCostNo(costCashiercallbackDomain.getCostNo());
// 获取xx货币-->CNY的汇率
BigDecimal toRmbRate = CurUtils.getCur(costCashiercallbackDomain.getCashierunitcode().toUpperCase(), "CNY");
costCashiercallbackDomain.setToRmbRate(toRmbRate);
if (costCashiercallbackDomain.getCashierunitcode() != null) {
BigDecimal toRmbRate = CurUtils.getCur(costCashiercallbackDomain.getCashierunitcode().toUpperCase(), "CNY");
costCashiercallbackDomain.setToRmbRate(toRmbRate);
costDomain.setToRmbRate(toRmbRate);
}
// 保存出纳付款记录
Integer integer = costCashiercallbackService.saveCostCashiercallbackResponse(costCashiercallbackDomain);
log.warn("保存出纳付款信息成功:" + integer + " " + costCashiercallbackDomain);
// 付款成功,更改费用单信息,否则返回失败
CostDomain costDomain = this.getCostByCostNo(costCashiercallbackDomain.getCostNo());
costDomain.setCostStatus(4);
if (null != costDomain.getIsLend()) {
......@@ -452,10 +457,10 @@ public abstract class AbstractCostService implements CostService {
costDomain.setLendStatus(1);
}
}
costDomain.setAmountRmb(costCashiercallbackDomain.getCashierpaymoneyrmb());
costDomain.setPayUserId(costCashiercallbackDomain.getPayuserid());
costDomain.setPayTime(new Date());
costDomain.setAmountRmb(costCashiercallbackDomain.getCashierpaymoneyrmb());
costDomain.setToRmbRate(toRmbRate);
this.updateCost(costDomain);
costLogService.save(costCashiercallbackDomain.getCostNo(), costCashiercallbackDomain.getPayuserid(), "出纳收/付款成功:" + costCashiercallbackDomain.getPaynote());
}
......
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