Commit fb613a19 authored by yanzg's avatar yanzg

修改实体位置

parent 43d54978
......@@ -654,6 +654,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
* @param model
* @param <T>
*/
@Override
public <T extends Object> void setGroupId(Class<T> cls, T model) {
// 判断前台实体
if (model == null) {
......
......@@ -269,7 +269,7 @@ public abstract class BaseDaoSql {
* @param model 需要转化的实体
* @return 处理参数
*/
protected Object queryCell(String sqlName, Object model) {
public Object queryCell(String sqlName, Object model) {
return this.queryCell(this.getSql(sqlName), model);
}
......@@ -309,7 +309,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected List<MapRow> query(String sqlName, Object model) {
public List<MapRow> query(String sqlName, Object model) {
return this.query(MapRow.class, sqlName, model);
}
......@@ -322,7 +322,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> List<T> query(Class<T> cls, String sqlName, Object model) {
public <T extends Object> List<T> query(Class<T> cls, String sqlName, Object model) {
return this.query(cls, sqlName, model, null);
}
......@@ -335,7 +335,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> List<T> query(Class<T> cls, String sqlName, Object model, QueryPara queryPara) {
public <T extends Object> List<T> query(Class<T> cls, String sqlName, Object model, QueryPara queryPara) {
SqlData sqlData = this.getSql(sqlName);
sqlData = getSqlQueryPara(sqlData, queryPara, true);
......@@ -352,7 +352,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected <T extends Object> void query(Class<T> cls, DbRow<T> handle, String sqlName, Object model) {
public <T extends Object> void query(Class<T> cls, DbRow<T> handle, String sqlName, Object model) {
this.query(cls, handle, sqlName, model, null);
}
......@@ -365,7 +365,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected <T extends Object> void query(Class<T> cls, DbRow<T> handle, String sqlName, Object model, QueryPara queryPara) {
public <T extends Object> void query(Class<T> cls, DbRow<T> handle, String sqlName, Object model, QueryPara queryPara) {
SqlData sqlData = this.getSql(sqlName);
// 获取查询参数处理后的SQL语句
sqlData = getSqlQueryPara(sqlData, queryPara, true);
......@@ -381,7 +381,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected MapRow queryFirst(String sqlName, Object model) {
public MapRow queryFirst(String sqlName, Object model) {
return this.queryFirst(MapRow.class, sqlName, model);
}
......@@ -394,7 +394,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> T queryFirst(Class<T> cls, String sqlName, Object model) {
public <T extends Object> T queryFirst(Class<T> cls, String sqlName, Object model) {
return this.queryFirst(cls, sqlName, model, null);
}
......@@ -407,7 +407,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> T queryFirst(Class<T> cls, String sqlName, Object model, QueryPara queryPara) {
public <T extends Object> T queryFirst(Class<T> cls, String sqlName, Object model, QueryPara queryPara) {
PageSizeReq pageSize = new PageSizeReqVo();
pageSize.setPageIndex(1);
pageSize.setPageSize(1);
......@@ -424,7 +424,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected List<MapRow> queryPageData(PageSizeReqVo pageSize, String sqlName, Object model) {
public List<MapRow> queryPageData(PageSizeReqVo pageSize, String sqlName, Object model) {
return this.queryPageData(MapRow.class, pageSize, sqlName, model);
}
......@@ -439,7 +439,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> List<T> queryPageData(Class<T> cls, PageSizeReq pageSize, String sqlName, Object model) {
public <T extends Object> List<T> queryPageData(Class<T> cls, PageSizeReq pageSize, String sqlName, Object model) {
return this.queryPageData(cls, pageSize, sqlName, model, null);
}
......@@ -453,7 +453,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> List<T> queryPageData(Class<T> cls, PageSizeReq pageSize, String sqlName, Object model, QueryPara queryPara) {
public <T extends Object> List<T> queryPageData(Class<T> cls, PageSizeReq pageSize, String sqlName, Object model, QueryPara queryPara) {
SqlData from = this.getSql(sqlName);
// 对SQL语句进行分页处理
SqlData to = from.copy();
......@@ -473,7 +473,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
protected PageSizeData<MapRow> queryPage(PageSizeReqVo pageSize, String sqlName, Object model) {
public PageSizeData<MapRow> queryPage(PageSizeReqVo pageSize, String sqlName, Object model) {
return this.queryPage(MapRow.class, pageSize, sqlName, model);
}
......@@ -487,7 +487,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> PageSizeData<T> queryPage(Class<T> cls, PageSizeReqVo pageSize, String sqlName, Object model) {
public <T extends Object> PageSizeData<T> queryPage(Class<T> cls, PageSizeReqVo pageSize, String sqlName, Object model) {
return queryPage(cls, pageSize, sqlName, model, null);
}
......@@ -501,7 +501,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
protected <T extends Object> PageSizeData<T> queryPage(Class<T> cls, PageSizeReqVo pageSize, String sqlName, Object model, QueryPara queryPara) {
public <T extends Object> PageSizeData<T> queryPage(Class<T> cls, PageSizeReqVo pageSize, String sqlName, Object model, QueryPara queryPara) {
// 获取需要执行的SQL语句
SqlData from = this.getSql(sqlName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment