feat:正元余额不足
This commit is contained in:
1 parent
fd7a89e6db
commit
67eefb7436
1 file changed
+7
-7
+7
-7
@@ -137,7 +137,7 @@ public class ThirdZySelfServiceImpl implements ThirdZySelfService {
|
||||
refundDto.setSerialNum(dto.getSerialNum());
|
||||
HardCallbackRefundVo refundRes = hardCallback.refund(refundDto).getData();
|
||||
result.setCode(refundRes.getCode().getType());
|
||||
result.setCode(refundRes.getCode().getDescription());
|
||||
result.setMsg(refundRes.getCode().getDescription());
|
||||
ZySelfPayVo zySelfPayVo = new ZySelfPayVo();
|
||||
// 人员编号
|
||||
ThirdZyIdDictEntity userIdDict = thirdZyIdDictMapper.getBySelfId(ThirdZyBizEnumType.SYNC_ACCOUNT_INFO, String.valueOf(refundRes.getUserId()));
|
||||
@@ -146,16 +146,15 @@ public class ThirdZySelfServiceImpl implements ThirdZySelfService {
|
||||
zySelfPayVo.setAccName(refundRes.getUsername());
|
||||
zySelfPayVo.setPerCode(userZyId);
|
||||
zySelfPayVo.setSerialNum(refundRes.getOrderNo());
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(refundRes.getRefundTime(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
switch (refundRes.getCode()) {
|
||||
case SUCCESS -> {
|
||||
ZySelfPayVo success = new ZySelfPayVo();
|
||||
success.setPlatformSerialNum(String.valueOf(refundRes.getRefundId()));
|
||||
success.setAmount(dto.getAmount());
|
||||
result.setMsg(ZyBaseVo.selfSuccessMsg);
|
||||
zySelfPayVo.setPlatformSerialNum(String.valueOf(refundRes.getRefundId()));
|
||||
zySelfPayVo.setAmount(dto.getAmount());
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(refundRes.getRefundTime(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
}
|
||||
default -> {
|
||||
zySelfPayVo.setPlatformSerialNum("temporary_" + dto.getSerialNum());
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(LocalDateTime.now(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
}
|
||||
}
|
||||
Map<String, Object> resMap = BeanUtil.beanToMap(result);
|
||||
@@ -237,7 +236,6 @@ public class ThirdZySelfServiceImpl implements ThirdZySelfService {
|
||||
result.setMsg(payRes.getCode().getDescription());
|
||||
ZySelfPayVo zySelfPayVo = new ZySelfPayVo();
|
||||
zySelfPayVo.setSerialNum(dto.getSerialNum());
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(payRes.getPayTime(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
switch (payRes.getCode()) {
|
||||
case SUCCESS -> {
|
||||
zySelfPayVo.setAccNum(payRes.getUserId().toString());
|
||||
@@ -245,9 +243,11 @@ public class ThirdZySelfServiceImpl implements ThirdZySelfService {
|
||||
zySelfPayVo.setPerCode(payRes.getUserId().toString());
|
||||
zySelfPayVo.setPlatformSerialNum(payRes.getOrderId().toString());
|
||||
zySelfPayVo.setAmount(amount);
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(payRes.getPayTime(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
}
|
||||
default -> {
|
||||
zySelfPayVo.setPlatformSerialNum("temporary_" + dto.getSerialNum());
|
||||
zySelfPayVo.setRecDate(LocalDateTimeUtil.format(LocalDateTime.now(), DatePattern.NORM_DATETIME_PATTERN));
|
||||
}
|
||||
}
|
||||
Map<String, Object> resMap = BeanUtil.beanToMap(result);
|
||||
|
||||
Reference in new issue
Block a user