43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#pragma once
|
|
#include "M_ObjectDAO.h"
|
|
|
|
namespace DBPlatformSpace
|
|
{
|
|
//_type ///<接口类型
|
|
#define FINDBY_I_TYPE_STATIC 1 //static
|
|
|
|
//_sortType; ///<排序类型
|
|
#define FINDBY_I_SORTTYPE_ASC 0 //升序
|
|
#define FINDBY_I_SORTTYPE_DESC 1 //降序
|
|
|
|
/// M_查询数据接口
|
|
class M_FindByInterfaceDAO : public M_DPSObjectDAO
|
|
{
|
|
public:
|
|
int _bExport; ///<是否输出
|
|
string _description; ///<描述
|
|
|
|
string _paraList; ///<参数列表 "属性ID1,操作符1,连接符1#属性ID2,操作符2,连接符2......"
|
|
string _sortAttributeList; ///<排序属性列表 "属性ID1,属性ID2,属性ID3,......"
|
|
int _sortType; ///<排序类型
|
|
int _type; ///<接口类型
|
|
int _t_M_EntityTableID; ///<数据类id
|
|
|
|
ODI M_FindByInterfaceDAO();
|
|
virtual ODI ~M_FindByInterfaceDAO();
|
|
|
|
|
|
ODI virtual Mapper* createMapper();
|
|
ODI static DAO* createObject();
|
|
|
|
vector<int> getParaIDs();
|
|
vector<int> getSortIDs();
|
|
|
|
static ODI ResultMsg FindAll(list<M_FindByInterfaceDAO*> & pnewlist);
|
|
|
|
static ODI ResultMsg FindByID(int id, M_FindByInterfaceDAO * &pnewdao);
|
|
|
|
static ResultMsg ODI FindByT_M_EntityTableID(int t_M_EntityTableID, list<M_FindByInterfaceDAO*>&newlist);
|
|
};
|
|
}
|