AopContext增加orderBy

This commit is contained in:
zhuangqian 2016-12-13 15:49:09 +08:00
parent cdd1c0f56a
commit 0ee5721eee
3 changed files with 14 additions and 8 deletions

View File

@ -66,6 +66,11 @@ public class AopContext {
*/
private String where;
/**
* 从前端grid传过来的排序方式
*/
private String orderBy;
/**
* 自定义列表的sql
*/
@ -177,6 +182,14 @@ public class AopContext {
this.where = where;
}
public String getOrderBy() {
return orderBy;
}
public void setOrderBy(String orderBy) {
this.orderBy = orderBy;
}
public String getSqlStatement() {
return sqlStatement;
}

View File

@ -85,6 +85,7 @@ public abstract class BaseGridFactory implements IGrid{
ac.setSql(sqlTemplate);
ac.setSqlEx(sqlex);
ac.setCondition("");
ac.setOrderBy(orderBy);
ac.setSqlStatement("");
ac.setSqlCount("");
ac.setParam(map);

View File

@ -23,14 +23,6 @@ public class ProxyTest {
test.test();
}
@Test
public void testKit() {
TestProxyBean testBean = new TestProxyBean();
IProxyKit test = ClassKit.newProxyInstance(testBean.getClass(),
new TestProxyHander(testBean));
test.testKit();
}
@Test
public void testCglib(){