|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package com.hnac.hzims.ticket.twoTicket.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.http.server.HttpServerResponse; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.hnac.hzims.ticket.standardTicket.entity.StandardTicketInfoEntity; |
|
|
|
|
import com.hnac.hzims.ticket.standardTicket.service.IStandardTicketInfoService; |
|
|
|
|
import com.hnac.hzims.ticket.standardTicket.service.OperationTicketService; |
|
|
|
@ -79,10 +81,14 @@ public class TicketCountController {
|
|
|
|
|
/** |
|
|
|
|
* 查看工作票 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/listByTicketWithKeyword") |
|
|
|
|
public R listByTicketWithKeyword(TicketCountQueryVo ticketCountQueryVo) { |
|
|
|
|
List<WorkTicketInfoEntity> workTicketInfoEntities = |
|
|
|
|
workTicketService.listByTicketWithKeyword(ticketCountQueryVo); |
|
|
|
|
@GetMapping("/listByTicketWithKeyword/{page}/{size}") |
|
|
|
|
public R listByTicketWithKeyword( |
|
|
|
|
@PathVariable Long page, |
|
|
|
|
@PathVariable Long size, |
|
|
|
|
TicketCountQueryVo ticketCountQueryVo) { |
|
|
|
|
Page<WorkTicketInfoEntity> entityPage = new Page<>(page,size); |
|
|
|
|
IPage<WorkTicketInfoEntity> workTicketInfoEntities = |
|
|
|
|
workTicketService.listByTicketWithKeyword(entityPage,ticketCountQueryVo); |
|
|
|
|
return R.data(workTicketInfoEntities); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -90,10 +96,14 @@ public class TicketCountController {
|
|
|
|
|
/** |
|
|
|
|
* 查看操作票 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/listByOperationTicketWithKeyword") |
|
|
|
|
public R listByOperationTicketWithKeyword(TicketCountQueryVo ticketCountQueryVo) { |
|
|
|
|
List<StandardTicketInfoEntity> ticketInfoEntities = |
|
|
|
|
standardTicketInfoService.listByOperationTicketWithKeyword(ticketCountQueryVo); |
|
|
|
|
@GetMapping("/listByOperationTicketWithKeyword/{page}/{size}") |
|
|
|
|
public R listByOperationTicketWithKeyword( |
|
|
|
|
@PathVariable Long page, |
|
|
|
|
@PathVariable Long size, |
|
|
|
|
TicketCountQueryVo ticketCountQueryVo) { |
|
|
|
|
Page<StandardTicketInfoEntity> entityPage = new Page<>(page,size); |
|
|
|
|
IPage<StandardTicketInfoEntity> ticketInfoEntities = |
|
|
|
|
standardTicketInfoService.listByOperationTicketWithKeyword(entityPage,ticketCountQueryVo); |
|
|
|
|
return R.data(ticketInfoEntities); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|