1. 程式人生 > >微信端查詢

微信端查詢

	/**
	 * 使用會員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;
	}