Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
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
王衍超
cloud-fb
Commits
47fb12a2
Commit
47fb12a2
authored
Apr 27, 2021
by
杨清松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账单明细导出
parent
3e0e4d88
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
3 deletions
+41
-3
StatementAccountServiceImpl.java
...finance/internal/service/StatementAccountServiceImpl.java
+0
-0
StatementAccountService.java
...m/xyst/dinas/finance/service/StatementAccountService.java
+6
-1
StatementAccountController.java
...om/xyst/dinas/finance/web/StatementAccountController.java
+35
-2
statementAccount.xlsx
...finance/src/main/resources/template/statementAccount.xlsx
+0
-0
No files found.
backend/xyst.dinas.finance/src/main/java/com/xyst/dinas/finance/internal/service/StatementAccountServiceImpl.java
View file @
47fb12a2
This diff is collapsed.
Click to expand it.
backend/xyst.dinas.finance/src/main/java/com/xyst/dinas/finance/service/StatementAccountService.java
View file @
47fb12a2
package
com
.
xyst
.
dinas
.
finance
.
service
;
import
java.util.Map
;
import
java.util.UUID
;
import
javax.servlet.http.HttpServletResponse
;
import
org.json.JSONObject
;
public
interface
StatementAccountService
{
Object
queryStatementAccountByContractId
(
JSONObject
jsonObject
);
Map
<
String
,
Object
>
queryStatementAccountByContractId
(
JSONObject
jsonObject
);
void
exportStatementAccountDetails
(
HttpServletResponse
response
,
JSONObject
param
);
}
backend/xyst.dinas.finance/src/main/java/com/xyst/dinas/finance/web/StatementAccountController.java
View file @
47fb12a2
package
com
.
xyst
.
dinas
.
finance
.
web
;
import
java.io.IOException
;
import
java.util.Map
;
import
java.util.UUID
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -12,10 +17,11 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.xyst.dinas.finance.service.StatementAccountService
;
/**
*
费用调整
*
对账单
*
* @author yangqingsong
* @date 2021年4月25日
...
...
@@ -30,7 +36,34 @@ public class StatementAccountController {
@ResponseBody
@RequestMapping
(
value
=
"/sand/user/finance/statementAccount/queryStatementAccountByContractId"
,
method
=
RequestMethod
.
POST
)
public
Object
queryStatementAccountByContractId
(
@RequestBody
String
body
)
{
return
statementAccountService
.
queryStatementAccountByContractId
(
new
JSONObject
(
body
));
try
{
Map
<
String
,
Object
>
statementAccountByContract
=
statementAccountService
.
queryStatementAccountByContractId
(
new
JSONObject
(
body
));
return
ResponseObj
.
success
(
"查询成功"
,
statementAccountByContract
);
}
catch
(
Exception
e
)
{
return
ResponseObj
.
error
();
}
}
@ResponseBody
@RequestMapping
(
value
=
"/sand/user/finance/exportStatementAccountDetails"
,
method
=
RequestMethod
.
POST
)
public
Object
exportStatementAccountDetails
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
{
request
.
setCharacterEncoding
(
"utf-8"
);
String
exportParamStr
=
request
.
getParameter
(
"exportParamStr"
);
response
.
reset
();
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setContentType
(
"application/x-www-form-urlencoded"
);
JSONObject
obj
=
new
JSONObject
();
try
{
obj
.
put
(
"code"
,
200
);
JSONObject
param
=
new
JSONObject
(
exportParamStr
);
statementAccountService
.
exportStatementAccountDetails
(
response
,
param
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ResponseObj
.
error
();
}
return
obj
.
toString
();
}
}
backend/xyst.dinas.finance/src/main/resources/template/statementAccount.xlsx
0 → 100644
View file @
47fb12a2
File added
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