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 b7585c48
authored
Aug 08, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
45646145853254
1 parent
7dcc6ea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 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 @
b7585c4
...
...
@@ -187,26 +187,31 @@ public class ContractServiceImpl implements ContractService {
List
<
Map
>
list_city
=
null
;
List
<
Map
>
list_county
=
null
;
int
count
=
0
;
// 调用auth服务的接口获取用户列表信息
String
url
=
financeConfig
.
getAuthurl
();
String
result
=
HttpNetClient
.
doGet
(
url
,
null
);
Map
map
=
JavaBean2Json
.
Json2JavaBean
(
result
,
Map
.
class
);
list_data
=
(
List
<
Map
>)
map
.
get
(
"list_data"
);
if
(
StringUtils
.
isNotBlank
(
selectVo
.
getSalesperson_name__like
()))
{
// 调用auth服务的接口获取用户列表信息
String
url
=
financeConfig
.
getAuthurl
();
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"
);
List
<
String
>
salesperson_unids
=
new
ArrayList
<
String
>();
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
List
<
String
>
salesperson_unids
=
new
ArrayList
<
String
>(
list_data
.
size
())
;
String
name
=
""
;
for
(
Map
_map:
list_data
)
{
salesperson_unids
.
add
((
String
)
_map
.
get
(
"user_unid"
));
name
=
(
String
)
_map
.
get
(
"name"
);
if
(
name
!=
null
&&
name
.
contains
(
selectVo
.
getSalesperson_name__like
()))
{
salesperson_unids
.
add
((
String
)
_map
.
get
(
"user_unid"
));
}
}
selectVo
.
setSalesperson_unids
(
salesperson_unids
);
}
else
{
selectVo
.
setSalesperson_unids
(
salesperson_unids
.
size
()
>
0
?
salesperson_unids
:
null
);
}
if
(
salesperson_unids
.
size
()
==
0
)
{
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
;
}
}
count
=
contractMapper
.
count
(
selectVo
);
List
<
ContractVo
>
list
=
contractMapper
.
selectByCondition
(
selectVo
);
...
...
@@ -215,9 +220,11 @@ public class ContractServiceImpl implements ContractService {
//contractVo.setPaymentAgree_list(paymentAgreeMapper.queryPaymentAgree(contractVo.getContract_unid()));
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
for
(
Map
_map:
list_data
)
{
if
(
contractVo
.
getSalesperson_unid
()!=
null
)
{
if
(
contractVo
.
getSalesperson_unid
().
equals
(
_map
.
get
(
"user_unid"
)))
{
contractVo
.
setSalesperson_name
((
String
)
_map
.
get
(
"name"
));
}
}
}
}
if
(
contractVo
.
getProduct_line_type
()!=
null
)
{
...
...
@@ -280,9 +287,11 @@ public class ContractServiceImpl implements ContractService {
for
(
ContractVo
contractVo
:
list
)
{
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
for
(
Map
_map:
list_data
)
{
if
(
contractVo
.
getSalesperson_unid
()!=
null
)
{
if
(
contractVo
.
getSalesperson_unid
().
equals
(
_map
.
get
(
"user_unid"
)))
{
contractVo
.
setSalesperson_name
((
String
)
_map
.
get
(
"name"
));
}
}
}
}
if
(
list_province
!=
null
&&
list_province
.
size
()
>
0
)
{
...
...
@@ -369,11 +378,11 @@ public class ContractServiceImpl implements ContractService {
*/
if
(
StringUtils
.
isNotBlank
(
selectVo
.
getSalesperson_name__like
()))
{
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
List
<
String
>
salesperson_unids
=
new
ArrayList
<
String
>(
list_data
.
size
()
);
List
<
String
>
salesperson_unids
=
new
ArrayList
<
String
>();
String
name
=
""
;
for
(
Map
_map:
list_data
)
{
name
=
(
String
)
_map
.
get
(
"name"
);
if
(
name
.
contains
(
selectVo
.
getSalesperson_name__like
()))
{
if
(
name
!=
null
&&
name
.
contains
(
selectVo
.
getSalesperson_name__like
()))
{
salesperson_unids
.
add
((
String
)
_map
.
get
(
"user_unid"
));
}
}
...
...
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