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
5a0edc86
Commit
5a0edc86
authored
Jul 04, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出
parent
96dcc615
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ContractController.java
src/main/java/common/controller/ContractController.java
+7
-2
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+1
-0
No files found.
src/main/java/common/controller/ContractController.java
View file @
5a0edc86
...
@@ -49,6 +49,8 @@ public class ContractController {
...
@@ -49,6 +49,8 @@ public class ContractController {
putdata
(
this
,
ContractStatusEnum
.
END
);
putdata
(
this
,
ContractStatusEnum
.
END
);
putdata
(
this
,
ContractStatusEnum
.
CANCEL
);
putdata
(
this
,
ContractStatusEnum
.
CANCEL
);
putdata
(
this
,
ContractStatusEnum
.
NFORMAL
);
putdata
(
this
,
ContractStatusEnum
.
NFORMAL
);
putdata
(
this
,
ContractStatusEnum
.
SUSPEND
);
putdata
(
this
,
ContractStatusEnum
.
LATE
);
putdata
(
this
,
ContractStatusEnum
.
BACK_ALL
);
putdata
(
this
,
ContractStatusEnum
.
BACK_ALL
);
putdata
(
this
,
ContractStatusEnum
.
BACK_NONE
);
putdata
(
this
,
ContractStatusEnum
.
BACK_NONE
);
putdata
(
this
,
ContractStatusEnum
.
BACK_PART
);
putdata
(
this
,
ContractStatusEnum
.
BACK_PART
);
...
@@ -450,16 +452,19 @@ public class ContractController {
...
@@ -450,16 +452,19 @@ public class ContractController {
@RequestParam
String
startDate
,
@RequestParam
String
endDate
,
@RequestParam
String
startDate
,
@RequestParam
String
endDate
,
String
bodyCode
,
String
serchName
,
HttpServletResponse
response
,
HttpServletRequest
request
)
{
String
bodyCode
,
String
serchName
,
HttpServletResponse
response
,
HttpServletRequest
request
)
{
List
<
Contract
>
contracts
=
service
.
shareIncomeList
(
loginAccount
,
startDate
,
endDate
,
platform
,
bodyCode
,
serchName
);
List
<
Contract
>
contracts
=
s
hareIncomeS
ervice
.
shareIncomeList
(
loginAccount
,
startDate
,
endDate
,
platform
,
bodyCode
,
serchName
);
byte
[]
content
=
new
byte
[
0
];
byte
[]
content
=
new
byte
[
0
];
DecimalFormat
df
=
new
DecimalFormat
(
"##,##0.00"
);
DecimalFormat
df
=
new
DecimalFormat
(
"##,##0.00"
);
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"我方签约主体,签约方,合同编号,合同金额,不含税收入,合同开始时间,合同截止时间,区间使用天数,区间分摊收入,调整额,分摊总收入\r\n"
);
/*sb.append("我方签约主体,签约方,合同编号,合同金额,不含税收入,合同开始时间,合同截止时间,区间使用天数,区间分摊收入,调整额,分摊总收入\r\n");*/
sb
.
append
(
"我方签约主体,签约方,合同编号,合同状态,合同金额,不含税收入,合同开始日期,合同截止日期,区间使用天数,区间分摊收入,调整额,分摊总收入\r\n"
);
if
(
ValidateUtil
.
isValid
(
contracts
))
{
if
(
ValidateUtil
.
isValid
(
contracts
))
{
for
(
Contract
c
:
contracts
)
{
for
(
Contract
c
:
contracts
)
{
sb
.
append
(
c
.
getMyBodyName
()).
append
(
","
)
sb
.
append
(
c
.
getMyBodyName
()).
append
(
","
)
.
append
(
c
.
getCustomerBody
()).
append
(
","
)
.
append
(
c
.
getCustomerBody
()).
append
(
","
)
.
append
(
c
.
getContractCode
()).
append
(
","
)
.
append
(
c
.
getContractCode
()).
append
(
","
)
.
append
(
CONTRACT_STATUS
.
get
(
c
.
getStatus
())).
append
(
","
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getMoney
())).
append
(
"\","
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getMoney
())).
append
(
"\","
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)).
append
(
"\","
)
.
append
(
"\""
).
append
(
df
.
format
(
c
.
getIncomeExcludingTax
()
*
1.0
/
100
)).
append
(
"\","
)
.
append
(
c
.
getStartDate
()).
append
(
","
)
.
append
(
c
.
getStartDate
()).
append
(
","
)
...
...
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
5a0edc86
...
@@ -2405,6 +2405,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2405,6 +2405,7 @@ public class ContractServiceImpl implements ContractService {
return
true
;
return
true
;
}
}
@Deprecated
@Override
@Override
public
List
<
Contract
>
shareIncomeList
(
User
loginAccount
,
String
startDate
,
String
endDate
,
String
public
List
<
Contract
>
shareIncomeList
(
User
loginAccount
,
String
startDate
,
String
endDate
,
String
platform
,
String
bodyCode
,
String
serchName
)
{
platform
,
String
bodyCode
,
String
serchName
)
{
...
...
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