Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
5e940cdf
Commit
5e940cdf
authored
Jun 06, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adi
parent
31830e55
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
workspace.xml
.idea/workspace.xml
+0
-0
ADIAccountServiceImpl.java
src/main/java/adi/service/impl/ADIAccountServiceImpl.java
+9
-8
No files found.
.idea/workspace.xml
View file @
5e940cdf
This diff is collapsed.
Click to expand it.
src/main/java/adi/service/impl/ADIAccountServiceImpl.java
View file @
5e940cdf
...
@@ -70,6 +70,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -70,6 +70,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
ReminderLevelRepository
reminderLevelRepository
;
ReminderLevelRepository
reminderLevelRepository
;
@Autowired
@Autowired
PressMoneyRepository
pressMoneyRepository
;
PressMoneyRepository
pressMoneyRepository
;
private
static
String
u
=
"http://10.3.20.51:80/"
;
@Override
@Override
public
Map
<
String
,
Object
>
findSale
(
User
user
,
Long
sale
)
{
public
Map
<
String
,
Object
>
findSale
(
User
user
,
Long
sale
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
();
Map
<
String
,
Object
>
map
=
new
HashMap
();
...
@@ -128,7 +129,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -128,7 +129,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
public
void
updateAccount
(
Contract
contract
)
{
public
void
updateAccount
(
Contract
contract
)
{
ADIUser
adiUser
=
findOne
(
contract
.
getEmail
());
ADIUser
adiUser
=
findOne
(
contract
.
getEmail
());
if
(
null
!=
adiUser
){
if
(
null
!=
adiUser
){
String
url
=
"http://localhost:8081/
adi/api/user/web/update"
;
String
url
=
u
+
"
adi/api/user/web/update"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"expriedTime"
,
contract
.
getEndDate
()
+
" 00:00:00"
);
conditions
.
put
(
"expriedTime"
,
contract
.
getEndDate
()
+
" 00:00:00"
);
conditions
.
put
(
"constractStartTime"
,
contract
.
getStartDate
()
+
" 00:00:00"
);
conditions
.
put
(
"constractStartTime"
,
contract
.
getStartDate
()
+
" 00:00:00"
);
...
@@ -146,7 +147,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -146,7 +147,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
private
List
<
ADIUser
>
getAllAccount
()
throws
JSONException
{
private
List
<
ADIUser
>
getAllAccount
()
throws
JSONException
{
List
<
ADIUser
>
list
=
new
ArrayList
<>();
List
<
ADIUser
>
list
=
new
ArrayList
<>();
String
url
=
"http://localhost:8081/
adi/api/user/web/list"
;
String
url
=
u
+
"
adi/api/user/web/list"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"type"
,
""
);
conditions
.
put
(
"type"
,
""
);
conditions
.
put
(
"status"
,
""
);
conditions
.
put
(
"status"
,
""
);
...
@@ -319,7 +320,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -319,7 +320,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
}
}
@Override
@Override
public
ADIUser
findOne
(
String
email
)
{
public
ADIUser
findOne
(
String
email
)
{
String
url
=
"http://localhost:8081/
adi/api/user/web/one"
;
String
url
=
u
+
"
adi/api/user/web/one"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"field"
,
"email"
);
conditions
.
put
(
"field"
,
"email"
);
conditions
.
put
(
"value"
,
email
);
conditions
.
put
(
"value"
,
email
);
...
@@ -368,11 +369,11 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -368,11 +369,11 @@ public class ADIAccountServiceImpl implements ADIAccountService {
contract
.
setStatus
(
"executing"
);
contract
.
setStatus
(
"executing"
);
contractRepository
.
save
(
contract
);
contractRepository
.
save
(
contract
);
}
}
String
url
=
"http://localhost:8081/
adi/api/user/web/update"
;
String
url
=
u
+
"
adi/api/user/web/update"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"expriedTime"
,
null
);
conditions
.
put
(
"expriedTime"
,
null
);
conditions
.
put
(
"constractStartTime"
,
null
);
conditions
.
put
(
"constractStartTime"
,
null
);
conditions
.
put
(
"
status"
,
"1
"
);
conditions
.
put
(
"
useStatus"
,
"0
"
);
conditions
.
put
(
"id"
,
resource
.
getAccountId
().
toString
());
conditions
.
put
(
"id"
,
resource
.
getAccountId
().
toString
());
// conditions.put("keyw","");
// conditions.put("keyw","");
String
request
=
HttpClientUtil
.
doHttpPostRequest
(
url
,
""
,
conditions
,
"utf-8"
);
String
request
=
HttpClientUtil
.
doHttpPostRequest
(
url
,
""
,
conditions
,
"utf-8"
);
...
@@ -406,11 +407,11 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -406,11 +407,11 @@ public class ADIAccountServiceImpl implements ADIAccountService {
contractRepository
.
save
(
contract
);
contractRepository
.
save
(
contract
);
}
}
String
url
=
"http://localhost:8081/
adi/api/user/web/update"
;
String
url
=
u
+
"
adi/api/user/web/update"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"expriedTime"
,
null
);
conditions
.
put
(
"expriedTime"
,
null
);
conditions
.
put
(
"constractStartTime"
,
null
);
conditions
.
put
(
"constractStartTime"
,
null
);
conditions
.
put
(
"
status"
,
"3
"
);
conditions
.
put
(
"
useStatus"
,
"1
"
);
conditions
.
put
(
"id"
,
resource
.
getAccountId
().
toString
());
conditions
.
put
(
"id"
,
resource
.
getAccountId
().
toString
());
// conditions.put("keyw","");
// conditions.put("keyw","");
String
request
=
HttpClientUtil
.
doHttpPostRequest
(
url
,
""
,
conditions
,
"utf-8"
);
String
request
=
HttpClientUtil
.
doHttpPostRequest
(
url
,
""
,
conditions
,
"utf-8"
);
...
@@ -545,7 +546,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
...
@@ -545,7 +546,7 @@ public class ADIAccountServiceImpl implements ADIAccountService {
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
url
=
"http://localhost:8081/
adi/api/user/web/one"
;
String
url
=
u
+
"
adi/api/user/web/one"
;
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
Map
<
String
,
String
>
conditions
=
new
HashMap
<>();
conditions
.
put
(
"field"
,
"email"
);
conditions
.
put
(
"field"
,
"email"
);
conditions
.
put
(
"value"
,
"zhangshaoyou@reyun.com"
);
conditions
.
put
(
"value"
,
"zhangshaoyou@reyun.com"
);
...
...
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