Browse Source

#工作票作废

zhongwei
yang_shj 1 year ago
parent
commit
bbdf45936f
  1. 8
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java
  2. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/IWorkTicketInfoService.java
  3. 6
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/WorkTicketInfoServiceImpl.java

8
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

@ -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));
}
}

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/IWorkTicketInfoService.java

@ -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);
}

6
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/WorkTicketInfoServiceImpl.java

@ -1272,4 +1272,10 @@ public class WorkTicketInfoServiceImpl extends BaseServiceImpl<WorkTicketInfoMap
}
return list;
}
@Override
public Boolean cancel(WorkTicketInfoEntity entity) {
entity.setFlowTaskName("线下作废");
return this.updateById(entity);
}
}

Loading…
Cancel
Save