| | |
| | | return loadPrint(callback,JsonUtil.loadTrueResult(data)); |
| | | } |
| | | |
| | | <#if delete> |
| | | @ResponseBody |
| | | @RequestMapping("delete") |
| | | public String delete(String ids, String callback) { |
| | |
| | | ${serviceObjName}.delete(idList); |
| | | return loadPrint(callback, JsonUtil.loadTrueResult("")); |
| | | } |
| | | </#if> |
| | | |
| | | <#if add> |
| | | @ResponseBody |
| | | @RequestMapping("add") |
| | | public String add(${entity.name} bean, HttpSession session, String callback) { |
| | |
| | | return loadPrint(callback, JsonUtil.loadFalseResult(e.getMessage())); |
| | | } |
| | | } |
| | | </#if> |
| | | |
| | | @ResponseBody |
| | | @RequestMapping("get") |
| | |
| | | } |
| | | |
| | | |
| | | <#if update> |
| | | @ResponseBody |
| | | @RequestMapping("update") |
| | | public String update(${entity.name} bean, HttpSession session,String callback) { |
| | |
| | | } |
| | | return loadPrint(callback,JsonUtil.loadTrueResult("")); |
| | | } |
| | | </#if> |
| | | |
| | | |
| | | } |