@ -262,5 +262,13 @@ public class WorkTicketInfoController {
return R.data(workTicketInfoService.work(Condition.getPage(query),work));
}
@ApiLog
@PostMapping("/cancel")
@ApiOperationSupport(order = 50)
@ApiOperation(value = "线下工作票作废")
public R cancel(WorkTicketInfoEntity entity) {
return R.status(workTicketInfoService.cancel(entity));
@ -185,4 +185,6 @@ public interface IWorkTicketInfoService extends BaseService<WorkTicketInfoEntity
IPage<WorkTicketInfoVO> work(IPage<WorkTicketInfoEntity> page, WorkVO work);
List<WorkTicketExportVO> exportWorkTicket(WorkTicketInfoDto req);
Boolean cancel(WorkTicketInfoEntity entity);
@ -1272,4 +1272,10 @@ public class WorkTicketInfoServiceImpl extends BaseServiceImpl<WorkTicketInfoMap
return list;
@Override
public Boolean cancel(WorkTicketInfoEntity entity) {
entity.setFlowTaskName("线下作废");
return this.updateById(entity);