| | |
| | | IResultCode rc = new IResultCode() { |
| | | @Override |
| | | public String getMessage() { |
| | | return "程序文件名不合法,应为:"+expectedProgramName+"-"+programProperties.getCraftEdition()+"-[段数]-[段号].[文件扩展名]"; |
| | | return "程序文件名不合法,应为:"+expectedProgramName+"-"+programProperties.getProcessEdition()+"-[段数]-[段号].[文件扩展名]"; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | //截取后面的段数和第几段 |
| | | String endPart = StringUtils.removeStart(filename,expectedProgramName+"-"+programProperties.getCraftEdition()+"-"); |
| | | String endPart = StringUtils.removeStart(filename,expectedProgramName+"-"+programProperties.getProcessEdition()+"-"); |
| | | |
| | | //去掉扩展名 |
| | | if(endPart.contains(".")){ |
| | |
| | | IResultCode rc = new IResultCode() { |
| | | @Override |
| | | public String getMessage() { |
| | | return "程序文件名不合法,应为:"+expectedProgramName+"-"+programProperties.getCraftEdition()+"-[段数]-[段号].[文件扩展名]"; |
| | | return "程序文件名不合法,应为:"+expectedProgramName+"-"+programProperties.getProcessEdition()+"-[段数]-[段号].[文件扩展名]"; |
| | | } |
| | | |
| | | @Override |
| | |
| | | //System.out.println(tempstr); |
| | | return Func.toInt(tempstr); |
| | | } |
| | | |
| | | public void deleteByTempId(Long tempId) { |
| | | this.baseMapper.deleteByTempId(tempId); |
| | | } |
| | | } |