Commit bce37c73 by zhengxj

finish 适配前段请求头类型 on 20190228 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17955 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7c4504bd
......@@ -32,16 +32,16 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.groups.Default;
import com.github.pagehelper.PageHelper;
import com.glsx.ordercenter.dto.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.github.pagehelper.PageHelper;
import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.DateUtil;
......@@ -187,8 +187,8 @@ public class OrderController extends BaseController {
}
@RequestMapping(value = "/getOrderDetail", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject getOrderDetail(HttpServletRequest request, Integer id) {
SysOrder sysOrderDetail = orderService.getOrderDetail(id);
public ResultObject getOrderDetail(HttpServletRequest request, @RequestBody SysOrder sysOrder) {
SysOrder sysOrderDetail = orderService.getOrderDetail(sysOrder.getId());
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), sysOrderDetail);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!