| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueTableShow; |
| | | import com.yuanchu.mom.pojo.Laboratory; |
| | | import com.yuanchu.mom.service.LaboratoryService; |
| | | import com.yuanchu.mom.utils.JackSonUtil; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "获取实验室名称") |
| | | @PostMapping("/obtainItemParameterList") |
| | | public Result obtainItemParameterList(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | Laboratory itemParameter = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), Laboratory.class); |
| | | return Result.success(laboratoryService.obtainItemParameterList(page, itemParameter)); |
| | | @GetMapping("/obtainItemParameterList") |
| | | @ValueAuth |
| | | public Result obtainItemParameterList() { |
| | | return Result.success(laboratoryService.obtainItemParameterList()); |
| | | } |
| | | } |
| | | |