|
|
|
@ -13,9 +13,9 @@ import digital.laboratory.platform.common.oss.service.OssFile; |
|
|
|
|
import digital.laboratory.platform.reagent.dto.ReagentConsumableInventoryDTO; |
|
|
|
|
import digital.laboratory.platform.reagent.entity.ReagentConsumableInventory; |
|
|
|
|
import digital.laboratory.platform.reagent.entity.ReferenceMaterial; |
|
|
|
|
import digital.laboratory.platform.reagent.mapper.ReagentConsumableInventoryMapper; |
|
|
|
|
import digital.laboratory.platform.reagent.service.ReagentConsumableInventoryService; |
|
|
|
|
import digital.laboratory.platform.reagent.service.ReferenceMaterialService; |
|
|
|
|
import digital.laboratory.platform.reagent.utils.QRCodeUtils; |
|
|
|
|
import digital.laboratory.platform.reagent.vo.*; |
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
@ -24,10 +24,8 @@ import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.security.oauth2.provider.OAuth2Authentication; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.imageio.ImageIO; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.security.Principal; |
|
|
|
|
import java.util.List; |
|
|
|
@ -57,6 +55,8 @@ public class ReagentConsumableInventoryController { |
|
|
|
|
|
|
|
|
|
private final OssFile ossFile; |
|
|
|
|
|
|
|
|
|
private final ReagentConsumableInventoryMapper reagentConsumableInventoryMapper; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id查询试剂耗材库存 |
|
|
|
|
* |
|
|
|
@ -214,15 +214,13 @@ public class ReagentConsumableInventoryController { |
|
|
|
|
@ApiOperation(value = "试剂耗材/标准物质集合列表", notes = "试剂耗材/标准物质集合列表") |
|
|
|
|
@GetMapping("/full") |
|
|
|
|
// @PreAuthorize("@pms.hasPermission(' ')")
|
|
|
|
|
public R<List<ReagentConsumableInventoryFullVO>> getReagentConsumableInventoryFull(String category, String name, HttpServletRequest theHttpServletRequest) { |
|
|
|
|
public R<IPage<ReagentConsumableInventoryFullVO>> getReagentConsumableInventoryFull(Page page,String category, String name, HttpServletRequest theHttpServletRequest) { |
|
|
|
|
Principal principal = theHttpServletRequest.getUserPrincipal(); |
|
|
|
|
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
|
|
|
|
|
|
|
|
|
List<ReagentConsumableInventoryFullVO> reagentConsumableInventoryFull = reagentConsumableInventoryService.getReagentConsumableInventoryFull(Wrappers.<ReagentConsumableInventory>query() |
|
|
|
|
.eq((StrUtil.isNotBlank(category)), "category", category) |
|
|
|
|
.like((StrUtil.isNotBlank(name)), "reagent_consumable_name", name)); |
|
|
|
|
IPage fullVOPage = reagentConsumableInventoryMapper.getFullVOPage(page,name,category); |
|
|
|
|
|
|
|
|
|
return R.ok(reagentConsumableInventoryFull); |
|
|
|
|
return R.ok(fullVOPage); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -376,5 +374,14 @@ public class ReagentConsumableInventoryController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// @PostMapping("org")
|
|
|
|
|
// public R<List<OrgFullVO>> getOrgList(HttpServletResponse httpServletResponse) {
|
|
|
|
|
//
|
|
|
|
|
// List<OrgFullVO> orgList = reagentConsumableInventoryService.getOrgList();
|
|
|
|
|
//
|
|
|
|
|
// return R.ok(orgList);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|