| | |
| | | import cn.hutool.core.lang.UUID; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.pojo.Laboratory; |
| | | import com.yuanchu.mom.service.LaboratoryService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | |
| | | |
| | | @Resource |
| | | private LaboratoryService laboratoryService; |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "查询实验室管理列表") |
| | | @PostMapping("/selectItemParameter") |
| | | public Result selectItemParameter(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | Laboratory itemParameter = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), Laboratory.class); |
| | | return Result.success(laboratoryService.selectItemParameter(page, itemParameter)); |
| | | } |
| | | |
| | | @ValueClassify("场所或设施") |
| | | @ApiOperation(value = "添加实验室参数") |
| | | @PostMapping("/addParameter") |
| | | public Result addParameter(@RequestBody Laboratory itemParameter) { |
| | | return Result.success(laboratoryService.addParameter(itemParameter)); |
| | | } |
| | | |
| | | @ValueClassify("场所或设施") |
| | | @ApiOperation(value = "删除实验室参数") |
| | | @PostMapping("/delParameter") |
| | | public Result<?> delParameter(Integer id) { |
| | | return Result.success(laboratoryService.delParameter(id)); |
| | | } |
| | | |
| | | @ValueClassify("场所或设施") |
| | | @ApiOperation(value = "修改实验室参数") |
| | | @PostMapping("/upParameter") |
| | | public Result<?> upParameter(@RequestBody Laboratory itemParameter) { |