提交 c22e344a authored 作者: 李瑞鑫's avatar 李瑞鑫

Merge branch 'v17.5_order_child_sync_broker_20240617'

...@@ -49,7 +49,7 @@ public class WalletResidueDTO { ...@@ -49,7 +49,7 @@ public class WalletResidueDTO {
} }
@JsonGetter(value="frozen") @JsonGetter(value="frozen")
public BigDecimal frozenFormat() { public BigDecimal frozenFormat() {
return new BigDecimal(new Double(this.frozen)/100); return BigDecimal.valueOf(new Double(this.frozen)/100);
} }
@JsonGetter(value="residue") @JsonGetter(value="residue")
public Double residueFormat() { public Double residueFormat() {
...@@ -57,7 +57,7 @@ public class WalletResidueDTO { ...@@ -57,7 +57,7 @@ public class WalletResidueDTO {
} }
@JsonGetter(value="deposit") @JsonGetter(value="deposit")
public Double depositFormat() { public Double depositFormat() {
return new Double(this.deposit)/100; return this.deposit/100;
} }
public Double getDeposit() { public Double getDeposit() {
......
...@@ -480,7 +480,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -480,7 +480,7 @@ public class OrderChildServiceImpl implements OrderChildService {
// 新增运单 // 新增运单
orderChildDao.saveEntity(orderChild); orderChildDao.saveEntity(orderChild);
// 冻结司机保证金 // 冻结司机保证金
if(deposit.compareTo(BigDecimal.ZERO) ==1){ if(deposit.compareTo(BigDecimal.ZERO) > 0){
PayPlatformFeeParam payPlatformFeeParam = new PayPlatformFeeParam(); PayPlatformFeeParam payPlatformFeeParam = new PayPlatformFeeParam();
payPlatformFeeParam.setTradeNo(childNo); payPlatformFeeParam.setTradeNo(childNo);
payPlatformFeeParam.setFrom(checkWalletCode); payPlatformFeeParam.setFrom(checkWalletCode);
......
...@@ -383,6 +383,7 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -383,6 +383,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull(); orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull();
if (null == orderPaymentOptional){ if (null == orderPaymentOptional){
log.error("数据不存在 {}, {}" ,orderNo,msg); log.error("数据不存在 {}, {}" ,orderNo,msg);
return;
} }
orderPaymentOptional.setStatus(PaymentStatusEnum.FAIL.getValue()); orderPaymentOptional.setStatus(PaymentStatusEnum.FAIL.getValue());
orderPaymentOptional.setReason(msg); orderPaymentOptional.setReason(msg);
...@@ -396,6 +397,7 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -396,6 +397,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull(); orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull();
if (null == orderPaymentOptional){ if (null == orderPaymentOptional){
log.error("数据不存在 {}, {}" ,orderNo); log.error("数据不存在 {}, {}" ,orderNo);
return;
} }
orderPaymentOptional.setStatus(PaymentStatusEnum.SUCCESS.getValue()); orderPaymentOptional.setStatus(PaymentStatusEnum.SUCCESS.getValue());
orderPaymentDao.updateEntityByKey(orderPaymentOptional); orderPaymentDao.updateEntityByKey(orderPaymentOptional);
...@@ -408,6 +410,7 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -408,6 +410,7 @@ public class PaymentServiceImpl implements PaymentService {
OrderPayment orderPaymentOptional = orderPaymentDao.getEntityByKey(Integer.valueOf(id)).orNull(); OrderPayment orderPaymentOptional = orderPaymentDao.getEntityByKey(Integer.valueOf(id)).orNull();
if (null == orderPaymentOptional){ if (null == orderPaymentOptional){
log.error("数据不存在 {}, {}" ,id); log.error("数据不存在 {}, {}" ,id);
return;
} }
orderPaymentOptional.setStatus(status); orderPaymentOptional.setStatus(status);
orderPaymentDao.updateEntityByKey(orderPaymentOptional); orderPaymentDao.updateEntityByKey(orderPaymentOptional);
...@@ -419,6 +422,7 @@ public class PaymentServiceImpl implements PaymentService { ...@@ -419,6 +422,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull(); orderPaymentDao.selectByRelationNo(orderNo,operation,paymentItem).orNull();
if (null == orderPaymentOptional){ if (null == orderPaymentOptional){
log.error("数据不存在 {}, {}" ,orderNo); log.error("数据不存在 {}, {}" ,orderNo);
return;
} }
orderPaymentOptional.setStatus(PaymentStatusEnum.SUCCESS.getValue()); orderPaymentOptional.setStatus(PaymentStatusEnum.SUCCESS.getValue());
orderPaymentOptional.setSerialNo(serialNo); orderPaymentOptional.setSerialNo(serialNo);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论