|
|
@ -41,10 +41,7 @@ import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Controller |
|
|
|
@Controller |
|
|
|
@RequestMapping(value = "mobileRecharge") |
|
|
|
@RequestMapping(value = "mobileRecharge") |
|
|
@ -68,6 +65,9 @@ public class OrderMobileRechargeController { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private RedisTemplate redisTemplate; |
|
|
|
private RedisTemplate redisTemplate; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private OutRechargeChildOrderService outRechargeChildOrderService; |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getOrderList", method = RequestMethod.GET) |
|
|
|
@RequestMapping(value = "/getOrderList", method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "查询话费订单列表") |
|
|
|
@ApiOperation(value = "查询话费订单列表") |
|
|
@ -249,7 +249,7 @@ public class OrderMobileRechargeController { |
|
|
|
public ResponseData getMobileOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) { |
|
|
|
public ResponseData getMobileOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("tradeOrder", orderService.getOrderDetailByNo(orderNo)); |
|
|
|
map.put("tradeOrder", orderService.getOrderDetail(orderNo)); |
|
|
|
map.put("mobileOrder", outRechargeOrderService.findByOrderNo(orderNo)); |
|
|
|
map.put("mobileOrder", outRechargeOrderService.findByOrderNo(orderNo)); |
|
|
|
return ResponseMsgUtil.success(map); |
|
|
|
return ResponseMsgUtil.success(map); |
|
|
|
|
|
|
|
|
|
|
@ -288,6 +288,8 @@ public class OrderMobileRechargeController { |
|
|
|
refundOrder(orderNo); |
|
|
|
refundOrder(orderNo); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HighOrder order = highOrderService.getOrderByOrderNo(orderNo); |
|
|
|
HighOrder order = highOrderService.getOrderByOrderNo(orderNo); |
|
|
|
order.setExceptionStatus(false); |
|
|
|
order.setExceptionStatus(false); |
|
|
|
highOrderService.updateOrder(order); |
|
|
|
highOrderService.updateOrder(order); |
|
|
@ -311,6 +313,17 @@ public class OrderMobileRechargeController { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OutRechargeOrder rechargeOrder = outRechargeOrderService.findByOrderNo(orderNo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<OutRechargeChildOrder> rechargeChildOrderList = outRechargeChildOrderService.getListRechargeChildOrderByOrderId(rechargeOrder.getId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (OutRechargeChildOrder rechargeChildOrder : rechargeChildOrderList) { |
|
|
|
|
|
|
|
if (rechargeChildOrder.getStatus() == 104) { |
|
|
|
|
|
|
|
rechargeChildOrder.setStatus(102); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
outRechargeChildOrderService.updateOrder(rechargeChildOrder); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
HighOrder order = highOrderService.getOrderByOrderNo(orderNo); |
|
|
|
HighOrder order = highOrderService.getOrderByOrderNo(orderNo); |
|
|
|
order.setExceptionStatus(false); |
|
|
|
order.setExceptionStatus(false); |
|
|
|
highOrderService.updateOrder(order); |
|
|
|
highOrderService.updateOrder(order); |
|
|
|