| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.DefaultPublish; |
| | | import com.ycl.platform.domain.entity.ContractPublish; |
| | | import com.ycl.platform.service.IDefaultPublishService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:publish:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(DefaultPublish defaultPublish) |
| | | public TableDataInfo list(ContractPublish contractPublish) |
| | | { |
| | | startPage(); |
| | | List<DefaultPublish> list = defaultPublishService.selectDefaultPublishList(defaultPublish); |
| | | List<ContractPublish> list = defaultPublishService.selectDefaultPublishList(contractPublish); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:publish:export')") |
| | | @Log(title = "合同考核发布", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DefaultPublish defaultPublish) |
| | | public void export(HttpServletResponse response, ContractPublish contractPublish) |
| | | { |
| | | List<DefaultPublish> list = defaultPublishService.selectDefaultPublishList(defaultPublish); |
| | | ExcelUtil<DefaultPublish> util = new ExcelUtil<DefaultPublish>(DefaultPublish.class); |
| | | List<ContractPublish> list = defaultPublishService.selectDefaultPublishList(contractPublish); |
| | | ExcelUtil<ContractPublish> util = new ExcelUtil<ContractPublish>(ContractPublish.class); |
| | | util.exportExcel(response, list, "合同考核发布数据"); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:publish:add')") |
| | | @Log(title = "合同考核发布", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DefaultPublish defaultPublish) |
| | | public AjaxResult add(@RequestBody ContractPublish contractPublish) |
| | | { |
| | | return toAjax(defaultPublishService.insertDefaultPublish(defaultPublish)); |
| | | return toAjax(defaultPublishService.insertDefaultPublish(contractPublish)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:publish:edit')") |
| | | @Log(title = "合同考核发布", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DefaultPublish defaultPublish) |
| | | public AjaxResult edit(@RequestBody ContractPublish contractPublish) |
| | | { |
| | | return toAjax(defaultPublishService.updateDefaultPublish(defaultPublish)); |
| | | return toAjax(defaultPublishService.updateDefaultPublish(contractPublish)); |
| | | } |
| | | |
| | | /** |