|  | @ -8,6 +8,7 @@ import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.im.ConsultDo;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.im.ConsultTeamDo;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.patient.BasePatientDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.servicePackage.ServicePackageSubItemDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.system.SystemDictDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.wx.WxTemplateConfigDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.door.*;
 | 
	
	
		
			
				|  | @ -21,6 +22,7 @@ import com.yihu.jw.im.util.ImUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.order.dao.ConsultTeamOrderDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.service.BasePatientService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.PageEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.common.IdCardUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.date.DateUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.http.HttpClientUtil;
 | 
	
	
		
			
				|  | @ -142,6 +144,25 @@ public class DoorOrderService {
 | 
	
		
			
				|  |  | //    @Autowired
 | 
	
		
			
				|  |  | //    private DmJobService dmJobService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 服务项查询
 | 
	
		
			
				|  |  |      * @param signId 签约id
 | 
	
		
			
				|  |  |      * @param type doorService 上门服务
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public PageEnvelop getServiceItem(String signId, String name, String type, Integer page, Integer size){
 | 
	
		
			
				|  |  |         String sql = "SELECT si.* ";
 | 
	
		
			
				|  |  |         String countSql = "select count(si.id) ";
 | 
	
		
			
				|  |  |         String filter = " from base_service_package_sign_record r,base_service_package_item i,base_service_package_sub_item si,base_service_package_item_relational ir " +
 | 
	
		
			
				|  |  |                 "WHERE r.id = '"+signId+"' and i.service_package_id=r.service_package_id and i.`code`='"+type+"' and si.status='1' " +
 | 
	
		
			
				|  |  |                 " and i.id = ir.item_id and ir.sub_item_id= si.id ";
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(name)){
 | 
	
		
			
				|  |  |             filter += " and si.name like '%"+name+"%' ";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String oderBy = " order by si.sort limit "+(page-1)*size+","+size;
 | 
	
		
			
				|  |  |         List<ServicePackageSubItemDO> list = jdbcTemplate.query(sql+filter+oderBy,new BeanPropertyRowMapper<>(ServicePackageSubItemDO.class));
 | 
	
		
			
				|  |  |         long count = jdbcTemplate.queryForObject(countSql+filter,Long.class);
 | 
	
		
			
				|  |  |         return PageEnvelop.getSuccessListWithPage("",list,page,size,count);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public Map<String, String> getNumGroupByStatusTeam(String doctor, Integer type) {
 | 
	
		
			
				|  |  |         String sql = "SELECT a.status, COUNT(DISTINCT a.id) as num FROM wlyy_door_service_order a ";
 |