|  |  |  | 
|---|
|  |  |  | throw new ValidationException("订单不可退款"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | long trxamt = up.getPaymentAmount().longValue(); | 
|---|
|  |  |  | long trxamt = prepareAmount(up.getPaymentAmount()); | 
|---|
|  |  |  | String reqsn = orderId; | 
|---|
|  |  |  | String oldtrxid = up.getTransactionId(); | 
|---|
|  |  |  | String oldreqsn = orderId; | 
|---|
|  |  |  | 
|---|
|  |  |  | throw new ValidationException("订单不可退款"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | long trxamt = up.getPaymentAmount().longValue(); | 
|---|
|  |  |  | long trxamt = prepareAmount(up.getPaymentAmount()); | 
|---|
|  |  |  | String reqsn = orderId; | 
|---|
|  |  |  | String oldtrxid = up.getTransactionId(); | 
|---|
|  |  |  | String oldreqsn = orderId; | 
|---|
|  |  |  | 
|---|
|  |  |  | re.setRequest(toJSONString(map)); | 
|---|
|  |  |  | re.create(SecurityUtils.getUserId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | re.setStatus(retcode); | 
|---|
|  |  |  | re.setNotification(retcode); | 
|---|
|  |  |  | re.setNotifyTime(LocalDateTime.now()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | orderRefundMapper.insert(re); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return re.getId(); | 
|---|