|
|
@ -55,9 +55,9 @@ public class AuditServiceImpl implements AuditService { |
|
|
/* |
|
|
/* |
|
|
审核订单并修改用户余额等 |
|
|
审核订单并修改用户余额等 |
|
|
*/ |
|
|
*/ |
|
|
@Transactional |
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Override |
|
|
@Override |
|
|
public boolean auditOrder(String token, String orderCode, Integer auditId, Integer action,String rejectReason) { |
|
|
|
|
|
|
|
|
public boolean auditOrder(String token, String orderCode, Integer auditId, Integer action,String rejectReason,BigDecimal price,String linkId) { |
|
|
UserGoldRecord order=auditMapper.selectOrderByOrderCode(orderCode); |
|
|
UserGoldRecord order=auditMapper.selectOrderByOrderCode(orderCode); |
|
|
Date date =new Date(); |
|
|
Date date =new Date(); |
|
|
if (order == null || order.getAuditStatus() != 0) { |
|
|
if (order == null || order.getAuditStatus() != 0) { |
|
|
@ -88,8 +88,15 @@ public class AuditServiceImpl implements AuditService { |
|
|
auditMapper.updateOrder(updateOrder); |
|
|
auditMapper.updateOrder(updateOrder); |
|
|
|
|
|
|
|
|
}else if (action==1) { //通过 |
|
|
}else if (action==1) { //通过 |
|
|
|
|
|
|
|
|
//判断是充值还是退款 |
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
redService.checkRed(linkId); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
log.error("红包退票失败"); |
|
|
|
|
|
updateOrder.setAuditStatus(4); |
|
|
|
|
|
auditMapper.updateOrder(updateOrder); |
|
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
} |
|
|
|
|
|
//判断是充值还是退款 |
|
|
if (order.getType()==0){ //充值 |
|
|
if (order.getType()==0){ //充值 |
|
|
//更新用户余额 |
|
|
//更新用户余额 |
|
|
User update = new User(); |
|
|
User update = new User(); |
|
|
|