AopContext增加orderBy
This commit is contained in:
parent
cdd1c0f56a
commit
0ee5721eee
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user