| | |
| | | import com.matrix.system.hive.service.AchieveNewService; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | |
| | | com.matrix.core.tools.excl.ExcelUtil.createWorkbookAtOutStream(ExcelVersion.V2007, res, os, true); |
| | | } |
| | | |
| | | @RequestMapping(value = "/del") |
| | | @ResponseBody |
| | | public AjaxResult del(Long id) { |
| | | int i = achieveNewService.removeById(id); |
| | | if (i > 0) { |
| | | return AjaxResult.buildSuccessInstance("删除失败"); |
| | | } |
| | | return AjaxResult.buildFailInstance("删除失败"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/add") |
| | | @ResponseBody |
| | | public AjaxResult add(@RequestBody List<AchieveNew> list) { |
| | | |
| | | |
| | | return AjaxResult.buildSuccessInstance("添加成功"); |
| | | } |
| | | |
| | | } |
| | | |