You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							35 lines
						
					
					
						
							951 B
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							951 B
						
					
					
				package com.ynxbd.common.action;
 | 
						|
 | 
						|
import com.ynxbd.common.action.base.BaseAction;
 | 
						|
import com.ynxbd.common.bean.Hospital;
 | 
						|
import com.ynxbd.common.dao.his.HisInHospDao;
 | 
						|
import com.ynxbd.common.result.JsonResult;
 | 
						|
import com.ynxbd.common.result.Result;
 | 
						|
import org.apache.struts2.convention.annotation.Action;
 | 
						|
import org.apache.struts2.convention.annotation.Namespace;
 | 
						|
 | 
						|
import java.util.List;
 | 
						|
 | 
						|
/**
 | 
						|
 * @project: 微信公众号
 | 
						|
 * @author 张剑峰
 | 
						|
 * @date 2017年7月7日下午2:09:49
 | 
						|
 * @version v1.0.0
 | 
						|
 * @copyright: 2017 云南新八达科技有限公司 All rights reserved.
 | 
						|
 */
 | 
						|
@Namespace("/hospital")
 | 
						|
public class HospitalAction extends BaseAction {
 | 
						|
 | 
						|
 | 
						|
	@Action("getHospList")
 | 
						|
	public Result getHospitalList() {
 | 
						|
 | 
						|
		JsonResult resp = new HisInHospDao().getHosList();
 | 
						|
		if (!resp.success()) {
 | 
						|
			return Result.error();
 | 
						|
		}
 | 
						|
        List<Hospital> resultList = resp.getDataMapList(Hospital.class, "Hos");
 | 
						|
        return Result.success(resultList);
 | 
						|
	}
 | 
						|
 | 
						|
}
 | 
						|
 |