Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
50cc60f1
Commit
50cc60f1
authored
Dec 14, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
值班模板模板导出接口传参修改
parent
8e1ad251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+7
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/ExcelController.java
View file @
50cc60f1
...
@@ -9,10 +9,12 @@ import com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataSourcesImpl;
...
@@ -9,10 +9,12 @@ import com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataSourcesImpl;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ExcelServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ExcelServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.json.JSONObject
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestPart
;
import
org.springframework.web.bind.annotation.RequestPart
;
...
@@ -168,9 +170,12 @@ public class ExcelController extends BaseController {
...
@@ -168,9 +170,12 @@ public class ExcelController extends BaseController {
@ApiOperation
(
value
=
"导出值班模板"
,
notes
=
"导出值班模板"
)
@ApiOperation
(
value
=
"导出值班模板"
,
notes
=
"导出值班模板"
)
@PostMapping
(
value
=
"/duty_template"
)
@PostMapping
(
value
=
"/duty_template"
)
public
void
dutyCarTemplate
(
HttpServletResponse
response
,
@RequestParam
(
"beginDate"
)
String
beginDate
,
public
void
dutyCarTemplate
(
HttpServletResponse
response
,
@RequestParam
(
"beginDate"
)
String
beginDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
ExcelDto
excelDto
,
@Request
Param
(
"ids"
)
String
ids
)
{
@RequestParam
(
"endDate"
)
String
endDate
,
ExcelDto
excelDto
,
@Request
Body
String
ids
)
{
try
{
try
{
excelService
.
dutyTemplateExport
(
response
,
beginDate
,
endDate
,
excelDto
,
ids
);
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNotEmpty
(
ids
))
{
ids
=
ids
.
substring
(
1
,
ids
.
length
()-
1
);
excelService
.
dutyTemplateExport
(
response
,
beginDate
,
endDate
,
excelDto
,
ids
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
RuntimeException
(
"系统异常!"
);
throw
new
RuntimeException
(
"系统异常!"
);
...
...
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