| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Api("随访服务发送判断") |
| | | @RestController |
| | | @RequestMapping("/smartor/check") |
| | | public class ServiceCheckController extends BaseController |
| | | { |
| | | public class ServiceCheckController extends BaseController { |
| | | @Autowired |
| | | private IServiceCheckService serviceCheckService; |
| | | |
| | |
| | | @ApiOperation("查询随访服务发送判断列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ServiceCheck serviceCheck) |
| | | { |
| | | public TableDataInfo list(ServiceCheck serviceCheck) { |
| | | startPage(); |
| | | List<ServiceCheck> list = serviceCheckService.selectServiceCheckList(serviceCheck); |
| | | return getDataTable(list); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:export')") |
| | | @Log(title = "随访服务发送判断", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ServiceCheck serviceCheck) |
| | | { |
| | | public void export(HttpServletResponse response, ServiceCheck serviceCheck) { |
| | | List<ServiceCheck> list = serviceCheckService.selectServiceCheckList(serviceCheck); |
| | | ExcelUtil<ServiceCheck> util = new ExcelUtil<ServiceCheck>(ServiceCheck.class); |
| | | util.exportExcel(response, list, "随访服务发送判断数据"); |
| | |
| | | @ApiOperation("获取随访服务发送判断详细信息") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(serviceCheckService.selectServiceCheckById(id)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增随访服务发送判断") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:add')") |
| | | @Log(title = "随访服务发送判断", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceCheck serviceCheck) |
| | | { |
| | | public AjaxResult add(@RequestBody ServiceCheck serviceCheck) { |
| | | return toAjax(serviceCheckService.insertServiceCheck(serviceCheck)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("修改随访服务发送判断") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:edit')") |
| | | @Log(title = "随访服务发送判断", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceCheck serviceCheck) |
| | | { |
| | | public AjaxResult edit(@RequestBody ServiceCheck serviceCheck) { |
| | | return toAjax(serviceCheckService.updateServiceCheck(serviceCheck)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("删除随访服务发送判断") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:check:remove')") |
| | | @Log(title = "随访服务发送判断", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(serviceCheckService.deleteServiceCheckByIds(ids)); |
| | | } |
| | | } |