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 7dd2bafc
authored
Aug 07, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
00
1 parent
ff2e2b89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
code/finance_serv/src/main/java/com/vion/financial/controller/AppendixController.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/controller/AppendixController.java
View file @
7dd2baf
...
...
@@ -12,6 +12,7 @@ import javax.annotation.Resource;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -36,12 +37,12 @@ public class AppendixController extends BaseController{
@PostMapping
(
value
=
"/{contract_unid}/upload/appendixes"
)
@ResponseBody
public
Object
upload
(
AppendixVo
appendixVo
)
{
public
Object
upload
(
AppendixVo
appendixVo
)
{
return
AppendixService
.
upload
(
appendixVo
);
}
@PutMapping
(
value
=
"/{contract_unid}/upload/appendixes"
)
@ResponseBody
public
Object
update
(
Appendix
appendix
)
{
public
Object
update
(
@RequestBody
Appendix
appendix
)
{
return
AppendixService
.
updateAppendix
(
appendix
);
}
...
...
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
7dd2baf
...
...
@@ -211,7 +211,7 @@ public class ContractServiceImpl implements ContractService {
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
for
(
Map
_map:
list_data
)
{
if
(
contractVo
.
getSalesperson_unid
().
equals
(
_map
.
get
(
"user_unid"
)))
{
contractVo
.
setSalesperson_name
((
String
)
_map
.
get
(
"
user
name"
));
contractVo
.
setSalesperson_name
((
String
)
_map
.
get
(
"name"
));
}
}
}
...
...
@@ -234,16 +234,21 @@ public class ContractServiceImpl implements ContractService {
public
void
exportExcel
(
SelectVo
selectVo
,
HttpServletResponse
response
)
{
logger
.
info
(
"========================导出合同Excel表格==========================="
);
List
<
Map
>
list_data
=
null
;
if
(
StringUtils
.
isNotBlank
(
selectVo
.
getSalesperson_name__like
()))
{
String
url
=
financeConfig
.
getAuthurl
();
String
result
=
HttpNetClient
.
doGet
(
url
+
"?username="
+
selectVo
.
getSalesperson_name__like
()
,
null
);
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
()))
{
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
)
{
name
=
(
String
)
_map
.
get
(
"name"
);
if
(
name
.
contains
(
selectVo
.
getSalesperson_name__like
()))
{
salesperson_unids
.
add
((
String
)
_map
.
get
(
"user_unid"
));
}
}
selectVo
.
setSalesperson_unids
(
salesperson_unids
);
}
}
...
...
@@ -252,7 +257,7 @@ public class ContractServiceImpl implements ContractService {
if
(
list_data
!=
null
&&
list_data
.
size
()
>
0
)
{
for
(
Map
_map:
list_data
)
{
if
(
exportModel
.
getSalesperson_unid
().
equals
(
_map
.
get
(
"user_unid"
)))
{
exportModel
.
setSalesperson_name
((
String
)
_map
.
get
(
"
user
name"
));
exportModel
.
setSalesperson_name
((
String
)
_map
.
get
(
"name"
));
}
}
}
...
...
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