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