提交 c9f51a75 编写于 作者: M megagao

添加了update方法

上级 e4e28b06
...@@ -5,6 +5,7 @@ import java.util.List; ...@@ -5,6 +5,7 @@ import java.util.List;
import org.hqu.production_ms.domain.Custom; import org.hqu.production_ms.domain.Custom;
import org.hqu.production_ms.domain.CustomResult; import org.hqu.production_ms.domain.CustomResult;
import org.hqu.production_ms.domain.EUDataGridResult; import org.hqu.production_ms.domain.EUDataGridResult;
import org.hqu.production_ms.domain.po.COrderPO;
import org.hqu.production_ms.service.CustomService; import org.hqu.production_ms.service.CustomService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
...@@ -64,6 +65,13 @@ public class CustomController { ...@@ -64,6 +65,13 @@ public class CustomController {
return result; return result;
} }
@RequestMapping(value="/update")
@ResponseBody
private CustomResult update(Custom custom) throws Exception {
CustomResult result = customService.update(custom);
return result;
}
@RequestMapping(value="/delete") @RequestMapping(value="/delete")
@ResponseBody @ResponseBody
private CustomResult delete(String id) throws Exception { private CustomResult delete(String id) throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册