|
|
@ -146,32 +146,38 @@ public class ReagentConsumableInventoryController { |
|
|
|
@ApiOperation(value = "试剂耗材管理列表", notes = "试剂耗材管理列表") |
|
|
|
@ApiOperation(value = "试剂耗材管理列表", notes = "试剂耗材管理列表") |
|
|
|
@GetMapping("/List") |
|
|
|
@GetMapping("/List") |
|
|
|
// @PreAuthorize("@pms.hasPermission('reagent_reagent_consumable_inventory_get')")
|
|
|
|
// @PreAuthorize("@pms.hasPermission('reagent_reagent_consumable_inventory_get')")
|
|
|
|
public R<IPage<ReagentConsumableInventoryVO>> getList(Page page, String reagentConsumableName, Integer warning, String remark, HttpServletRequest theHttpServletRequest) { |
|
|
|
public R<IPage<ReagentConsumableInventoryVO>> getList(Page page, String reagentConsumableName, Integer warning, String remark, String category,HttpServletRequest theHttpServletRequest) { |
|
|
|
Principal principal = theHttpServletRequest.getUserPrincipal(); |
|
|
|
Principal principal = theHttpServletRequest.getUserPrincipal(); |
|
|
|
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
|
|
|
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
|
|
|
IPage<ReagentConsumableInventoryVO> reagentConsumableInventoryRMVOList = reagentConsumableInventoryService.getReagentConsumableInventoryREVOList(page, Wrappers.<ReagentConsumableInventory>query() |
|
|
|
IPage<ReagentConsumableInventoryVO> reagentConsumableInventoryRMVOList = reagentConsumableInventoryService.getReagentConsumableInventoryREVOList(page, Wrappers.<ReagentConsumableInventory>query() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.eq("category", "试剂").or() |
|
|
|
.eq("category", "试剂").or() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.eq("category", "试剂").or() |
|
|
|
.eq("category", "试剂").or() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.eq("category", "耗材").or() |
|
|
|
.eq("category", "耗材").or() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "warning_information", "库存不足") |
|
|
|
.eq("category", "耗材").or() |
|
|
|
.eq("category", "耗材").or() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "reagent_consumable_name", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "species", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "species", "库存不足") |
|
|
|
.eq("category", "试剂").or() |
|
|
|
.eq("category", "试剂").or() |
|
|
|
|
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
.like(StrUtil.isNotBlank(reagentConsumableName), "remark", reagentConsumableName) |
|
|
|
|
|
|
|
.like(StrUtil.isNotBlank(category), "category", category) |
|
|
|
.like(warning != null && warning == 1, "species", "库存不足") |
|
|
|
.like(warning != null && warning == 1, "species", "库存不足") |
|
|
|
.eq("category", "耗材").or(), warning); |
|
|
|
.eq("category", "耗材").or(), warning); |
|
|
|
return R.ok(reagentConsumableInventoryRMVOList); |
|
|
|
return R.ok(reagentConsumableInventoryRMVOList); |
|
|
@ -276,8 +282,6 @@ public class ReagentConsumableInventoryController { |
|
|
|
public String getBarCodeImageBase64(String code, HttpServletResponse httpServletResponse) throws IOException { |
|
|
|
public String getBarCodeImageBase64(String code, HttpServletResponse httpServletResponse) throws IOException { |
|
|
|
|
|
|
|
|
|
|
|
return reagentConsumableInventoryService.buildCodeLabelContent(code); |
|
|
|
return reagentConsumableInventoryService.buildCodeLabelContent(code); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|