|
|
|
@ -7,7 +7,6 @@ import com.hai.common.exception.ErrorHelp; |
|
|
|
|
import com.hai.common.exception.SysCode; |
|
|
|
|
import com.hai.common.security.UserCenter; |
|
|
|
|
import com.hai.common.utils.ResponseMsgUtil; |
|
|
|
|
import com.hai.entity.HighOrder; |
|
|
|
|
import com.hai.enum_type.UserObjectTypeEnum; |
|
|
|
|
import com.hai.model.ResponseData; |
|
|
|
|
import com.hai.model.UserInfoModel; |
|
|
|
@ -26,7 +25,6 @@ import javax.annotation.Resource; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
@Controller |
|
|
|
@ -43,10 +41,10 @@ public class OrderThirdPartyController { |
|
|
|
|
private OrderService orderService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getOrderKfcList", method = RequestMethod.GET) |
|
|
|
|
@RequestMapping(value = "/getOrderList", method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "查询肯德基订单列表") |
|
|
|
|
public ResponseData getOrderKfcList(@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
|
@ApiOperation(value = "查询第三方订单列表") |
|
|
|
|
public ResponseData getOrderList(@RequestParam(name = "orderNo", required = false) String orderNo, |
|
|
|
|
@RequestParam(name = "memPhone", required = false) String memPhone, |
|
|
|
|
@RequestParam(name = "memCardNo", required = false) String memCardNo, |
|
|
|
|
@RequestParam(name = "payType", required = false) Integer payType, |
|
|
|
@ -56,6 +54,7 @@ public class OrderThirdPartyController { |
|
|
|
|
@RequestParam(name = "createTimeE", required = false) Long createTimeE, |
|
|
|
|
@RequestParam(name = "payTimeS", required = false) Long payTimeS, |
|
|
|
|
@RequestParam(name = "payTimeE", required = false) Long payTimeE, |
|
|
|
|
@RequestParam(name = "productType", required = false) Integer productType, |
|
|
|
|
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS, |
|
|
|
|
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE, |
|
|
|
|
@RequestParam(name = "pageNum", required = true) Integer pageNum, |
|
|
|
@ -90,7 +89,7 @@ public class OrderThirdPartyController { |
|
|
|
|
map.put("orderNo", orderNo); |
|
|
|
|
map.put("memPhone", memPhone); |
|
|
|
|
map.put("memCardNo", memCardNo); |
|
|
|
|
map.put("productType", 2); |
|
|
|
|
map.put("productType", productType); |
|
|
|
|
map.put("orderStatus", orderStatus); |
|
|
|
|
map.put("payType", payType); |
|
|
|
|
|
|
|
|
@ -103,4 +102,20 @@ public class OrderThirdPartyController { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/getOrderDetail",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "查询订单详情") |
|
|
|
|
public ResponseData getOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) { |
|
|
|
|
try { |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("tradeOrder", orderService.getOrderDetailByNo(orderNo)); |
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(map); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("OrderIntegralRechargeController -> getOrderDetail() error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|