Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
46e43317
Commit
46e43317
authored
Jan 20, 2017
by
季圣华
Browse files
更新系统的lib库,去掉多余的包
parent
3b1c14a2
Changes
63
Show whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/lib/pinyin4j-2.5.0.jar
deleted
100644 → 0
View file @
3b1c14a2
File deleted
src/com/jsh/base/BaseDAO.java
View file @
46e43317
...
...
@@ -78,19 +78,19 @@ public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T>
pageUtil
.
setPageList
(
query
.
list
());
}
@SuppressWarnings
(
"unchecked"
)
@Override
public
List
<
T
>
find
(
Map
<
String
,
Object
>
conditon
)
throws
DataAccessException
{
return
this
.
getHibernateTemplate
().
find
(
" from "
+
getEntityClass
().
getName
()
+
" where 1=1 "
+
SearchConditionUtil
.
getCondition
(
conditon
));
}
@SuppressWarnings
(
"unchecked"
)
@Override
public
List
<
T
>
find
(
String
hql
)
throws
DataAccessException
{
return
this
.
getHibernateTemplate
().
find
(
" from "
+
getEntityClass
().
getName
()
+
" where 1=1 "
+
hql
);
}
//
@SuppressWarnings("unchecked")
//
@Override
//
public List<T> find(Map<String, Object> conditon)throws DataAccessException
//
{
//
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
//
}
//
@SuppressWarnings("unchecked")
//
@Override
//
public List<T> find(String hql) throws DataAccessException
//
{
//
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
//
}
@SuppressWarnings
(
"unchecked"
)
@Override
...
...
src/com/jsh/base/BaseIDAO.java
View file @
46e43317
...
...
@@ -77,14 +77,14 @@ public interface BaseIDAO<T>
* @param conditon 查询条件
* @return 查询列表数据
*/
List
<
T
>
find
(
Map
<
String
,
Object
>
conditon
)
throws
DataAccessException
;
//
List<T> find(Map<String,Object> conditon)throws DataAccessException;
/**
* 根据hql查询 --没有分页信息
* @param hql hibernate查询
* @return 查询列表数据
*/
List
<
T
>
find
(
String
hql
)
throws
DataAccessException
;
//
List<T> find(String hql)throws DataAccessException;
/**
* 根据搜索条件查询--分页
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment