feat(商城): 添加订单详情

master
wayn 3 years ago
parent 416814d298
commit ebc617174e

@ -24,6 +24,11 @@ public class OrderController extends BaseController {
@Autowired
private IOrderService iOrderService;
@GetMapping("detail/{orderSn}")
public R detail(@PathVariable String orderSn) {
return iOrderService.getOrderDetailByOrderSn(orderSn);
}
@GetMapping("list")
public R list(@RequestParam(defaultValue = "0") Integer showType) {
Page<Order> page = getPage();

@ -141,4 +141,5 @@ public interface IOrderService extends IService<Order> {
*/
R statusCount();
R getOrderDetailByOrderSn(String orderSn);
}

@ -1,11 +1,7 @@
package com.wayn.mobile.framework.config;
import com.wayn.common.config.WaynConfig;
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@ -18,14 +14,14 @@ public class MvcConfig implements WebMvcConfigurer {
registry.addResourceHandler("/upload/**").addResourceLocations("file:" + WaynConfig.getUploadDir() + "/");
}
@Bean
public ServletRegistrationBean dispatcherRegistration() {
return new ServletRegistrationBean(dispatcherServlet());
}
@Bean(name = DispatcherServletAutoConfiguration.DEFAULT_DISPATCHER_SERVLET_BEAN_NAME)
public DispatcherServlet dispatcherServlet() {
return new WaynDispatcherServlet();
}
//
// @Bean
// public ServletRegistrationBean dispatcherRegistration() {
// return new ServletRegistrationBean(dispatcherServlet());
// }
//
// @Bean(name = DispatcherServletAutoConfiguration.DEFAULT_DISPATCHER_SERVLET_BEAN_NAME)
// public DispatcherServlet dispatcherServlet() {
// return new WaynDispatcherServlet();
// }
}

Loading…
Cancel
Save