Commit 09ffac17 by 陈虹

增加少先队关键词内容查看

parent c9059c25
...@@ -86,6 +86,13 @@ var tables=[{ ...@@ -86,6 +86,13 @@ var tables=[{
}}, }},
{field : 'STATION_CODE',title : '班次号',width : 100,align : 'left'} {field : 'STATION_CODE',title : '班次号',width : 100,align : 'left'}
] ] ] ]
},{
tableName:'redscarf_keywords',
title:'少先队关键词',
colums:[ [
{field : 'NAME',title : '关键词',width : 200,align : 'left'},
{field : 'AVGPRICE',title : '出现次数',width : 200,align : 'left'}
] ]
}]; }];
$(function(){ $(function(){
......
...@@ -41,6 +41,10 @@ public interface AllDataBusiness { ...@@ -41,6 +41,10 @@ public interface AllDataBusiness {
Page<Map<String, Object>> list_file_attribute(int pageNo, int pageSize, Map<String, Object> query)throws BusinessException ; Page<Map<String, Object>> list_file_attribute(int pageNo, int pageSize, Map<String, Object> query)throws BusinessException ;
int listCount_file_attribute(Map<String, Object> query) throws BusinessException ; int listCount_file_attribute(Map<String, Object> query) throws BusinessException ;
Page<Map<String, Object>> list_redscarf_keywords(int pageNo, int pageSize, Map<String, Object> query)throws BusinessException ;
int listCount_redscarf_keywords(Map<String, Object> query) throws BusinessException ;
} }
...@@ -164,4 +164,31 @@ public class AllDataBusinessImpl implements AllDataBusiness { ...@@ -164,4 +164,31 @@ public class AllDataBusinessImpl implements AllDataBusiness {
return allDataDAO.listCount_file_attribute(query); return allDataDAO.listCount_file_attribute(query);
} }
@Override
public Page<Map<String, Object>> list_redscarf_keywords(int pageNo,
int pageSize, Map<String, Object> query) throws BusinessException {
// TODO Auto-generated method stub
int pageStart = (pageNo - 1) * pageSize;
// 获取列表
List<Map<String, Object>> items = allDataDAO.list_redscarf_keywords(
new RowBounds(pageStart, pageSize), query);
// 获取列表个数
int count = allDataDAO.listCount_redscarf_keywords(query);
// 创建分页对象
Page<Map<String, Object>> page = new Page<Map<String, Object>>();
page.setStart(pageStart);
page.setLimit(pageSize);
page.setCount(count);
page.setItems(items);
return page;
}
@Override
public int listCount_redscarf_keywords(Map<String, Object> query)
throws BusinessException {
// TODO Auto-generated method stub
return allDataDAO.listCount_redscarf_keywords(query);
}
} }
...@@ -36,4 +36,9 @@ public interface allDataDAO { ...@@ -36,4 +36,9 @@ public interface allDataDAO {
Map<String, Object> query) throws BusinessException; Map<String, Object> query) throws BusinessException;
int listCount_file_attribute(Map<String, Object> query) throws BusinessException; int listCount_file_attribute(Map<String, Object> query) throws BusinessException;
List<Map<String, Object>> list_redscarf_keywords(RowBounds rowbounds,
Map<String, Object> query) throws BusinessException;
int listCount_redscarf_keywords(Map<String, Object> query) throws BusinessException;
} }
...@@ -71,4 +71,19 @@ ...@@ -71,4 +71,19 @@
and f.SAVE_PATH LIKE #{SAVE_PATH} and f.SAVE_PATH LIKE #{SAVE_PATH}
</if> </if>
</select> </select>
<select id="list_redscarf_keywords" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[
select f.*
from redscarf_keywords f where 1=1
]]>
</select>
<select id="listCount_redscarf_keywords" parameterType="map" resultType="int">
<![CDATA[
select count(*) c from redscarf_keywords f where 1=1
]]>
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -103,6 +103,9 @@ public class dataAction extends BasicAction { ...@@ -103,6 +103,9 @@ public class dataAction extends BasicAction {
if(table.equals("food_meituan")){ if(table.equals("food_meituan")){
pageRows = allDataBusiness.list_food_meituan(page, pageSize, query); pageRows = allDataBusiness.list_food_meituan(page, pageSize, query);
} }
if(table.equals("redscarf_keywords")){
pageRows = allDataBusiness.list_redscarf_keywords(page, pageSize, query);
}
setPageCount((pageRows.getCount() - 1) / pageSize + 1); setPageCount((pageRows.getCount() - 1) / pageSize + 1);
Map<String, Object> data = new HashMap<String, Object>(); Map<String, Object> data = new HashMap<String, Object>();
data.put("rowSet", QueryParamUtil.DateToString(pageRows.getItems())); data.put("rowSet", QueryParamUtil.DateToString(pageRows.getItems()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment