|  | @ -442,7 +442,9 @@ public class CourseService {
 | 
	
		
			
				|  |  |             for (int i=0;i<positionList.size();i++){
 | 
	
		
			
				|  |  |                 String sql1 = "SELECT id,code,`name`,mobile,photo,address,longitude,latitude ,funDistance("+positionList.get(i).get("latitude")+","+positionList.get(i).get("longitude")+","+lat2+","+lon2+") funDistance FROM base.base_org where id = '"+positionList.get(i).get("id")+"'";
 | 
	
		
			
				|  |  |                 List<Map<String , Object>> mapList = jdbcTemplate.queryForList(sql1);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //                base_recruit_students
 | 
	
		
			
				|  |  |                 String allNumSql = "SELECT id,num FROM base_recruit_students WHERE org_code = '"+mapList.get(0).get("code")+"' AND del = 1 ";
 | 
	
		
			
				|  |  |                 Integer allNum = jdbcTemplate.queryForObject(allNumSql,Integer.class);
 | 
	
		
			
				|  |  |                 Integer num = 0;
 | 
	
		
			
				|  |  |                 // 判断该机构是否开放报名
 | 
	
		
			
				|  |  |                 String ksbm = "SELECT COUNT(1) a FROM base_recruit_students WHERE '"+nowDate+"' > create_time AND '"+nowDate+"' < end_time AND del = 1 AND org_code = '"+mapList.get(0).get("code")+"'";
 | 
	
	
		
			
				|  | @ -476,6 +478,7 @@ public class CourseService {
 | 
	
		
			
				|  |  |                 obj.put("mobile",mapList.get(0).get("mobile"));
 | 
	
		
			
				|  |  |                 obj.put("funDistance",mapList.get(0).get("funDistance"));
 | 
	
		
			
				|  |  |                 obj.put("num",num);
 | 
	
		
			
				|  |  |                 obj.put("allNum",allNum);
 | 
	
		
			
				|  |  |                 obj.put("course",course);
 | 
	
		
			
				|  |  |                 list.add(obj);
 | 
	
		
			
				|  |  |             }
 |