| | |
| | | @Api("VIEW") |
| | | @RestController |
| | | @RequestMapping("/VDonationworkflow/donationworkflow") |
| | | public class VDonationworkflowController extends BaseController |
| | | { |
| | | public class VDonationworkflowController extends BaseController { |
| | | @Autowired |
| | | private IVDonationworkflowService vDonationworkflowService; |
| | | |
| | |
| | | @ApiOperation("查询VIEW列表") |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(VDonationworkflow vDonationworkflow) |
| | | { |
| | | public TableDataInfo list(VDonationworkflow vDonationworkflow) { |
| | | startPage(); |
| | | List<VDonationworkflow> list = vDonationworkflowService.queryList(vDonationworkflow); |
| | | return getDataTable(list); |
| | |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:export')") |
| | | @Log(title = "VIEW", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(VDonationworkflow vDonationworkflow) |
| | | { |
| | | public AjaxResult export(VDonationworkflow vDonationworkflow) { |
| | | List<VDonationworkflow> list = vDonationworkflowService.queryList(vDonationworkflow); |
| | | ExcelUtil<VDonationworkflow> util = new ExcelUtil<VDonationworkflow>(VDonationworkflow.class); |
| | | return util.exportExcel(list, "VIEW数据"); |
| | |
| | | */ |
| | | @ApiOperation("获取VIEW详细信息") |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(vDonationworkflowService.getById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增VIEW") |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:add')") |
| | | @Log(title = "VIEW", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody VDonationworkflow vDonationworkflow) |
| | | { |
| | | public AjaxResult add(@RequestBody VDonationworkflow vDonationworkflow) { |
| | | return toAjax(vDonationworkflowService.save(vDonationworkflow)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改VIEW") |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:edit')") |
| | | @Log(title = "VIEW", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @RepeatSubmit |
| | | public AjaxResult edit(@RequestBody VDonationworkflow vDonationworkflow) |
| | | { |
| | | public AjaxResult edit(@RequestBody VDonationworkflow vDonationworkflow) { |
| | | return toAjax(vDonationworkflowService.updateById(vDonationworkflow)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除VIEW") |
| | | // @PreAuthorize("@ss.hasPermi('system:donationworkflow:remove')") |
| | | @Log(title = "VIEW", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(vDonationworkflowService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | } |