| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.pojo.LinkBasicInformation; |
| | | import com.yuanchu.limslaboratory.service.LinkBasicInformationService; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | | import com.yuanchu.limslaboratory.utils.RedisUtil; |
| | |
| | | |
| | | @ApiOperation("链接-->获取链接") |
| | | @GetMapping("/link") |
| | | @AuthHandler |
| | | public Result<?> getLink() { |
| | | Object link1 = null; |
| | | try { |
| | |
| | | return Result.success(link1); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页表格", tags = "123") |
| | | @ApiOperation(value = "分页表格") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "pageNo", value = "起始页", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "pageSize", value = "每一页数量", dataTypeClass = Integer.class, required = true), |
| | |
| | | @ApiImplicitParam(name = "inspectionStatus", value = "检验状态", dataTypeClass = Integer.class) |
| | | }) |
| | | @GetMapping("/page") |
| | | @AuthHandler |
| | | public Result<?> getLinkBasicPage(Integer pageNo, Integer pageSize, String entrustCoding, String sampleName, String entrusted, Integer inspectionStatus) { |
| | | IPage<Map<String, Object>> linkBasicPage = linkBasicInformationService.getLinkBasicPage(new Page<Object>(pageNo, pageSize), entrustCoding, sampleName, entrusted, inspectionStatus); |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | map.put("row", linkBasicPage.getRecords()); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation("删除") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "委托样品id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/delLink") |
| | | @AuthHandler |
| | | public Result<?> delLink(Integer id){ |
| | | linkBasicInformationService.delLink(id); |
| | | return Result.success("删除成功!"); |
| | | } |
| | | |
| | | } |