微信端查询

	/**
	 * 使用会员id查找学员信息
	 * @param meminfo
	 * @return
	 * @throws Exception
	 * @author hy
	 * @history 2018-9-6 上午10:01:35 Create by 【hy】
	 */
	public STUINFO beanStuinfo(MEMINFO meminfo) throws Exception;
	
	/**
	 * 查询请假列表
	 * @param bean  请假对象
	 * @param orderBy 排序
	 * @param dataPage  分页
	 * @return
	 * @throws Exception
	 * @author hy
	 * @history 2018-9-6 上午10:07:15 Create by 【hy】
	 */
	public DataTable getRecashList(LEAVEINFO bean,String orderBy, DataPage dataPage) throws Exception ;



	public STUINFO beanStuinfo(LEAVEINFO_BUSSIN leaveinfo, MEMINFO meminfo) throws Exception {
		STUINFO result = new STUINFO();
		
		result.setSNO(leaveinfo.getSNO());
		result.setMEMID(meminfo.getID());
		
		List<Object> query = this.daoProvider().queryObject(result);
		
		if(!NoneType.isNullOrEmpty(query)){
			result = (STUINFO)query.get(0);
		}
		
		return result;
	}


	
	public STUINFO beanStuinfo(MEMINFO meminfo) throws Exception {
		STUINFO result = new STUINFO();
		
		result.setMEMID(meminfo.getID());
		
		List<Object> query = this.daoProvider().queryObject(result);
		
		if(!NoneType.isNullOrEmpty(query)){
			result = (STUINFO)query.get(0);
		}
		
		return result;
	}


	public DataTable getRecashList(LEAVEINFO bean,String orderBy, DataPage dataPage) throws Exception {
		DataTable result = null;
		
		SqlCommand command = new SqlCommand(LEAVEINFOSql.getRecashList);
		command.getCriteria().setOrderBy(orderBy);
    	command.getCriteria().setPager(dataPage);
    	
		result = this.daoProvider().query(command, bean);
		return result;
	}

  

-------------------------------------------------------------------------
## 极客时间全网最便宜最优惠购买方式,优惠券返现 百度网盘 微信关注公众号“选门好课”
扫描下方二维码关注我的公众号"选门好课",与我一起交流知识
原文地址:https://www.cnblogs.com/singworld/p/9825633.html