Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 32d32e5a
authored
Aug 02, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[更新]
1 parent
f1804a7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
32d32e5
...
...
@@ -172,12 +172,13 @@ public class ContractServiceImpl implements ContractService {
public
Object
selectByCondition
(
SelectVo
selectVo
)
{
// TODO Auto-generated method stub
try
{
ResultVo
resultVo
=
new
ResultVo
();
logger
.
info
(
"========================筛选合同列表==========================="
);
List
<
Map
>
list_data
=
null
;
if
(
StringUtils
.
isNotBlank
(
selectVo
.
getSalesperson_name__like
()))
{
// 调用auth服务的接口获取用户列表信息
String
url
=
financeConfig
.
getAuthurl
();
String
result
=
HttpNetClient
.
doGet
(
url
,
null
);
String
result
=
HttpNetClient
.
doGet
(
url
+
"?username="
+
selectVo
.
getSalesperson_name__like
()
,
null
);
Map
map
=
JavaBean2Json
.
Json2JavaBean
(
result
,
Map
.
class
);
list_data
=
(
List
<
Map
>)
map
.
get
(
"list_data"
);
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
...
...
@@ -186,6 +187,12 @@ public class ContractServiceImpl implements ContractService {
salesperson_unids
.
add
((
String
)
_map
.
get
(
"user_unid"
));
}
selectVo
.
setSalesperson_unids
(
salesperson_unids
);
}
else
{
resultVo
.
setList_data
(
new
ArrayList
<>());
resultVo
.
setList_size
(
selectVo
.
getLimit
()==
null
?
0
:
selectVo
.
getLimit
());
resultVo
.
setOffset
(
selectVo
.
getOffset
()==
null
?
0
:
selectVo
.
getOffset
());
resultVo
.
setTotal_number
(
0
);
return
resultVo
;
}
}
...
...
@@ -200,7 +207,6 @@ public class ContractServiceImpl implements ContractService {
}
}
}
ResultVo
resultVo
=
new
ResultVo
();
resultVo
.
setList_data
(
list
);
resultVo
.
setList_size
(
selectVo
.
getLimit
());
resultVo
.
setOffset
(
selectVo
.
getOffset
());
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment