|  | @@ -506,6 +506,7 @@ public class TemplateGenerator {
 | 
	
		
			
				|  |  |          DGasGatherAreaSQLBuilder gatherSb = new DGasGatherAreaSQLBuilder();
 | 
	
		
			
				|  |  |          DGasGatherAreaSQLBuilder.Criteria gatherSc = gatherSb.createCriteria();
 | 
	
		
			
				|  |  |          gatherSc.andGidEqualTo(gid);
 | 
	
		
			
				|  |  | +        gatherSb.setOrderByClause("id ASC");
 | 
	
		
			
				|  |  |          List<DGasGatherArea> gatherList = gatherMapper.selectByExample(gatherSb);
 | 
	
		
			
				|  |  |          if (gatherList.isEmpty()) {
 | 
	
		
			
				|  |  |              throw new BusinessException("EB3100024");
 | 
	
	
		
			
				|  | @@ -543,6 +544,9 @@ public class TemplateGenerator {
 | 
	
		
			
				|  |  |          mkGassDirs(aid, jid, gid);
 | 
	
		
			
				|  |  |          FileWriter fileWriter = new FileWriter(BPATH + "/" + aid + "/" + jid + "/" + "/gas" + "/" + gid + "/run.sh");
 | 
	
		
			
				|  |  |          fileWriter.write(writer.toString());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          fileWriter.close();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |