|
|
@ -71,6 +71,7 @@ public class OfflineTicketServiceImpl extends BaseServiceImpl<WorkTicketInfoMapp |
|
|
|
public boolean invoicing(WorkTicketInfoDto dto) { |
|
|
|
public boolean invoicing(WorkTicketInfoDto dto) { |
|
|
|
WorkTicketInfoEntity ticketInfoEntity = BeanUtil.copy(dto,WorkTicketInfoEntity.class); |
|
|
|
WorkTicketInfoEntity ticketInfoEntity = BeanUtil.copy(dto,WorkTicketInfoEntity.class); |
|
|
|
ticketInfoEntity.setCode(this.getTicketCode(ticketInfoEntity.getType(),ticketInfoEntity.getSignageCode())); |
|
|
|
ticketInfoEntity.setCode(this.getTicketCode(ticketInfoEntity.getType(),ticketInfoEntity.getSignageCode())); |
|
|
|
|
|
|
|
ticketInfoEntity.setStatus(WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_OPERATE.getStatus()); |
|
|
|
ticketInfoEntity.setFlowStatus(WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_OPERATE.getStatus()); |
|
|
|
ticketInfoEntity.setFlowStatus(WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_OPERATE.getStatus()); |
|
|
|
ticketInfoEntity.setFlowTaskName(WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_OPERATE.getDescription()); |
|
|
|
ticketInfoEntity.setFlowTaskName(WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_OPERATE.getDescription()); |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
@ -105,6 +106,8 @@ public class OfflineTicketServiceImpl extends BaseServiceImpl<WorkTicketInfoMapp |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
LambdaUpdateWrapper<WorkTicketInfoEntity> updateWrapper = Wrappers.<WorkTicketInfoEntity>lambdaUpdate() |
|
|
|
LambdaUpdateWrapper<WorkTicketInfoEntity> updateWrapper = Wrappers.<WorkTicketInfoEntity>lambdaUpdate() |
|
|
|
.set(WorkTicketInfoEntity::getStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_LICENSE.getStatus()) |
|
|
|
.set(WorkTicketInfoEntity::getStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_LICENSE.getStatus()) |
|
|
|
|
|
|
|
.set(WorkTicketInfoEntity::getFlowStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_LICENSE.getStatus()) |
|
|
|
|
|
|
|
.set(WorkTicketInfoEntity::getFlowTaskName, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_LICENSE.getDescription()) |
|
|
|
.set(WorkTicketInfoEntity::getLicensor, AuthUtil.getUserId()) |
|
|
|
.set(WorkTicketInfoEntity::getLicensor, AuthUtil.getUserId()) |
|
|
|
.set(WorkTicketInfoEntity::getLicenseTime, LocalDateTime.now()) |
|
|
|
.set(WorkTicketInfoEntity::getLicenseTime, LocalDateTime.now()) |
|
|
|
.set(WorkTicketInfoEntity::getLicenseEndTime, dto.getLicenseEndTime()) |
|
|
|
.set(WorkTicketInfoEntity::getLicenseEndTime, dto.getLicenseEndTime()) |
|
|
@ -134,6 +137,8 @@ public class OfflineTicketServiceImpl extends BaseServiceImpl<WorkTicketInfoMapp |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
String userName = this.getLicensorNameByDept(Long.parseLong(AuthUtil.getDeptId())); |
|
|
|
LambdaUpdateWrapper<WorkTicketInfoEntity> updateWrapper = Wrappers.<WorkTicketInfoEntity>lambdaUpdate() |
|
|
|
LambdaUpdateWrapper<WorkTicketInfoEntity> updateWrapper = Wrappers.<WorkTicketInfoEntity>lambdaUpdate() |
|
|
|
.set(WorkTicketInfoEntity::getStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_END.getStatus()) |
|
|
|
.set(WorkTicketInfoEntity::getStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_END.getStatus()) |
|
|
|
|
|
|
|
.set(WorkTicketInfoEntity::getFlowStatus, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_END.getStatus()) |
|
|
|
|
|
|
|
.set(WorkTicketInfoEntity::getFlowTaskName, WorkTicketConstants.FirstWorkTicketStatusEnum.OFFLINE_END.getDescription()) |
|
|
|
.set(WorkTicketInfoEntity::getStepOperator, userName) |
|
|
|
.set(WorkTicketInfoEntity::getStepOperator, userName) |
|
|
|
.set(WorkTicketInfoEntity::getNextStepOperator, null) |
|
|
|
.set(WorkTicketInfoEntity::getNextStepOperator, null) |
|
|
|
.eq(WorkTicketInfoEntity::getId, dto.getId()); |
|
|
|
.eq(WorkTicketInfoEntity::getId, dto.getId()); |
|
|
|