Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tiku_APP_APITest
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
shuai
tiku_APP_APITest
Commits
298cf049
Commit
298cf049
authored
Oct 25, 2019
by
Thinkpad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mr
parent
2e6f7f8d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
19 deletions
+8
-19
CaseMakeMr.xls
tiku_App/TestData/CaseMakeMr.xls
+0
-0
DataAllMr.xls
tiku_App/TestData/DataAllMr.xls
+0
-0
department.java
tiku_App/src/com/offcn/api/tk/app3/department.java
+1
-5
position.java
tiku_App/src/com/offcn/api/tk/app3/position.java
+7
-14
No files found.
tiku_App/TestData/CaseMakeMr.xls
View file @
298cf049
No preview for this file type
tiku_App/TestData/DataAllMr.xls
View file @
298cf049
No preview for this file type
tiku_App/src/com/offcn/api/tk/app3/department.java
View file @
298cf049
...
...
@@ -149,12 +149,8 @@ public class department extends TK implements API {
}
if
(
"0"
.
equals
(
code
)){
// List<String> list=jp.getList("data.departments.list");
// if (list!=null && list.size()>0 && list.get(0)!=null) {
// L_office_id=jp.getString("data.offices.list[0].id[0]");
// System.out.println(L_office_id);
// }
L_department_id
=
jp
.
getString
(
"data.departments.list.id"
);
L_department_id
=
L_department_id
.
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
trim
();
System
.
out
.
println
(
L_department_id
);
conn
=
ConnectionsMap
.
get
(
"tk"
);
}
...
...
tiku_App/src/com/offcn/api/tk/app3/position.java
View file @
298cf049
...
...
@@ -30,7 +30,7 @@ import net.sf.json.JSONObject;
/**
*
79.获取用人司局
*
80.获取职位信息
*
* @author mr
*
...
...
@@ -39,7 +39,7 @@ import net.sf.json.JSONObject;
public
class
position
extends
TK
implements
API
{
public
String
parameter
;
//参数集合
public
String
office_id
;
//招录机关
id
public
String
department_id
;
//用人司局
id
@Override
public
void
initialize
(
HashMap
<
String
,
Object
>
data
)
{
...
...
@@ -52,11 +52,11 @@ public class position extends TK implements API {
public
HashMap
<
String
,
Object
>
handleInput
(
HashMap
<
String
,
Object
>
data
)
{
// 获取parameter对应的内容
parameter
=
MapUtil
.
getValue
(
"parameter"
,
data
);
office_id
=
MapUtil
.
getParameter
(
parameter
,
"office
_id"
).
trim
();
department_id
=
MapUtil
.
getParameter
(
parameter
,
"department
_id"
).
trim
();
if
((!
office_id
.
equals
(
""
))
&&
office
_id
.
equals
(
"code"
))
{
office_id
=
L_office
_id
;
parameter
=
parameter
.
replace
(
"\"
office_id\":code"
,
"\"office_id\":\""
+
office
_id
+
"\""
);
if
((!
department_id
.
equals
(
""
))
&&
department
_id
.
equals
(
"code"
))
{
department_id
=
L_department
_id
;
parameter
=
parameter
.
replace
(
"\"
department_id\":code"
,
"\"department_id\":\""
+
department
_id
+
"\""
);
}
data
.
put
(
"parameter"
,
parameter
);
...
...
@@ -77,7 +77,7 @@ public class position extends TK implements API {
jsonAsMap
.
put
(
"appid"
,
tikuString
);
// office_id = MapUtil.killQuotes(office_id, "\"");
jsonAsMap
.
put
(
"
office_id"
,
office
_id
);
jsonAsMap
.
put
(
"
department_id"
,
department
_id
);
MyRequest
myRequest
=
new
MyRequest
();
myRequest
.
setUrl
(
Url
);
...
...
@@ -149,13 +149,6 @@ public class position extends TK implements API {
}
if
(
"0"
.
equals
(
code
)){
// List<String> list=jp.getList("data.departments.list");
// if (list!=null && list.size()>0 && list.get(0)!=null) {
// L_office_id=jp.getString("data.offices.list[0].id[0]");
// System.out.println(L_office_id);
// }
L_department_id
=
jp
.
getString
(
"data.departments.list.id"
);
System
.
out
.
println
(
L_department_id
);
conn
=
ConnectionsMap
.
get
(
"tk"
);
}
}
...
...
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