|  | @ -1,5 +1,6 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.care.service.sign;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.apply.PatientBedApplyDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.sign.ArchiveDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.doctor.dao.BaseDoctorDao;
 | 
	
	
		
			
				|  | @ -58,6 +59,23 @@ public class ArchiveService extends BaseJpaService<ArchiveDO, ArchiveDao> {
 | 
	
		
			
				|  |  |         return jdbcTemplate.queryForObject(sql,Integer.class);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public JSONObject getArchiveTopNum(String doctorId){
 | 
	
		
			
				|  |  |         JSONObject json = new JSONObject();
 | 
	
		
			
				|  |  |         json.put("signTotal",0);
 | 
	
		
			
				|  |  |         json.put("unSignTotal",0);
 | 
	
		
			
				|  |  |         String sql = " SELECT COUNT(*) num,CAST(sign_status as char) sign_status  from wlyy_archive WHERE doctor_code =  '"+doctorId+"'GROUP BY sign_status";
 | 
	
		
			
				|  |  |         List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  |         for (Map<String,Object> map:list){
 | 
	
		
			
				|  |  |             if("1".equals(String.valueOf(map.get("sign_status")))){
 | 
	
		
			
				|  |  |                 json.put("signTotal",map.get("num"));
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if("0".equals(String.valueOf(map.get("sign_status")))){
 | 
	
		
			
				|  |  |                 json.put("unSignTotal",map.get("num"));
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         return json;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public PageEnvelop<List<Map<String,Object>>> archiveList(String doctorId, int page, int size,Integer signStatus,String name){
 | 
	
		
			
				|  |  |         String sql = "SELECT a.create_time,p.idcard,p.mobile,p.name,p.sex,p.id ";
 | 
	
		
			
				|  |  |         String countSql = "SELECT count(*) ";
 |