Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5pc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5pc
Commits
8a7191ee
Commit
8a7191ee
authored
Jul 03, 2018
by
陈玉兰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
eb891273
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
38 additions
and
18 deletions
+38
-18
dataExchange.ca
WebContent/WEB-INF/conf/gaowj/license/dataExchange.ca
+2
-2
dataExchange.k
WebContent/WEB-INF/conf/gaowj/license/dataExchange.k
+0
-0
dataExchange.license
WebContent/WEB-INF/conf/gaowj/license/dataExchange.license
+0
-0
fileGrapDataTab.js
WebContent/reptile/fileGrap/js/fileGrapDataTab.js
+10
-6
fileGrapTab.js
WebContent/reptile/fileGrap/js/fileGrapTab.js
+10
-3
quartz_service.properties
src/quartz_service.properties
+2
-2
AllDataBusinessImpl.java
...ptile/com/gaowj/business/allData/AllDataBusinessImpl.java
+3
-0
allDataDAO.xml
src_reptile/com/gaowj/business/allData/allDataDAO.xml
+3
-0
fileGrapDAO.xml
src_reptile/com/gaowj/business/fileGrap/fileGrapDAO.xml
+3
-0
actAction.java
src_reptile/com/gaowj/fileGrap/actAction.java
+1
-1
dataAction.java
src_reptile/com/gaowj/fileGrap/dataAction.java
+3
-3
viewAction.java
src_reptile/com/gaowj/fileGrap/viewAction.java
+1
-1
No files found.
WebContent/WEB-INF/conf/gaowj/license/dataExchange.ca
View file @
8a7191ee
No preview for this file type
WebContent/WEB-INF/conf/gaowj/license/dataExchange.k
View file @
8a7191ee
No preview for this file type
WebContent/WEB-INF/conf/gaowj/license/dataExchange.license
View file @
8a7191ee
No preview for this file type
WebContent/reptile/fileGrap/js/fileGrapDataTab.js
View file @
8a7191ee
...
...
@@ -34,17 +34,21 @@ var tables=[
}];
$
(
function
(){
var
tableName
=
$
.
getUrlParam
(
"tablename"
);
init
(
tableName
);
var
savePath
=
$
.
getUrlParam
(
"savepath"
);
init
(
savePath
);
console
.
log
(
savePath
);
})
function
init
(
tableName
){
for
(
var
i
=
0
;
i
<
tables
.
length
;
i
++
){
function
init
(
savePath
){
var
i
=
0
;
datagridLog
(
"listFileData"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/fileGrapData_listFileData?SAVE_PATH="
+
savePath
,
queryData
,
tables
[
i
].
columns
,
60
,
80
);
/*for(var i=0;i<tables.length;i++){
if(tableName==tables[i].tableName){
datagridLog
(
"listFileData"
,
ls_title
,
gaowj
.
WEB_APP_NAME
+
"/fileGrapData_listFileData?
tableName="
+
tableName
,
queryData
,
tables
[
i
].
columns
,
60
,
80
);
datagridLog("listFileData",ls_title,gaowj.WEB_APP_NAME + "/fileGrapData_listFileData?
SAVE_PATH="+savePath
,queryData,tables[i].columns,60,80);
break;
}
}
}
*/
}
function
picture
(
value
){
...
...
WebContent/reptile/fileGrap/js/fileGrapTab.js
View file @
8a7191ee
...
...
@@ -69,6 +69,7 @@ var ls_ywlx = 'YBYW';
var
ls_title
=
"抓取数据列表"
;
var
is_column
=
[
[
{
field
:
'URL'
,
title
:
'名称'
,
width
:
300
,
align
:
'left'
},
{
field
:
'SAVE_PATH'
,
title
:
'保存路径'
,
width
:
300
,
align
:
'left'
},
{
field
:
'DATABASE_NAME'
,
title
:
'指定数据库'
,
width
:
150
,
align
:
'left'
},
{
field
:
'TABLE_NAME'
,
title
:
'指定表名'
,
width
:
150
,
align
:
'left'
},
{
field
:
'CREATE_TIME'
,
title
:
'创建时间'
,
width
:
150
,
align
:
'left'
},
...
...
@@ -268,6 +269,8 @@ function modifyNode(treeNode){
function
grapRow
(
index
){
$
(
'#list'
).
datagrid
(
'selectRow'
,
index
);
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
.
messager
.
confirm
(
'提示'
,
'确定开始爬取?'
,
function
(
r
)
{
if
(
r
)
{
$
.
ajax
({
type
:
'post'
,
url
:
"fileGrapAct_grap"
,
...
...
@@ -276,10 +279,14 @@ function grapRow(index){
save_path
:
is_row
[
0
].
SAVE_PATH
,
},
success
:
function
(
data
){
console
.
log
(
data
);
$
.
messager
.
alert
(
'提示'
,
data
);
$
.
messager
.
alert
(
'提示'
,
"爬取中....."
);
}
});
}
});
}
...
...
@@ -289,7 +296,7 @@ function lookRow(index){
is_row
[
0
].
OPETYPE
=
'update'
;
//document.getElementById("textGrapiframe").contentWindow.init(is_row[0].TABLE_NAME);
//fileGrapiframe.window.init(is_row[0].TABLE_NAME);
window
.
location
=
'fileGrapView_fileGrapDataTab?
tablename='
+
is_row
[
0
].
TABLE_NAME
;
window
.
location
=
'fileGrapView_fileGrapDataTab?
savepath='
+
is_row
[
0
].
SAVE_PATH
;
//openViewIframRow('listData',"fileGrapView_fileGrapDataTab?tableName="+is_row[0].TABLE_NAME,is_row[0],"爬取数据",true,0.65,0.95,170,0);
}
src/quartz_service.properties
View file @
8a7191ee
...
...
@@ -6,8 +6,8 @@ userDefaultPass = 0000
uploadPath
=
c:/temp/
uploadMaxSize
=
10485760
#------------license----------------------------
licensenumber
=
A01000000
2
licensedsoftware
=
A04000000
2
licensenumber
=
A01000000
3
licensedsoftware
=
A04000000
7
licensemaccharset
=
gbk
licensemacshowcmd
=
false
licensemacadress
=
00-21-CC-C9-D2-29
...
...
src_reptile/com/gaowj/business/allData/AllDataBusinessImpl.java
View file @
8a7191ee
...
...
@@ -138,6 +138,9 @@ public class AllDataBusinessImpl implements AllDataBusiness {
// TODO Auto-generated method stub
int
pageStart
=
(
pageNo
-
1
)
*
pageSize
;
// 获取列表
if
(
query
.
get
(
"SAVE_PATH"
)!=
null
&&
""
!=(
query
.
get
(
"SAVE_PATH"
))){
query
.
put
(
"SAVE_PATH"
,
"%"
+
query
.
get
(
"SAVE_PATH"
)+
"%"
);
}
List
<
Map
<
String
,
Object
>>
items
=
allDataDAO
.
list_file_attribute
(
new
RowBounds
(
pageStart
,
pageSize
),
query
);
// 获取列表个数
...
...
src_reptile/com/gaowj/business/allData/allDataDAO.xml
View file @
8a7191ee
...
...
@@ -58,6 +58,9 @@
select f.*
from FILE_ATTRIBUTE f where 1=1
]]>
<if
test=
"SAVE_PATH != null and SAVE_PATH != ''"
>
and f.SAVE_PATH LIKE #{SAVE_PATH}
</if>
</select>
<select
id=
"listCount_file_attribute"
parameterType=
"map"
resultType=
"int"
>
...
...
src_reptile/com/gaowj/business/fileGrap/fileGrapDAO.xml
View file @
8a7191ee
...
...
@@ -61,6 +61,9 @@
<if
test=
"DATA_SORT_ID != null and DATA_SORT_ID != ''"
>
and f.DATA_SORT_ID = #{DATA_SORT_ID}
</if>
<if
test=
"SAVE_PATH != null and SAVE_PATH != ''"
>
and f.SAVE_PATH LIKE #{SAVE_PATH}
</if>
order by f.CREATE_TIME DESC
</select>
...
...
src_reptile/com/gaowj/fileGrap/actAction.java
View file @
8a7191ee
...
...
@@ -114,7 +114,7 @@ public class actAction extends BasicAction{
param
.
put
(
"save_path"
,
save_path
);
com
.
alibaba
.
fastjson
.
JSONObject
jsonObject
=
new
com
.
alibaba
.
fastjson
.
JSONObject
(
param
);
String
json
=
jsonObject
.
toJSONString
();
ResponseBack
responseBack
=
RestUtil
.
post
(
"http://192.168.1.
19
1:8188/downloadfile"
,
json
,
"utf-8"
);
ResponseBack
responseBack
=
RestUtil
.
post
(
"http://192.168.1.
5
1:8188/downloadfile"
,
json
,
"utf-8"
);
jsonObject
.
putAll
(
Status
.
getStatusSuccessMessage
(
"开始抓取"
));
jsonObject
.
put
(
"statusCode"
,
responseBack
.
getStatusCode
());
jsonObject
.
put
(
"responseBody"
,
responseBack
.
getResponseBody
());
...
...
src_reptile/com/gaowj/fileGrap/dataAction.java
View file @
8a7191ee
...
...
@@ -85,13 +85,13 @@ public class dataAction extends BasicAction{
public
String
listFileData
()
throws
BusinessException
{
AllDataBusiness
business
=
BusinessManager
.
getBusiness
(
AllDataBusiness
.
class
);
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMap
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
String
table
=
RequestUtils
.
getString
(
request
,
"tableName
"
);
String
savePath
=
RequestUtils
.
getString
(
request
,
"SAVE_PATH
"
);
try
{
Page
<
Map
<
String
,
Object
>>
pageRows
=
null
;
query
=
QueryParamUtil
.
StringToDate
(
query
);
if
(
table
.
equals
(
"file_attribute"
)){
query
.
put
(
"SAVE_PATH"
,
savePath
);
pageRows
=
business
.
list_file_attribute
(
page
,
pageSize
,
query
);
}
setPageCount
((
pageRows
.
getCount
()
-
1
)
/
pageSize
+
1
);
Map
<
String
,
Object
>
data
=
new
HashMap
<
String
,
Object
>();
data
.
put
(
"rowSet"
,
QueryParamUtil
.
DateToString
(
pageRows
.
getItems
()));
...
...
src_reptile/com/gaowj/fileGrap/viewAction.java
View file @
8a7191ee
...
...
@@ -20,7 +20,7 @@ public class viewAction extends BasicAction{
public
String
fileGrapDataTab
()
throws
BusinessException
{
String
tableName
=
RequestUtils
.
getString
(
request
,
"tableName"
);
request
.
setAttribute
(
"tableName"
,
tableName
);
//
request.setAttribute("tableName", tableName);
return
"fileGrapDataTab"
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment