|
|
|
@ -265,8 +265,14 @@ public class OperationTicketServiceImpl implements OperationTicketService , Star
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//1.查询操作票信息
|
|
|
|
|
Long id = NumberUtils.toLong(response.getBusinessKey()); |
|
|
|
|
StandardTicketInfoEntity standardTicketInfoEntity = standardTicketInfoService.getById(id); |
|
|
|
|
// Long id = NumberUtils.toLong(response.getBusinessKey());
|
|
|
|
|
String businessKey = response.getBusinessKey(); |
|
|
|
|
String[] split =businessKey.split(":"); |
|
|
|
|
if (StringUtils.isBlank(split[1])){ |
|
|
|
|
log.error("异常消息转换失败,未找到BusinessKey:"+ businessKey); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
StandardTicketInfoEntity standardTicketInfoEntity = standardTicketInfoService.getById(split[1]); |
|
|
|
|
if (ObjectUtils.isEmpty(standardTicketInfoEntity)) { |
|
|
|
|
log.error("获取操作票不存在"); |
|
|
|
|
return; |
|
|
|
@ -276,7 +282,7 @@ public class OperationTicketServiceImpl implements OperationTicketService , Star
|
|
|
|
|
StandardTicketInfoEntity newStandardTicketInfoEntity = new StandardTicketInfoEntity(); |
|
|
|
|
// BeanUtils.copyProperties(standardTicketInfoVo, newStandardTicketInfoEntity);
|
|
|
|
|
BeanUtil.copy(standardTicketInfoVo, newStandardTicketInfoEntity); |
|
|
|
|
newStandardTicketInfoEntity.setId(id); |
|
|
|
|
newStandardTicketInfoEntity.setId(Long.valueOf(split[1])); |
|
|
|
|
newStandardTicketInfoEntity.setCreateUser(standardTicketInfoEntity.getCreateUser()); |
|
|
|
|
//填充操作票信息
|
|
|
|
|
saveStandardTicketInfoEntity(newStandardTicketInfoEntity, response); |
|
|
|
|