| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @PostMapping("/getInfoByParam") |
| | | public AjaxResult param(@Param("param") String param) { |
| | | ServiceOutPath serviceOutPath=new ServiceOutPath(); |
| | | ServiceOutPath serviceOutPath = new ServiceOutPath(); |
| | | serviceOutPath.setRadix(param); |
| | | List<ServiceOutPath> list = serviceOutPathService.selectServiceOutPathList(serviceOutPath); |
| | | ServiceOutPath serviceOutPath1 = list.get(0); |
| | | serviceOutPath1.setId(null); |
| | | serviceOutPath1.setRadix(null); |
| | | if (CollectionUtils.isNotEmpty(list)) return success(serviceOutPath1); |
| | | if (CollectionUtils.isNotEmpty(list)) { |
| | | ServiceOutPath serviceOutPath1 = list.get(0); |
| | | serviceOutPath1.setId(null); |
| | | serviceOutPath1.setRadix(null); |
| | | return success(serviceOutPath1); |
| | | } |
| | | return success(null); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation("新增主键") |
| | | @Log(title = "主键", businessType = BusinessType.INSERT) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ServiceOutPath serviceOutPath) { |
| | | return toAjax(serviceOutPathService.insertServiceOutPath(serviceOutPath)); |
| | |
| | | @ApiOperation("修改主键") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:path:edit')") |
| | | @Log(title = "主键", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ServiceOutPath serviceOutPath) { |
| | | return toAjax(serviceOutPathService.updateServiceOutPath(serviceOutPath)); |