|
@ -1,29 +1,21 @@
|
1
|
1
|
package com.ekexiu.portal.leavemsg;
|
2
|
2
|
|
3
|
|
import java.sql.Connection;
|
4
|
|
import java.sql.SQLException;
|
5
|
|
import java.util.List;
|
6
|
|
|
7
|
3
|
import org.jfw.apt.annotation.DefaultValue;
|
8
|
4
|
import org.jfw.apt.annotation.Nullable;
|
9
|
5
|
import org.jfw.apt.orm.annotation.dao.Column;
|
10
|
6
|
import org.jfw.apt.orm.annotation.dao.DAO;
|
11
|
|
import org.jfw.apt.orm.annotation.dao.method.From;
|
12
|
|
import org.jfw.apt.orm.annotation.dao.method.IncludeFixSet;
|
13
|
|
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
|
14
|
|
import org.jfw.apt.orm.annotation.dao.method.SetSentence;
|
15
|
|
import org.jfw.apt.orm.annotation.dao.method.Where;
|
16
|
|
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
|
17
|
|
import org.jfw.apt.orm.annotation.dao.method.operator.LimitSelect;
|
18
|
|
import org.jfw.apt.orm.annotation.dao.method.operator.QueryVal;
|
19
|
|
import org.jfw.apt.orm.annotation.dao.method.operator.SelectOne;
|
20
|
|
import org.jfw.apt.orm.annotation.dao.method.operator.UpdateWith;
|
|
7
|
import org.jfw.apt.orm.annotation.dao.method.*;
|
|
8
|
import org.jfw.apt.orm.annotation.dao.method.operator.*;
|
21
|
9
|
import org.jfw.apt.orm.annotation.dao.param.GreaterThan;
|
22
|
10
|
import org.jfw.apt.orm.annotation.dao.param.GroupSqlColumn;
|
23
|
11
|
import org.jfw.apt.orm.annotation.dao.param.GtEq;
|
24
|
12
|
import org.jfw.apt.orm.core.defaultImpl.IntHandler;
|
25
|
13
|
import org.jfw.apt.orm.core.defaultImpl.StringHandler;
|
26
|
14
|
|
|
15
|
import java.sql.Connection;
|
|
16
|
import java.sql.SQLException;
|
|
17
|
import java.util.List;
|
|
18
|
|
27
|
19
|
@DAO
|
28
|
20
|
public interface LeaveMsgDao {
|
29
|
21
|
|
|
@ -60,11 +52,11 @@ public interface LeaveMsgDao {
|
60
|
52
|
LeaveMsgAgreeRec queryAgreeRec(Connection con, String id, String uid) throws SQLException;
|
61
|
53
|
|
62
|
54
|
@LimitSelect
|
63
|
|
@OrderBy("ORDER BY GREATE_TIME ASC,ID ASC")
|
|
55
|
@OrderBy("ORDER BY CREATE_TIME ASC,ID ASC")
|
64
|
56
|
List<LeaveMsg> queryWithParent(Connection con, String parent, @GtEq String createTime, @GreaterThan String id, int rows) throws SQLException;
|
65
|
57
|
|
66
|
58
|
@LimitSelect
|
67
|
|
@OrderBy("ORDER BY GREATE_TIME ASC,ID ASC")
|
|
59
|
@OrderBy("ORDER BY CREATE_TIME ASC,ID ASC")
|
68
|
60
|
List<LeaveMsg> queryWithTop(Connection con, String top,
|
69
|
61
|
@GroupSqlColumn(handlerClass = StringHandler.class, isAnd = false, value = { "SENDER=?", "RECIVER=?" }, force = true) String sid,
|
70
|
62
|
@GroupSqlColumn(handlerClass = StringHandler.class, isAnd = false, value = { "SENDER=?", "RECIVER=?" }, force = true) String rid,
|