| | |
| | | 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.ReceivingNoteItemQueryDTO; |
| | | import com.by4cloud.platformx.device.entity.ReceivingNoteItem; |
| | | import com.by4cloud.platformx.device.service.ReceivingNoteItemService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param receivingNoteItem 验收子项表 |
| | | * @param queryDTO 验收子项表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('device_receivingNoteItem_view')" ) |
| | | public R getReceivingNoteItemPage(@ParameterObject Page page, @ParameterObject ReceivingNoteItem receivingNoteItem) { |
| | | LambdaQueryWrapper<ReceivingNoteItem> wrapper = Wrappers.lambdaQuery(); |
| | | return R.ok(receivingNoteItemService.page(page, wrapper)); |
| | | public R getReceivingNoteItemPage(@ParameterObject Page page, @ParameterObject ReceivingNoteItemQueryDTO queryDTO) { |
| | | return R.ok(receivingNoteItemService.pageNew(page, queryDTO)); |
| | | } |
| | | |
| | | |