| | |
| | | @Autowired |
| | | private ProgramAnnotationService programAnnotationService; |
| | | private String controlSystem; |
| | | //AnnotationProperties annotationProperties; |
| | | private Pattern PATTERN = Pattern.compile("^[oO]\\d{4}"); |
| | | private final int O_LINE = 1; |
| | | @Override |
| | |
| | | InputStream ins1; |
| | | if(oMatched){ |
| | | List<DictBiz> annoDicts = programAnnotationService.getAnnotionDictList(); |
| | | String newline = line + generateAnnotation(FilenameUtils.removeExtension(annoData.getFilename()),getControlSystem(),annoDicts); |
| | | String newline = line + AnnotationUtil.generateAnnotation(FilenameUtils.removeExtension(annoData.getFilename()),getControlSystem(),annoDicts); |
| | | ins1 = FileContentUtil.replaceAtLine(bais,O_LINE,newline); |
| | | }else{ |
| | | ins1 = bais; |