| | |
| | | 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.ReceivingNoteQueryDTO; |
| | | import com.by4cloud.platformx.device.entity.ReceivingNote; |
| | | import com.by4cloud.platformx.device.service.ReceivingNoteService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 验收表 |
| | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param receivingNote 验收表 |
| | | * @param queryDTO 验收表 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('device_receivingNote_view')" ) |
| | | public R getReceivingNotePage(@ParameterObject Page page, @ParameterObject ReceivingNote receivingNote) { |
| | | LambdaQueryWrapper<ReceivingNote> wrapper = Wrappers.lambdaQuery(); |
| | | return R.ok(receivingNoteService.page(page, wrapper)); |
| | | public R getReceivingNotePage(@ParameterObject Page page, @ParameterObject ReceivingNoteQueryDTO queryDTO) { |
| | | return R.ok(receivingNoteService.pageNew(page, queryDTO)); |
| | | } |
| | | |
| | | |