|
|
|
@ -156,6 +156,7 @@ public class OperationTicketServiceImpl implements OperationTicketService , Star
|
|
|
|
|
standardTicketInfoVo.setCode(code); |
|
|
|
|
//3. 保存操作对象
|
|
|
|
|
StandardTicketInfoEntity standardTicketInfo = getStandardTicketInfoEntity(standardTicketInfoVo); |
|
|
|
|
standardTicketInfo.setStatus(1); |
|
|
|
|
boolean save = standardTicketInfoService.save(standardTicketInfo); |
|
|
|
|
if (!save) { |
|
|
|
|
throw new ServiceException("Save failed"); |
|
|
|
@ -382,6 +383,9 @@ public class OperationTicketServiceImpl implements OperationTicketService , Star
|
|
|
|
|
log.error("安全措施为空哦"); |
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
measureEntityList= measureEntityList.stream().map(s->{ |
|
|
|
|
s.setStatus(1); |
|
|
|
|
return s;}).collect(Collectors.toList()); |
|
|
|
|
boolean save = standardTicketMeasureService.saveBatch(measureEntityList); |
|
|
|
|
if (!save) { |
|
|
|
|
throw new ServiceException("Save failed"); |
|
|
|
|