Commit d684519b by zhengxj

finish 新增订单删除接口 on 20190315 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18569 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent be9e014e
...@@ -127,9 +127,12 @@ public class OrderController extends BaseController { ...@@ -127,9 +127,12 @@ public class OrderController extends BaseController {
@RequestMapping(value = "/deleteById", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/deleteById", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject deleteById(Integer id) { public ResultObject deleteById(Integer id) {
return orderService.deleteByPrimaryKey(id); if (id == null) {
} return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg());
}
return orderService.deleteByPrimaryKey(id);
}
@RequestMapping(value = "/update", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/update", method = {RequestMethod.GET, RequestMethod.POST})
public ResultObject update(HttpServletRequest request, SysOrder sysOrder) { public ResultObject update(HttpServletRequest request, SysOrder sysOrder) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!