Commit 6a837345 by goul

fix:调整查询不精确的问题,添加录入时间字段, 爬取数据范围设置为最近4个月

parent 9fe36b3b
...@@ -224,20 +224,18 @@ a{ ...@@ -224,20 +224,18 @@ a{
<el-table stripe :data="tableData" border style="width: 100%" class="table"> <el-table stripe :data="tableData" border style="width: 100%" class="table">
<el-table-column label="序号" type="index" :index='indexMethod' width="60" align="center"></el-table-column> <el-table-column label="序号" type="index" :index='indexMethod' width="60" align="center"></el-table-column>
<el-table-column label="案号" width="260" align="center" prop="WRIT_CODE"> </el-table-column> <el-table-column label="案号" width="260" align="center" prop="WRIT_CODE"> </el-table-column>
<el-table-column label="原告" width="150" align="center" prop="USER_YG"> </el-table-column>
<el-table-column label="被告" width="150" align="center" prop="USER_BG"> </el-table-column>
<el-table-column label="被告人" width="150" align="center" prop="USER_BGR"> </el-table-column>
<el-table-column label="法院" width="100" align="center" prop="COURT"> </el-table-column>
<el-table-column label="案由" width="250" align="center" prop="REASON"> </el-table-column>
<el-table-column label="方式" width="120" align="center" prop="WAY"> </el-table-column>
<el-table-column label="收案日期" width="130" align="center" prop="START_TIME"> </el-table-column>
<el-table-column label="结案日期" width="130" align="center" prop="END_TIME"> </el-table-column>
<el-table-column label="创建时间" width="250" align="center" prop="CREATE_TIME"></el-table-column>
<el-table-column label="文件" width="80" align="center"> <el-table-column label="文件" width="80" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="doFile(scope.$index, scope.row)" class="layui-btn layui-btn-normal layui-btn-xs" >查看</a> <a @click="doFile(scope.$index, scope.row)" class="layui-btn layui-btn-normal layui-btn-xs" >查看</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="被告人" width="474" align="center" prop="USER_BGR"> </el-table-column>
<el-table-column label="法院" width="100" align="center" prop="COURT"> </el-table-column>
<el-table-column label="案由" width="250" align="center" prop="REASON"> </el-table-column>
<el-table-column label="方式" width="120" align="center" prop="WAY"> </el-table-column>
<el-table-column label="收案日期" width="130" align="center" prop="START_TIME"> </el-table-column>
<el-table-column label="结案日期" width="130" align="center" prop="END_TIME"> </el-table-column>
<el-table-column label="录入日期" width="130" align="center" prop="CREATE_TIME"></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="doSizeChange" @current-change="doCurrentChange" :current-page="is_page" :page-sizes="is_listPageSize" <el-pagination @size-change="doSizeChange" @current-change="doCurrentChange" :current-page="is_page" :page-sizes="is_listPageSize"
:page-size="is_rows" background layout="sizes, prev, pager, next, jumper,total" :total="is_total" class="page"> :page-size="is_rows" background layout="sizes, prev, pager, next, jumper,total" :total="is_total" class="page">
...@@ -248,20 +246,19 @@ a{ ...@@ -248,20 +246,19 @@ a{
<el-table stripe :data="tableData1" border style="width: 100%" class="table"> <el-table stripe :data="tableData1" border style="width: 100%" class="table">
<el-table-column label="序号" type="index" :index='indexMethod' width="60" align="center"></el-table-column> <el-table-column label="序号" type="index" :index='indexMethod' width="60" align="center"></el-table-column>
<el-table-column label="案号" width="260" align="center" prop="WRIT_CODE"> </el-table-column> <el-table-column label="案号" width="260" align="center" prop="WRIT_CODE"> </el-table-column>
<el-table-column label="原告" width="150" align="center" prop="USER_YG"> </el-table-column>
<el-table-column label="被告" width="150" align="center" prop="USER_BG"> </el-table-column>
<el-table-column label="被告人" width="150" align="center" prop="USER_BGR"> </el-table-column>
<el-table-column label="法院" width="100" align="center" prop="COURT"> </el-table-column>
<el-table-column label="案由" width="250" align="center" prop="REASON"> </el-table-column>
<el-table-column label="方式" width="120" align="center" prop="WAY"> </el-table-column>
<el-table-column label="收案日期" width="130" align="center" prop="START_TIME"> </el-table-column>
<el-table-column label="结案日期" width="130" align="center" prop="END_TIME"> </el-table-column>
<el-table-column label="创建时间" width="250" align="center" prop="CREATE_TIME"></el-table-column>
<el-table-column label="文件" width="80" align="center"> <el-table-column label="文件" width="80" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="doFile(scope.$index, scope.row)" class="layui-btn layui-btn-normal layui-btn-xs" >查看</a> <a @click="doFile(scope.$index, scope.row)" class="layui-btn layui-btn-normal layui-btn-xs" >查看</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="原告" width="237" align="center" prop="USER_YG"> </el-table-column>
<el-table-column label="被告" width="237" align="center" prop="USER_BG"> </el-table-column>
<el-table-column label="法院" width="100" align="center" prop="COURT"> </el-table-column>
<el-table-column label="案由" width="250" align="center" prop="REASON"> </el-table-column>
<el-table-column label="方式" width="120" align="center" prop="WAY"> </el-table-column>
<el-table-column label="收案日期" width="130" align="center" prop="START_TIME"> </el-table-column>
<el-table-column label="结案日期" width="130" align="center" prop="END_TIME"> </el-table-column>
<el-table-column label="录入日期" width="130" align="center" prop="CREATE_TIME"></el-table-column>
</el-table> </el-table>
<el-pagination @size-change="doSizeChange1" @current-change="doCurrentChange1" :current-page="is_page1" :page-sizes="is_listPageSize" <el-pagination @size-change="doSizeChange1" @current-change="doCurrentChange1" :current-page="is_page1" :page-sizes="is_listPageSize"
:page-size="is_rows1" background layout="sizes, prev, pager, next, jumper,total" :total="is_total1" class="page"> :page-size="is_rows1" background layout="sizes, prev, pager, next, jumper,total" :total="is_total1" class="page">
......
...@@ -110,7 +110,7 @@ public class dataAction extends BasicAction{ ...@@ -110,7 +110,7 @@ public class dataAction extends BasicAction{
if (!StringUtil.isEmpty(otherWhere)) { if (!StringUtil.isEmpty(otherWhere)) {
otherWhere += " and "; otherWhere += " and ";
} }
otherWhere += " END_TIME >= '" + query.get("START_TIME") + "' " ; otherWhere += " START_TIME >= '" + query.get("START_TIME") + "' " ;
query.remove("START_TIME"); query.remove("START_TIME");
} }
if (query.get("END_TIME") != null) { if (query.get("END_TIME") != null) {
...@@ -126,7 +126,7 @@ public class dataAction extends BasicAction{ ...@@ -126,7 +126,7 @@ public class dataAction extends BasicAction{
if(null!=request.getParameter("COURT")){ if(null!=request.getParameter("COURT")){
query.put("COURT", request.getParameter("COURT")); query.put("COURT", request.getParameter("COURT"));
} }
if (!StringUtil.isEmpty(otherWhere)) { if (!"".equals(otherWhere)) {
otherWhere += " and "; otherWhere += " and ";
} }
otherWhere += " ( "+ otherWhere += " ( "+
...@@ -154,7 +154,7 @@ public class dataAction extends BasicAction{ ...@@ -154,7 +154,7 @@ public class dataAction extends BasicAction{
Page<Map<String, Object>> pageRows = business.list_dataM(pageNo,pageSize,tableName, query); Page<Map<String, Object>> pageRows = business.list_dataM(pageNo,pageSize,tableName, 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.DateTimeToString(pageRows.getItems())); data.put("rowSet", QueryParamUtil.DateToString(pageRows.getItems()));
data.put("pageNo", pageNo); data.put("pageNo", pageNo);
data.put("pageSize", pageSize); data.put("pageSize", pageSize);
data.put("pageCount", pageCount); data.put("pageCount", pageCount);
......
...@@ -289,5 +289,4 @@ public class CrawlData { ...@@ -289,5 +289,4 @@ public class CrawlData {
} }
} }
...@@ -299,7 +299,7 @@ public class CrawlDataXs { ...@@ -299,7 +299,7 @@ public class CrawlDataXs {
Date dBefore = new Date(); Date dBefore = new Date();
Calendar calendar = Calendar.getInstance(); //得到日历 Calendar calendar = Calendar.getInstance(); //得到日历
calendar.setTime(dNow);//把当前时间赋给日历 calendar.setTime(dNow);//把当前时间赋给日历
calendar.add(Calendar.MONTH, -3); //设置为前3月 calendar.add(Calendar.MONTH, -4); //设置为前3月
dBefore = calendar.getTime(); //得到前3月的时间 dBefore = calendar.getTime(); //得到前3月的时间
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); //设置时间格式 SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); //设置时间格式
return sdf.format(dBefore); return sdf.format(dBefore);
......
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