|
@ -7,10 +7,6 @@ import com.ekexiu.console.system.pojo.DemandInfo;
|
7
|
7
|
import org.jfw.apt.annotation.Autowrie;
|
8
|
8
|
import org.jfw.apt.annotation.DefaultValue;
|
9
|
9
|
import org.jfw.apt.annotation.Nullable;
|
10
|
|
import org.jfw.apt.orm.annotation.dao.param.Alias;
|
11
|
|
import org.jfw.apt.orm.annotation.dao.param.GtEq;
|
12
|
|
import org.jfw.apt.orm.annotation.dao.param.Like;
|
13
|
|
import org.jfw.apt.orm.annotation.dao.param.LtEq;
|
14
|
10
|
import org.jfw.apt.web.annotation.Path;
|
15
|
11
|
import org.jfw.apt.web.annotation.operate.Get;
|
16
|
12
|
import org.jfw.apt.web.annotation.operate.Post;
|
|
@ -59,7 +55,7 @@ public class DemandService {
|
59
|
55
|
|
60
|
56
|
@Get
|
61
|
57
|
@Path("/pq")
|
62
|
|
public PageQueryResult<DemandInfo> pageQuery(@JdbcConn Connection con, @Nullable @Like String demandTitle, @Nullable @Like String professorName, @Nullable @Like String demandAim, @Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, @DefaultValue("5") int pageSize, @DefaultValue("1") int pageNo)throws SQLException {
|
|
58
|
public PageQueryResult<DemandInfo> pageQuery(@JdbcConn Connection con, @Nullable String demandTitle, @Nullable String professorName, @Nullable String demandAim, @Nullable String bt, @Nullable String et, @DefaultValue("5") int pageSize, @DefaultValue("1") int pageNo)throws SQLException {
|
63
|
59
|
String title =null;
|
64
|
60
|
if(demandTitle!=null)
|
65
|
61
|
{
|
|
@ -75,6 +71,10 @@ public class DemandService {
|
75
|
71
|
{
|
76
|
72
|
aim="%"+demandAim+"%";
|
77
|
73
|
}
|
|
74
|
if (bt != null)
|
|
75
|
bt = bt + "000000";
|
|
76
|
if (et != null)
|
|
77
|
et = et + "235959";
|
78
|
78
|
return this.demandDao.pageQuery(con,title, name, aim,bt,et, pageNo, pageSize);
|
79
|
79
|
}
|
80
|
80
|
|