| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.device.dto.InventoryFlowWaterQueryDTO; |
| | | import com.by4cloud.platformx.device.entity.InventoryFlowWater; |
| | | import com.by4cloud.platformx.device.service.InventoryFlowWaterService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param inventoryFlowWater 库存流水表 |
| | | * @param queryDTO 库存流水表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('platformx_inventoryFlowWater_view')" ) |
| | | public R getInventoryFlowWaterPage(@ParameterObject Page page, @ParameterObject InventoryFlowWater inventoryFlowWater) { |
| | | LambdaQueryWrapper<InventoryFlowWater> wrapper = Wrappers.lambdaQuery(); |
| | | return R.ok(inventoryFlowWaterService.page(page, wrapper)); |
| | | public R getInventoryFlowWaterPage(@ParameterObject Page page, @ParameterObject InventoryFlowWaterQueryDTO queryDTO) { |
| | | return R.ok(inventoryFlowWaterService.pageNew(page, queryDTO)); |
| | | } |
| | | |
| | | |