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
78243f43
Commit
78243f43
authored
Aug 29, 2022
by
Tkunkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改装备异常显示
parent
a7cd10d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
52 deletions
+55
-52
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+9
-6
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+46
-46
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
78243f43
...
...
@@ -35,6 +35,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
...
...
@@ -197,9 +198,9 @@ public class EquipmentDetailController extends AbstractBaseController {
if
(!
equipmentParams
.
isEmpty
()){
EquipmentParams
equipmentParam
=
equipmentParams
.
get
(
0
);
equipmentDetail
.
setStatus
(
equipmentParam
.
getStatus
());
}
else
{
equipmentDetail
.
setStatus
(
"正常"
);
}
equipmentDetail
.
setStatus
(
"正常"
);
StockDetail
stockDetail
=
null
;
if
(
stockDetailId
!=
null
){
//解决灭火药剂,有多个货位状态问题
...
...
@@ -607,18 +608,20 @@ public class EquipmentDetailController extends AbstractBaseController {
*/
@ApiOperation
(
value
=
"导出装备清单"
,
notes
=
"导出装备清单"
)
@PostMapping
(
value
=
"/export"
)
@PostMapping
(
value
=
"/export"
,
produces
=
"application/json;charset=UTF-8"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
public
void
exportDangerList
(
@RequestBody
List
<
DetailssAmountVO
>
detailssAmountVO
,
@RequestParam
Integer
prop
,
HttpServletResponse
response
)
{
String
fileName
=
"装备清单"
+
new
Date
().
getTime
();
String
fileName
=
new
Date
().
toString
();
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
String
format
=
formatter
.
format
(
new
Date
());
if
(
prop
==
1
){
//全部导出
List
<
DetailssAmountVO
>
getall
=
iEquipmentDetailService
.
getall
();
List
<
DetailssAmountVO
>
detailssAmountVOS
=
this
.
selectReasonMeasure
(
getall
);
FileHelper
.
exportExcel
(
detailssAmountVOS
,
"装备清单"
,
"装备清单"
,
DetailssAmountVO
.
class
,
f
ileName
+
".xls"
,
response
);
FileHelper
.
exportExcel
(
detailssAmountVOS
,
"装备清单"
,
"装备清单"
,
DetailssAmountVO
.
class
,
f
ormat
+
".xls"
,
response
);
}
else
{
//仅仅导出筛选结果的数据
List
<
DetailssAmountVO
>
detailssAmountVOS
=
this
.
selectReasonMeasure
(
detailssAmountVO
);
FileHelper
.
exportExcel
(
detailssAmountVOS
,
"装备清单"
,
"装备清单"
,
DetailssAmountVO
.
class
,
f
ileName
+
".xls"
,
response
);
FileHelper
.
exportExcel
(
detailssAmountVOS
,
"装备清单"
,
"装备清单"
,
DetailssAmountVO
.
class
,
f
ormat
+
".xls"
,
response
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
78243f43
This diff is collapsed.
Click to expand it.
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