ソースを参照

--add queryForOrg();

zzy.zhiyuan.foxmail 8 年 前
コミット
4e3998437e
共有2 個のファイルを変更した10 個の追加0 個の削除を含む
  1. 4 0
      src/main/java/com/ekexiu/portal/dao/DemandDao.java
  2. 6 0
      src/main/java/com/ekexiu/portal/service/DemandService.java

+ 4 - 0
src/main/java/com/ekexiu/portal/dao/DemandDao.java

@ -48,6 +48,10 @@ public abstract class DemandDao {
48 48
	@From(Demand.class)
49 49
	public abstract int queryCountStatus(Connection con,String demandStatus)throws SQLException, JfwBaseException;
50 50
	
51
	@SelectList
52
	@OrderBy("ORDER BY CREATE_TIME DESC")
53
	public abstract List<Demand> queryForOrg(Connection con,String orgId)throws SQLException;
54
	
51 55
	@SelectList
52 56
	@OrderBy("ORDER BY CREATE_TIME DESC")
53 57
	public abstract List<Demand> queryByDemander(Connection con,String demander)throws SQLException;

+ 6 - 0
src/main/java/com/ekexiu/portal/service/DemandService.java

@ -134,6 +134,12 @@ public class DemandService {
134 134
		return this.demandDao.queryCountStatus(con, "1");
135 135
	}
136 136
	
137
	@Get
138
	@Path("/qaForOrg")
139
	public List<Demand> queryForOrg(@JdbcConn Connection con,String orgId)throws SQLException{
140
		return this.demandDao.queryForOrg(con, orgId);
141
	}
142
	
137 143
	@Get
138 144
	@Path("/byDemander")
139 145
	public List<Demand> queryByDemander(@JdbcConn Connection con,String demander)throws SQLException{