...
|
...
|
@@ -155,8 +155,13 @@ public class MerchantOrderPaymentService extends AbstractOrderPaymentService { |
|
|
swd.setType(SellerWalletDetail.Type.RE_CHARGE.getValue());
|
|
|
swd.setCreateTime(TimeUtils.getTimeStampSecond());
|
|
|
swd.setUpdateTime(0);
|
|
|
swd.setAvailAmount(orderInfo.getAmount());
|
|
|
swd.setLockAmount(BigDecimal.ZERO);
|
|
|
if (orderInfo.getType() == TYPE_FIRST_RECHARGE) {
|
|
|
swd.setAvailAmount(orderInfo.getAmount());
|
|
|
swd.setLockAmount(BigDecimal.ZERO);
|
|
|
} else {
|
|
|
swd.setAvailAmount(orderInfo.getAmount().add(sw.getAmount()));
|
|
|
swd.setLockAmount(sw.getLockAmount());
|
|
|
}
|
|
|
swd.setIsSet(1);
|
|
|
MerchantOrderAttachInfo att = new MerchantOrderAttachInfo();
|
|
|
att.setPayment(orderInfo.getPayment());
|
...
|
...
|
|