Commit c00c2354 by xiaoyj

请求方式修改

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21944 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e14d3440
...@@ -38,7 +38,7 @@ public class DeviceCtroller { ...@@ -38,7 +38,7 @@ public class DeviceCtroller {
* @param indentNo * @param indentNo
* @return * @return
*/ */
@RequestMapping(value = "/indentDevices", method = RequestMethod.POST) @RequestMapping(value = "/indentDevices", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject indentDevices(HttpServletRequest request,@RequestParam(defaultValue = "1") int pageIndex, public ResultObject indentDevices(HttpServletRequest request,@RequestParam(defaultValue = "1") int pageIndex,
@RequestParam(defaultValue = "10") int pageSize, String indentNo) { @RequestParam(defaultValue = "10") int pageSize, String indentNo) {
if (org.springframework.util.StringUtils.isEmpty(indentNo)) { if (org.springframework.util.StringUtils.isEmpty(indentNo)) {
...@@ -57,7 +57,7 @@ public class DeviceCtroller { ...@@ -57,7 +57,7 @@ public class DeviceCtroller {
/** /**
* 添加设备以及相关验证 * 添加设备以及相关验证
*/ */
@RequestMapping(value = "/insertDevice", method = RequestMethod.POST) @RequestMapping(value = "/insertDevice", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject insertDevice(HttpServletRequest request,@RequestBody List<String> deviceNos,String indentNo) { public ResultObject insertDevice(HttpServletRequest request,@RequestBody List<String> deviceNos,String indentNo) {
if (org.springframework.util.StringUtils.isEmpty(indentNo) || deviceNos.size()<=0) { if (org.springframework.util.StringUtils.isEmpty(indentNo) || deviceNos.size()<=0) {
return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg()); return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!