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
7144747a
Commit
7144747a
authored
Jul 20, 2022
by
Tkunkun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
poi 版本修改 3.0.3修改为4.0.0
parent
64eb0249
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
110 additions
and
19 deletions
+110
-19
pom.xml
amos-boot-biz-common/pom.xml
+2
-2
Equipment.java
...java/com/yeejoin/equipmanage/common/entity/Equipment.java
+50
-4
pom.xml
...ule/amos-boot-module-api/amos-boot-module-fas-api/pom.xml
+3
-3
pom.xml
...boot-module-api/amos-boot-module-latentdanger-api/pom.xml
+3
-3
pom.xml
...-boot-module-api/amos-boot-module-maintenance-api/pom.xml
+3
-3
pom.xml
.../amos-boot-module-api/amos-boot-module-patrol-api/pom.xml
+3
-3
EquipmentController.java
...m/yeejoin/equipmanage/controller/EquipmentController.java
+45
-0
pom.xml
...boot-module-biz/amos-boot-module-latentdanger-biz/pom.xml
+1
-1
No files found.
amos-boot-biz-common/pom.xml
View file @
7144747a
...
@@ -106,12 +106,12 @@
...
@@ -106,12 +106,12 @@
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<!-- itext pdf相关 -->
<!-- itext pdf相关 -->
<dependency>
<dependency>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/Equipment.java
View file @
7144747a
package
com
.
yeejoin
.
equipmanage
.
common
.
entity
;
package
com
.
yeejoin
.
equipmanage
.
common
.
entity
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -27,24 +29,69 @@ public class Equipment extends BaseEntity {
...
@@ -27,24 +29,69 @@ public class Equipment extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"装备名称"
)
@ApiModelProperty
(
value
=
"装备名称"
)
@TableField
(
"name"
)
@Excel
(
name
=
"装备名称"
,
width
=
20
,
orderNum
=
"1"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"装备编码"
)
@ApiModelProperty
(
value
=
"装备编码"
)
@TableField
(
"code"
)
@Excel
(
name
=
"装备编码"
,
width
=
20
,
orderNum
=
"2"
)
private
String
code
;
private
String
code
;
@ApiModelProperty
(
value
=
"装备分类id"
)
@ApiModelProperty
(
value
=
"装备分类id"
)
@TableField
(
"category_id"
)
@Excel
(
name
=
"装备分类id"
,
width
=
20
,
orderNum
=
"3"
)
private
Long
categoryId
;
private
Long
categoryId
;
@ApiModelProperty
(
value
=
"国别"
)
@ApiModelProperty
(
value
=
"装备型号"
)
@Excel
(
name
=
"装备型号"
,
width
=
20
,
orderNum
=
"4"
)
@TableField
(
"country"
)
private
String
country
;
private
String
country
;
@ApiModelProperty
(
value
=
"存放位置"
)
@Excel
(
name
=
"存放位置"
,
width
=
20
,
orderNum
=
"5"
)
@TableField
(
"area"
)
private
String
area
;
@ApiModelProperty
(
value
=
"生产厂家"
)
@Excel
(
name
=
"生产厂家"
,
width
=
20
,
orderNum
=
"6"
)
@TableField
(
"made_in"
)
private
String
madeIn
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"open_time"
)
@ApiModelProperty
(
value
=
"出厂时间"
)
@Excel
(
name
=
"出厂时间"
,
width
=
20
,
orderNum
=
"7"
)
private
Date
openTime
;
@ApiModelProperty
(
value
=
"工作时间"
)
@Excel
(
name
=
"工作时间"
,
width
=
20
,
orderNum
=
"8"
)
@TableField
(
"remark"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"所属单位"
)
@TableField
(
"company_name"
)
@Excel
(
name
=
"所属单位"
,
width
=
20
,
orderNum
=
"9"
)
private
String
companyName
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@TableField
(
"join_time"
)
@ApiModelProperty
(
value
=
"入库时间"
)
@Excel
(
name
=
"入库时间"
,
width
=
20
,
orderNum
=
"10"
)
private
Date
joinTime
;
@ApiModelProperty
(
value
=
"保养周期"
)
@ApiModelProperty
(
value
=
"保养周期"
)
private
Short
maintenanceCycle
;
private
Short
maintenanceCycle
;
@ApiModelProperty
(
value
=
"检查周期(天)"
)
@ApiModelProperty
(
value
=
"检查周期(天)"
)
private
Short
checkCycle
;
private
Short
checkCycle
;
private
String
remark
;
@ApiModelProperty
(
value
=
"管理方式 单件还是批量管理模式,单件S,批量:P"
)
@ApiModelProperty
(
value
=
"管理方式 单件还是批量管理模式,单件S,批量:P"
)
private
Long
managementStyle
;
private
Long
managementStyle
;
...
@@ -62,8 +109,7 @@ public class Equipment extends BaseEntity {
...
@@ -62,8 +109,7 @@ public class Equipment extends BaseEntity {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
Unit
unit
;
private
Unit
unit
;
@ApiModelProperty
(
value
=
"生产源地 0国产1进口9其他"
)
private
String
madeIn
;
@ApiModelProperty
(
value
=
"生产厂家"
)
@ApiModelProperty
(
value
=
"生产厂家"
)
private
String
manufacturer
;
private
String
manufacturer
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-fas-api/pom.xml
View file @
7144747a
...
@@ -26,17 +26,17 @@
...
@@ -26,17 +26,17 @@
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<groupId>
org.jsoup
</groupId>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/pom.xml
View file @
7144747a
...
@@ -25,17 +25,17 @@
...
@@ -25,17 +25,17 @@
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<groupId>
org.jsoup
</groupId>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/pom.xml
View file @
7144747a
...
@@ -21,17 +21,17 @@
...
@@ -21,17 +21,17 @@
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<groupId>
org.jsoup
</groupId>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/pom.xml
View file @
7144747a
...
@@ -25,17 +25,17 @@
...
@@ -25,17 +25,17 @@
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
<groupId>
org.jsoup
</groupId>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentController.java
View file @
7144747a
...
@@ -3,12 +3,15 @@ package com.yeejoin.equipmanage.controller;
...
@@ -3,12 +3,15 @@ package com.yeejoin.equipmanage.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.equipmanage.common.entity.*
;
import
com.yeejoin.equipmanage.common.entity.*
;
import
com.yeejoin.equipmanage.common.entity.dto.ImportantEquipmentListDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.ImportantEquipmentListDTO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentAppVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentAppVO
;
import
com.yeejoin.equipmanage.common.entity.vo.ImportantEquipmentVO
;
import
com.yeejoin.equipmanage.common.entity.vo.ImportantEquipmentVO
;
import
com.yeejoin.equipmanage.common.enums.IndustryEnum
;
import
com.yeejoin.equipmanage.common.enums.IndustryEnum
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.common.utils.ExcelUtils
;
import
com.yeejoin.equipmanage.common.utils.FileHelper
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.vo.*
;
import
com.yeejoin.equipmanage.common.vo.*
;
import
com.yeejoin.equipmanage.mapper.*
;
import
com.yeejoin.equipmanage.mapper.*
;
...
@@ -16,11 +19,14 @@ import com.yeejoin.equipmanage.service.AbstractQRCodeFactory;
...
@@ -16,11 +19,14 @@ import com.yeejoin.equipmanage.service.AbstractQRCodeFactory;
import
com.yeejoin.equipmanage.service.IEquipmentService
;
import
com.yeejoin.equipmanage.service.IEquipmentService
;
import
com.yeejoin.equipmanage.service.IQRCodeService
;
import
com.yeejoin.equipmanage.service.IQRCodeService
;
import
com.yeejoin.equipmanage.service.IUploadFileService
;
import
com.yeejoin.equipmanage.service.IUploadFileService
;
import
com.yeejoin.equipmanage.service.impl.EquipmentDetailServiceImpl
;
import
com.yeejoin.equipmanage.service.impl.EquipmentServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -29,6 +35,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -29,6 +35,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.*
;
import
java.util.*
;
/**
/**
...
@@ -48,6 +55,9 @@ public class EquipmentController extends AbstractBaseController {
...
@@ -48,6 +55,9 @@ public class EquipmentController extends AbstractBaseController {
private
EquipmentMapper
equipmentMapper
;
private
EquipmentMapper
equipmentMapper
;
@Autowired
@Autowired
private
EquipmentDetailMapper
equipmentDetailMapper
;
private
EquipmentDetailMapper
equipmentDetailMapper
;
@Autowired
private
EquipmentServiceImpl
equipmentService
;
@Autowired
@Autowired
private
CarMapper
carMapper
;
private
CarMapper
carMapper
;
@Autowired
@Autowired
...
@@ -667,4 +677,39 @@ public class EquipmentController extends AbstractBaseController {
...
@@ -667,4 +677,39 @@ public class EquipmentController extends AbstractBaseController {
public
List
<
Equipment
>
listAll
()
{
public
List
<
Equipment
>
listAll
()
{
return
iEquipmentService
.
getAll
();
return
iEquipmentService
.
getAll
();
}
}
/**
* 导出隐患清单
*/
/**
* @ApiParam(value = "导出装备的数据") @RequestBody(required = false) List<EquipmentDate> equipmentDate,
* @ApiParam(value = "是否全部导出" ) @RequestParam(required = false) boolean type,
*/
@ApiOperation
(
value
=
"导出装备清单"
,
notes
=
"导出装备清单"
)
@GetMapping
(
value
=
"/export"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
public
void
exportDangerList
(
HttpServletResponse
response
)
{
/* AgencyUserModel user = getUserInfo();
if (ObjectUtils.isEmpty(user)) {
throw new RuntimeException("用户session过期");
}*/
// pageParam.setPageSize(Integer.MAX_VALUE);
// List<DangerListResponse> list = iLatentDangerService.export(pageParam);
/*List<TestEntity> testEntities = new ArrayList<>();
TestEntity testEntity = new TestEntity();
testEntity.setName("1111");
testEntity.setSex("222");
testEntities.add(testEntity);
TestEntity testEntity2 = new TestEntity();
testEntity2.setName("1111");
testEntity2.setSex("2222");
testEntities.add(testEntity2);*/
List
<
Equipment
>
list
=
equipmentService
.
list
();
String
fileName
=
"装备清单"
+
new
Date
().
getTime
();
FileHelper
.
exportExcel
(
list
,
"装备清单"
,
"装备清单"
,
Equipment
.
class
,
fileName
+
".xls"
,
response
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/pom.xml
View file @
7144747a
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<dependency>
<dependency>
<groupId>
org.apache.poi
</groupId>
<groupId>
org.apache.poi
</groupId>
<artifactId>
poi-scratchpad
</artifactId>
<artifactId>
poi-scratchpad
</artifactId>
<version>
3.15
</version>
<version>
4.0.0
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
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