|  | @@ -1,5 +1,8 @@
 | 
											
												
													
														|  |  package com.miniframe.bisiness.system;
 |  |  package com.miniframe.bisiness.system;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import java.io.BufferedReader;
 | 
											
												
													
														|  | 
 |  | +import java.io.InputStream;
 | 
											
												
													
														|  | 
 |  | +import java.io.InputStreamReader;
 | 
											
												
													
														|  |  import java.util.Map;
 |  |  import java.util.Map;
 | 
											
												
													
														|  |  import com.miniframe.core.ExecProcessFlow;
 |  |  import com.miniframe.core.ExecProcessFlow;
 | 
											
												
													
														|  |  import com.miniframe.generate.business.system.model.D00008BaseModel;
 |  |  import com.miniframe.generate.business.system.model.D00008BaseModel;
 | 
											
										
											
												
													
														|  | @@ -22,13 +25,25 @@ public class D00008Service extends D00008BaseModel implements ExecProcessFlow {
 | 
											
												
													
														|  |  			TemplateGenerator.createFireControl(aid);
 |  |  			TemplateGenerator.createFireControl(aid);
 | 
											
												
													
														|  |  			TemplateGenerator.createFireRunsh(aid);
 |  |  			TemplateGenerator.createFireRunsh(aid);
 | 
											
												
													
														|  |  			TemplateGenerator.createFireInit(aid);
 |  |  			TemplateGenerator.createFireInit(aid);
 | 
											
												
													
														|  | 
 |  | +			Runtime runtime = Runtime.getRuntime();
 | 
											
												
													
														|  | 
 |  | +        	Process p =null;
 | 
											
												
													
														|  | 
 |  | +        	p= runtime.exec("sh "+TemplateGenerator.BPATH+"/"+aid+"/"+"runFile.sh");
 | 
											
												
													
														|  | 
 |  | +			InputStream fis = p.getInputStream();
 | 
											
												
													
														|  | 
 |  | +			InputStreamReader isr = new InputStreamReader(fis);
 | 
											
												
													
														|  | 
 |  | +			BufferedReader br = new BufferedReader(isr);
 | 
											
												
													
														|  | 
 |  | +			String line = null;
 | 
											
												
													
														|  | 
 |  | +			while ((line = br.readLine()) != null) {
 | 
											
												
													
														|  | 
 |  | +				System.out.println(line);
 | 
											
												
													
														|  | 
 |  | +			}
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  	
 |  |  	
 | 
											
												
													
														|  |  	/**
 |  |  	/**
 | 
											
												
													
														|  |  	 * 基础系统,“灾情演练”业务前处理
 |  |  	 * 基础系统,“灾情演练”业务前处理
 | 
											
												
													
														|  |   	 */
 |  |   	 */
 | 
											
												
													
														|  |  	public void preTransFlow() throws Exception {
 |  |  	public void preTransFlow() throws Exception {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  		this.validater();
 |  |  		this.validater();
 | 
											
												
													
														|  |  	}
 |  |  	}
 | 
											
												
													
														|  |  	
 |  |  	
 |