| | |
| | | |
| | | /** |
| | | * 方案触发条件规则Controller |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | |
| | | /** |
| | | * 查询方案触发条件规则列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SchemeTriggerrule schemeTriggerrule) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | startPage(); |
| | | List<SchemeTriggerrule> list = schemeTriggerruleService.selectSchemeTriggerruleList(schemeTriggerrule); |
| | |
| | | /** |
| | | * 导出方案触发条件规则列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:export')") |
| | | @Log(title = "方案触发条件规则", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SchemeTriggerrule schemeTriggerrule) |
| | |
| | | /** |
| | | * 获取方案触发条件规则详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增方案触发条件规则 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:add')") |
| | | @Log(title = "方案触发条件规则", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | return toAjax(schemeTriggerruleService.insertSchemeTriggerrule(schemeTriggerrule)); |
| | |
| | | /** |
| | | * 修改方案触发条件规则 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:edit')") |
| | | @Log(title = "方案触发条件规则", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SchemeTriggerrule schemeTriggerrule) |
| | | { |
| | | return toAjax(schemeTriggerruleService.updateSchemeTriggerrule(schemeTriggerrule)); |
| | |
| | | /** |
| | | * 删除方案触发条件规则 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:schemetriggerrule:remove')") |
| | | @Log(title = "方案触发条件规则", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(schemeTriggerruleService.deleteSchemeTriggerruleByIds(ids)); |