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
df900faf
Commit
df900faf
authored
Dec 07, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6_temp' into develop_dl_plan6_temp
parents
3e89f929
5ce87ed5
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
430 additions
and
101 deletions
+430
-101
OrgUsrDlExcelDto.java
...oin/amos/boot/module/common/api/dto/OrgUsrDlExcelDto.java
+1
-0
OrgUsrExcelDto.java
...ejoin/amos/boot/module/common/api/dto/OrgUsrExcelDto.java
+1
-0
EquipmentSpecificIndex.java
...oin/equipmanage/common/entity/EquipmentSpecificIndex.java
+3
-0
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+3
-1
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+17
-1
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+54
-3
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+16
-1
EquipDataDto.java
...c/main/java/com/yeejoin/equipmanage/dto/EquipDataDto.java
+80
-0
EquipmentDetailDownloadTemplateDto.java
...n/equipmanage/dto/EquipmentDetailDownloadTemplateDto.java
+4
-4
EquipmentDetailExcelSingleTemplateDto.java
...quipmanage/dto/EquipmentDetailExcelSingleTemplateDto.java
+14
-9
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+6
-0
IFireFightingSystemService.java
...ejoin/equipmanage/service/IFireFightingSystemService.java
+4
-0
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+0
-2
ExcelServiceImpl.java
...om/yeejoin/equipmanage/service/impl/ExcelServiceImpl.java
+28
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+70
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+9
-3
application.properties
...ot-system-equip/src/main/resources/application.properties
+2
-2
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+1
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+72
-0
application.properties
...boot-system-jcs/src/main/resources/application.properties
+1
-1
pom.xml
amos-boot-system-tdc/amos-boot-module-tdc-api/pom.xml
+0
-35
pom.xml
amos-boot-system-tdc/amos-boot-module-tdc-biz/pom.xml
+5
-5
IdxProjectModel.java
...mos/boot/module/tdc/biz/action/model/IdxProjectModel.java
+0
-1
WebSecurityConfig.java
...in/amos/boot/module/tdc/biz/config/WebSecurityConfig.java
+0
-26
CheckResultImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
+0
-1
application-dev.properties
...ule-tdc-biz/src/main/resources/application-dev.properties
+8
-3
application.properties
...-module-tdc-biz/src/main/resources/application.properties
+14
-0
pom.xml
amos-boot-system-tdc/pom.xml
+17
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/OrgUsrDlExcelDto.java
View file @
df900faf
...
...
@@ -148,6 +148,7 @@ public class OrgUsrDlExcelDto {
@ApiModelProperty
(
value
=
"出生日期"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@com
.
alibaba
.
excel
.
annotation
.
format
.
DateTimeFormat
(
"yyyy-MM-dd"
)
private
Date
birthdayTime
;
//@ExplicitConstraint(indexNum = 18, sourceClass = CommonExplicitConstraint.class, method = "getMaritalStatus") //固定下拉内容
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/OrgUsrExcelDto.java
View file @
df900faf
...
...
@@ -149,6 +149,7 @@ public class OrgUsrExcelDto extends BaseDto {
@ApiModelProperty
(
value
=
"出生日期"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@com
.
alibaba
.
excel
.
annotation
.
format
.
DateTimeFormat
(
"yyyy-MM-dd"
)
private
Date
birthdayTime
;
@ExplicitConstraint
(
indexNum
=
18
,
sourceClass
=
CommonExplicitConstraint
.
class
,
method
=
"getMaritalStatus"
)
//固定下拉内容
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecificIndex.java
View file @
df900faf
...
...
@@ -179,4 +179,7 @@ public class EquipmentSpecificIndex extends BaseEntity {
// 直流中心方便前端刷新展示
@TableField
(
exist
=
false
)
private
String
UUID
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/WaterResourceServiceImpl.java
View file @
df900faf
...
...
@@ -163,7 +163,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
break
;
case
"natural"
:
// 新增基础信息
model
.
setIsIot
(
fals
e
);
model
.
setIsIot
(
tru
e
);
createWithModel
(
model
);
WaterResourceNaturalDto
waterResourceNaturalDto
=
new
WaterResourceNaturalDto
();
BeanUtils
.
copyProperties
(
model
,
waterResourceNaturalDto
);
...
...
@@ -172,6 +172,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourceNaturalService
.
createWithModel
(
waterResourceNaturalDto
);
break
;
case
"industryPool"
:
case
"waterTank"
:
case
"pool"
:
// 新增基础信息
model
.
setIsIot
(
true
);
...
...
@@ -183,6 +184,7 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourcePoolService
.
createWithModel
(
waterResourcePoolDto
);
break
;
}
// 新增物联信息
// if (model.getIsIot()) {
// WaterResourceIotDto waterResourceIotDto = new WaterResourceIotDto();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
df900faf
...
...
@@ -26,6 +26,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -253,7 +254,22 @@ public class ConfigureController extends AbstractBaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
!
ValidationUtil
.
isEmpty
(
reginParams
.
getPersonIdentity
())
&&
StringUtil
.
isNotEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
())
?
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
:
null
;
Page
page
=
new
Page
<>(
commonPageable
.
getPageNumber
(),
commonPageable
.
getPageSize
());
return
CommonResponseUtil
.
success
(
fireFightingSystemMapper
.
getWaterInfo
(
page
,
bizOrgCode
,
null
));
Page
<
Map
<
String
,
Object
>>
waterInfo
=
fireFightingSystemMapper
.
getWaterInfo
(
page
,
bizOrgCode
,
null
);
Map
<
String
,
Object
>
unit
=
fireFightingSystemMapper
.
getWaterlevelUnit
();
if
(
"CM"
.
equals
(
unit
.
get
(
"unit"
))
||
"cm"
.
equals
(
unit
.
get
(
"unit"
))
||
"厘米"
.
equals
(
unit
.
get
(
"unit"
))){
for
(
Map
<
String
,
Object
>
record
:
waterInfo
.
getRecords
())
{
BigDecimal
divide
=
new
BigDecimal
(
100
);
if
(!
ObjectUtils
.
isEmpty
(
record
.
get
(
"nowLevel"
))
&&
!
"--"
.
equals
(
record
.
get
(
"nowLevel"
))){
BigDecimal
nowLevel
=
new
BigDecimal
(
String
.
valueOf
(
record
.
get
(
"nowLevel"
)));
record
.
put
(
"nowLevel"
,
nowLevel
.
divide
(
divide
,
2
,
BigDecimal
.
ROUND_HALF_UP
));
}
if
(!
ObjectUtils
.
isEmpty
(
record
.
get
(
"levelAbs"
))
&&
!
"--"
.
equals
(
record
.
get
(
"nowLevel"
))){
BigDecimal
levelAbs
=
new
BigDecimal
(
String
.
valueOf
(
record
.
get
(
"levelAbs"
)));
record
.
put
(
"levelAbs"
,
levelAbs
.
divide
(
divide
,
2
,
BigDecimal
.
ROUND_HALF_UP
));
}
}
}
return
CommonResponseUtil
.
success
(
waterInfo
);
}
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
df900faf
...
...
@@ -70,6 +70,8 @@ public class EquipmentDetailController extends AbstractBaseController {
IEquipmentDetailService
iEquipmentDetailService
;
@Autowired
IFireFightingSystemService
fireFightingSystemService
;
@Autowired
EquipmentDetailMapper
equipmentDetailMapper
;
@Autowired
private
StockDetailMapper
stockDetailMapper
;
...
...
@@ -110,6 +112,8 @@ public class EquipmentDetailController extends AbstractBaseController {
@Autowired
private
RedisUtils
redisUtils
;
@Value
(
"${equip.enabled}"
)
private
Boolean
enabled
;
@Value
(
"${iot.code.prefix.have.used:20210003,20210004,20210005}"
)
...
...
@@ -233,7 +237,43 @@ public class EquipmentDetailController extends AbstractBaseController {
return
equipmentDate
;
}
@RequestMapping
(
value
=
"/selectequipmentDateByCode"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据code查询"
,
notes
=
"根据code查询"
)
public
EquipmentDate
selectequipmentDateByCode
(
@RequestParam
String
code
,
@RequestParam
(
required
=
false
)
Long
stockDetailId
)
{
EquipmentDate
equipmentDate
=
new
EquipmentDate
();
EquipmentSpecific
equipmentSpecific
=
equipmentSpecificSerivce
.
getBaseMapper
().
selectOne
(
new
QueryWrapper
<
EquipmentSpecific
>().
eq
(
"code"
,
code
));
if
(!
ObjectUtils
.
isEmpty
(
equipmentSpecific
.
getSystemId
())){
FireFightingSystemEntity
fightingSystemEntity
=
fireFightingSystemService
.
getOneById
(
Long
.
valueOf
(
equipmentSpecific
.
getSystemId
()));
equipmentSpecific
.
setSystemId
(
fightingSystemEntity
.
getName
());
}
else
{
equipmentSpecific
.
setSystemId
(
""
);
}
FireFightingSystemEntity
fightingSystemEntity
=
fireFightingSystemService
.
getOneById
(
Long
.
valueOf
(
equipmentSpecific
.
getSystemId
()));
equipmentSpecific
.
setSystemId
(
fightingSystemEntity
.
getName
());
equipmentSpecific
.
setFullqrCode
(
"01#"
+
equipmentSpecific
.
getQrCode
());
EquipmentDetail
equipmentDetail
=
iEquipmentDetailService
.
getOneById
(
equipmentSpecific
.
getEquipmentDetailId
());
StockDetail
stockDetail
=
null
;
if
(
stockDetailId
!=
null
)
{
//解决灭火药剂,有多个货位状态问题
stockDetail
=
stockDetailMapper
.
selectById
(
stockDetailId
);
equipmentSpecific
.
setStockDetail
(
stockDetail
);
}
else
{
//消防装备默认分支
List
<
StockDetail
>
stockDetails
=
stockDetailMapper
.
selectList
(
new
LambdaQueryWrapper
<
StockDetail
>().
eq
(
StockDetail:
:
getEquipmentSpecificId
,
equipmentSpecific
.
getId
()));
if
(!
stockDetails
.
isEmpty
())
{
stockDetail
=
stockDetails
.
get
(
0
);
equipmentSpecific
.
setStockDetail
(
stockDetail
);
}
}
if
(
stockDetail
!=
null
)
{
equipmentSpecific
.
setStock
(
iStockService
.
getById
(
stockDetail
.
getStockId
()));
}
equipmentDate
.
setEquipmentDetail
(
equipmentDetail
);
equipmentDate
.
setEquipmentSpecific
(
equipmentSpecific
);
return
equipmentDate
;
}
/***
*
* 修改
...
...
@@ -549,7 +589,13 @@ public class EquipmentDetailController extends AbstractBaseController {
// }
//
// } catch (Exception e) {
ExcelEnums
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZBSINGLE
.
getType
());
ExcelEnums
excelEnums
=
null
;
if
(!
enabled
){
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZBSINGLE
.
getType
());
}
else
{
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZB
.
getType
());
}
ExcelDto
excelDto
=
new
ExcelDto
(
excelEnums
.
getFileName
(),
excelEnums
.
getSheetName
(),
excelEnums
.
getClassUrl
(),
excelEnums
.
getType
());
String
url
=
excelDto
.
getClassUrl
();
Class
<?>
clz
=
Class
.
forName
(
url
);
...
...
@@ -590,7 +636,12 @@ public class EquipmentDetailController extends AbstractBaseController {
try
{
UUID
uuid
=
UUID
.
randomUUID
();
key
=
uuid
.
toString
();
ExcelEnums
excelEnums
=
ExcelEnums
.
getByKey
(
type
);
ExcelEnums
excelEnums
=
null
;
if
(!
enabled
){
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZBSINGLE
.
getType
());
}
else
{
excelEnums
=
ExcelEnums
.
getByKey
(
ExcelEnums
.
XFZB
.
getType
());
}
ExcelDto
excelDto
=
new
ExcelDto
(
excelEnums
.
getFileName
(),
excelEnums
.
getSheetName
(),
excelEnums
.
getClassUrl
(),
excelEnums
.
getType
());
// date= excelService.commonUpload(file, excelDto, getSelectedOrgInfo(), getUserInfo());
EquipmentDetailController
controllerProxy1
=
SpringUtils
.
getBean
(
EquipmentDetailController
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
df900faf
...
...
@@ -869,7 +869,22 @@ public class FireFightingSystemController extends AbstractBaseController {
public
List
<
PointTreeVo
>
getPointTree
(
@RequestParam
(
required
=
false
)
String
systemId
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
return
fireFightingSystemService
.
getPointTree
(
systemId
,
bizOrgCode
);
}
@RequestMapping
(
value
=
"/{systemCode}/system/detail"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"通过系统code查询消防系统及部件信息"
)
public
Map
<
String
,
Object
>
getSystemDetailByCode
(
@PathVariable
String
systemCode
)
{
return
fireFightingSystemService
.
getSystemDetailByCode
(
systemCode
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取系统分类树"
,
notes
=
"获取系统分类树"
)
@GetMapping
(
value
=
"/systemAndEquipmentTreeByBziOrgCode"
)
public
List
<
OrgMenuDto
>
systemAndEquipmentTreeByBziOrgCode
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
return
fireFightingSystemService
.
systemAndEquipmentTreeByBziOrgCode
(
bizOrgCode
);
}
/**
* 获取装备类型和统计值
* @throws Exception
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/dto/EquipDataDto.java
0 → 100644
View file @
df900faf
package
com
.
yeejoin
.
equipmanage
.
dto
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yeejoin.equipmanage.utils.ExplicitConstraint
;
import
com.yeejoin.equipmanage.utils.RoleNameExplicitConstraint
;
import
lombok.Data
;
import
java.util.Date
;
@Data
public
class
EquipDataDto
{
@Excel
(
name
=
"器材名称"
,
width
=
30
,
orderNum
=
"1"
)
private
String
name
;
@Excel
(
name
=
"器材编码(从装备定义中获取)"
,
width
=
30
,
orderNum
=
"2"
)
private
String
code
;
@Excel
(
name
=
"规格型号"
,
width
=
30
,
orderNum
=
"3"
)
private
String
standard
;
@Excel
(
name
=
"品牌"
,
width
=
30
,
orderNum
=
"4"
)
private
String
brand
;
@Excel
(
name
=
"生产厂家名称"
,
width
=
30
,
orderNum
=
"5"
)
private
String
manufacturerName
;
@Excel
(
name
=
"设备编码"
,
width
=
30
,
orderNum
=
"6"
)
private
String
systemCode
;
@Excel
(
name
=
"物联编码"
,
width
=
30
,
orderNum
=
"7"
)
private
String
iotCode
;
@Excel
(
name
=
"存放位置(货位编码)"
,
width
=
30
,
orderNum
=
"8"
)
private
String
warehouseStructCode
;
@Excel
(
name
=
"位置信息"
,
width
=
30
,
orderNum
=
"9"
)
private
String
description
;
@Excel
(
name
=
"消防系统编码"
,
width
=
30
,
orderNum
=
"10"
)
private
String
fightingSysCodes
;
//动态下拉内容
@Excel
(
name
=
"所属单位"
,
width
=
30
,
orderNum
=
"11"
)
private
String
companyName
;
// @ExcelProperty(value = "报废年限", index = 13)
// //@Excel(name = "品牌", width = 30, orderNum = "4")
// private String expiryDate;
//
// @ExcelProperty(value = "维保周期", index = 14)
// //@Excel(name = "品牌", width = 30, orderNum = "4")
// private BigDecimal maintenanceCycle ;
@Excel
(
name
=
"生产日期"
,
width
=
30
,
orderNum
=
"12"
)
private
Date
productionDate
;
@ExcelProperty
(
value
=
"投运日期"
,
index
=
13
)
//@Excel(name = "品牌", width = 30, orderNum = "4")
private
Date
deliveryDate
;
//动态下拉内容
// @ExplicitConstraint(indexNum = 16, sourceClass = RoleNameExplicitConstraint.class,method="getFireSystemList") //动态下拉内容
// @ExcelProperty(value = "所属系统", index = 16)
// //@Excel(name = "所属单位",width = 30,orderNum = "12")
// private String systemName;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/dto/EquipmentDetailDownloadTemplateDto.java
View file @
df900faf
...
...
@@ -49,13 +49,13 @@ public class EquipmentDetailDownloadTemplateDto implements Serializable {
@Excel
(
name
=
"消防系统编码"
,
width
=
30
,
orderNum
=
"10"
)
private
String
fightingSysCodes
;
@Excel
(
name
=
"所属队伍"
,
width
=
30
,
orderNum
=
"1
1
"
)
@Excel
(
name
=
"所属队伍"
,
width
=
30
,
orderNum
=
"1
4
"
)
private
String
fireTeam
;
@Excel
(
name
=
"所属单位"
,
width
=
30
,
orderNum
=
"1
2
"
)
@Excel
(
name
=
"所属单位"
,
width
=
30
,
orderNum
=
"1
1
"
)
private
String
companyName
;
@Excel
(
name
=
"生产日期"
,
width
=
30
,
orderNum
=
"1
3
"
)
@Excel
(
name
=
"生产日期"
,
width
=
30
,
orderNum
=
"1
2
"
)
//@Excel(name = "品牌", width = 30, orderNum = "4")
private
Date
productionDate
;
...
...
@@ -67,7 +67,7 @@ public class EquipmentDetailDownloadTemplateDto implements Serializable {
// //@Excel(name = "品牌", width = 30, orderNum = "4")
// private BigDecimal maintenanceCycle ;
@Excel
(
name
=
"投运时间"
,
width
=
30
,
orderNum
=
"1
4
"
)
@Excel
(
name
=
"投运时间"
,
width
=
30
,
orderNum
=
"1
3
"
)
//@Excel(name = "品牌", width = 30, orderNum = "4")
private
Date
deliveryDate
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/dto/EquipmentDetailExcelSingleTemplateDto.java
View file @
df900faf
package
com
.
yeejoin
.
equipmanage
.
dto
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.yeejoin.equipmanage.utils.ExplicitConstraint
;
import
com.yeejoin.equipmanage.utils.RoleNameExplicitConstraint
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
@@ -52,19 +55,14 @@ public class EquipmentDetailExcelSingleTemplateDto {
@ExcelProperty
(
value
=
"消防系统编码"
,
index
=
9
)
//@Excel(name = "消防系统编码", width = 30, orderNum = "10")
private
String
fightingSysCodes
;
@ExplicitConstraint
(
indexNum
=
10
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getEquipFireTeam"
)
//动态下拉内容
@ExcelProperty
(
value
=
"所属队伍"
,
index
=
10
)
//@Excel(name = "所属队伍",width = 30,orderNum = "11")
private
String
fireTeam
;
//动态下拉内容
@ExplicitConstraint
(
indexNum
=
1
1
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getEquipCompany"
)
//动态下拉内容
@ExcelProperty
(
value
=
"所属单位"
,
index
=
1
1
)
@ExplicitConstraint
(
indexNum
=
1
0
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getEquipCompany"
)
//动态下拉内容
@ExcelProperty
(
value
=
"所属单位"
,
index
=
1
0
)
//@Excel(name = "所属单位",width = 30,orderNum = "12")
private
String
companyName
;
@ExcelProperty
(
value
=
"生产日期"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"生产日期"
,
index
=
1
1
)
//@Excel(name = "品牌", width = 30, orderNum = "4")
private
Date
productionDate
;
...
...
@@ -76,10 +74,17 @@ public class EquipmentDetailExcelSingleTemplateDto {
// //@Excel(name = "品牌", width = 30, orderNum = "4")
// private BigDecimal maintenanceCycle ;
@ExcelProperty
(
value
=
"投运日期"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"投运日期"
,
index
=
1
2
)
//@Excel(name = "品牌", width = 30, orderNum = "4")
private
Date
deliveryDate
;
//@ExplicitConstraint(indexNum = 13, sourceClass = RoleNameExplicitConstraint.class,method="getEquipFireTeam") //动态下拉内容
//@ExcelProperty(value = "所属队伍", index = 13)
@ExcelIgnore
//@Excel(name = "所属队伍",width = 30,orderNum = "11")
private
String
fireTeam
;
//动态下拉内容
// @ExplicitConstraint(indexNum = 16, sourceClass = RoleNameExplicitConstraint.class,method="getFireSystemList") //动态下拉内容
// @ExcelProperty(value = "所属系统", index = 16)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
df900faf
...
...
@@ -625,4 +625,10 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
getFireCarInfoByYJYA
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Page
<
Map
<
String
,
Object
>>
getCenterWaterInfo
(
Page
page
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
systemAndEquipment
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Long
selectEquipCountBySystemId
(
Long
id
);
String
selectEquipSystemType
(
String
code
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IFireFightingSystemService.java
View file @
df900faf
...
...
@@ -298,4 +298,8 @@ public interface IFireFightingSystemService extends IService<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
getSystemRunningInfoList
();
Page
<
FireFightingSystemDto
>
fireSysRunStatusPage
(
Page
<
Map
<
String
,
Object
>>
page
,
String
bizOrgCode
);
List
<
OrgMenuDto
>
systemAndEquipmentTreeByBziOrgCode
(
String
bizOrgCode
);
Map
<
String
,
Object
>
getSystemDetailByCode
(
String
systemCode
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
df900faf
...
...
@@ -40,8 +40,6 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
@Autowired
EquipmentManageMapper
equipmentManageMapper
;
@Autowired
EquipmentCategoryController
equipmentCategoryController
;
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ExcelServiceImpl.java
View file @
df900faf
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.equipmanage.dto.EquipDataDto
;
import
com.yeejoin.equipmanage.dto.EquipmentDetailExcelSingleTemplateDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
...
...
@@ -59,6 +63,13 @@ public class ExcelServiceImpl implements IExcelService {
throw
new
BadRequest
(
e
.
getMessage
());
}
break
;
case
"XFZBSINGLE"
:
try
{
date
=
excelImportFireEquipmentDl
(
multipartFile
,
reginParams
,
agencyUserModel
);
}
catch
(
Exception
e
)
{
throw
new
BadRequest
(
e
.
getMessage
());
}
break
;
case
"JKXX"
:
try
{
excelImporVideo
(
multipartFile
);
...
...
@@ -85,6 +96,23 @@ public class ExcelServiceImpl implements IExcelService {
return
date
;
}
private
Object
excelImportFireEquipmentDl
(
MultipartFile
multipartFile
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
throws
Exception
{
Object
date
=
""
;
List
<
EquipDataDto
>
excelDtoList
=
ExcelUtil
.
readFirstSheetExcel
(
multipartFile
,
EquipDataDto
.
class
,
1
);
List
<
EquipmentDetailDownloadTemplateDto
>
objects
=
new
ArrayList
<>();
String
s
=
JSONObject
.
toJSONString
(
excelDtoList
);
List
<
EquipmentDetailDownloadTemplateDto
>
dtos
=
JSONObject
.
parseArray
(
s
,
EquipmentDetailDownloadTemplateDto
.
class
);
if
(
excelDtoList
!=
null
&&
excelDtoList
.
size
()
>
0
)
{
date
=
iStockService
.
uploadListByTemplate
(
dtos
,
reginParams
,
agencyUserModel
);
}
else
{
throw
new
BadRequest
(
"请填写数据后再上传!"
);
}
return
date
;
}
private
void
excelImporVideo
(
MultipartFile
multipartFile
)
throws
Exception
{
List
<
VideoDownloadVO
>
excelDtoList
=
ExcelUtil
.
readFirstSheetExcel
(
multipartFile
,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
df900faf
...
...
@@ -2094,4 +2094,74 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
return
pages
;
}
@Override
public
List
<
OrgMenuDto
>
systemAndEquipmentTreeByBziOrgCode
(
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
fireFightingSystemMapper
.
systemAndEquipment
(
bizOrgCode
);
return
systemAndEquipmentTree
(
list
);
}
@Override
public
Map
<
String
,
Object
>
getSystemDetailByCode
(
String
systemCode
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
LambdaQueryWrapper
<
FireFightingSystemEntity
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
FireFightingSystemEntity:
:
getCode
,
systemCode
);
List
<
FireFightingSystemEntity
>
systemEntities
=
this
.
list
(
wrapper
);
if
(
systemEntities
.
isEmpty
())
{
throw
new
RuntimeException
(
"code"
+
systemCode
+
"不存在"
);
}
if
(
systemEntities
!=
null
)
{
FireFightingSystemVo
fireFightingSystemVo
=
fireFightingSystemMapper
.
getFightingSysInfo
(
systemEntities
.
get
(
0
).
getCode
(),
systemEntities
.
get
(
0
).
getId
());
map
.
put
(
"systemStatus"
,
"异常"
.
equals
(
fireFightingSystemVo
.
getStatus
())
?
false
:
true
);
}
else
{
map
.
put
(
"systemStatus"
,
true
);
}
map
.
put
(
"name"
,
systemEntities
.
get
(
0
).
getName
());
map
.
put
(
"code"
,
systemEntities
.
get
(
0
).
getCode
());
map
.
put
(
"installDate"
,
systemEntities
.
get
(
0
).
getInstallDate
());
map
.
put
(
"chargePersonPhone"
,
systemEntities
.
get
(
0
).
getChargePersonPhone
());
map
.
put
(
"chargePersonName"
,
systemEntities
.
get
(
0
).
getChargePersonName
());
map
.
put
(
"designOrg"
,
systemEntities
.
get
(
0
).
getDesignOrg
());
map
.
put
(
"designOrgTelephone"
,
systemEntities
.
get
(
0
).
getDesignOrgTelephone
());
map
.
put
(
"leadDesigner"
,
systemEntities
.
get
(
0
).
getLeadDesigner
());
Long
num
=
this
.
baseMapper
.
selectEquipCountBySystemId
(
systemEntities
.
get
(
0
).
getId
());
String
systemType
=
this
.
baseMapper
.
selectEquipSystemType
(
systemCode
);
map
.
put
(
"systemType"
,
systemType
);
map
.
put
(
"num"
,
num
);
return
map
;
}
public
static
List
<
OrgMenuDto
>
systemAndEquipmentTree
(
List
<
Map
<
String
,
Object
>>
list
)
{
List
<
OrgMenuDto
>
menuList
=
list
.
stream
()
.
map
(
o
->
new
OrgMenuDto
(
Long
.
parseLong
(
o
.
get
(
"id"
).
toString
()),
o
.
get
(
"name"
).
toString
(),
ObjectUtils
.
isEmpty
(
o
.
get
(
"parentId"
))
?
0L
:
Long
.
parseLong
(
o
.
get
(
"parentId"
).
toString
()),
ObjectUtils
.
isEmpty
(
o
.
get
(
"code"
))
?
""
:
o
.
get
(
"code"
).
toString
(),
false
,
o
.
get
(
"bizOrgCode"
).
toString
()))
.
collect
(
Collectors
.
toList
());
List
<
OrgMenuDto
>
result
=
new
ArrayList
<>();
Map
<
Long
,
OrgMenuDto
>
map
=
new
HashMap
<>(
menuList
.
size
());
menuList
.
forEach
(
e
->
map
.
put
(
e
.
getKey
(),
e
));
Set
<?
extends
Map
.
Entry
<
Long
,
?
extends
OrgMenuDto
>>
entries
=
map
.
entrySet
();
// 此处多线程,会value 出现null 的情况
// entries.parallelStream().forEach(entry -> {
entries
.
forEach
(
entry
->
{
OrgMenuDto
value
=
entry
.
getValue
();
if
(
value
!=
null
)
{
OrgMenuDto
treeDto
=
map
.
get
(
value
.
getParentId
());
if
(
treeDto
!=
null
)
{
List
<
OrgMenuDto
>
children
=
treeDto
.
getChildren
();
if
(
children
==
null
)
{
children
=
new
ArrayList
<>();
treeDto
.
setChildren
(
children
);
}
children
.
add
(
value
);
}
else
{
result
.
add
(
value
);
}
}
});
return
result
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
df900faf
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.equipmanage.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.aspose.words.Run
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.feign.systemctl.model.MessageModel
;
...
...
@@ -27,6 +28,7 @@ import com.yeejoin.equipmanage.service.*;
import
com.yeejoin.equipmanage.utils.BeanUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.omg.SendingContext.RunTime
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -424,7 +426,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
}
else
{
jsonObjectData
.
put
(
"value"
,
value
);
}
jsonObjectData
.
put
(
"measurementType"
,
equipmentSpecificIndex
.
getEquipmentIndexKey
());
jsonObjectData
.
put
(
"measurementType"
,
null
==
equipmentSpecificIndex
.
getEquipmentIndexKey
()
?
""
:
equipmentSpecificIndex
.
getEquipmentIndexKey
());
jsonObjectData
.
put
(
"dateTime"
,
date
);
jsonObjectData
.
put
(
"quality"
,
"0"
);
// 量测质量码:0 有效,1 无效
List
<
JSONObject
>
jsonObjects
=
Arrays
.
asList
(
jsonObjectData
);
...
...
@@ -542,8 +544,12 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
ext
.
put
(
"name"
,
equipmentSpecificIndex
.
getEquipmentSpecificName
());
ext
.
put
(
"time"
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()));
model
.
setExtras
(
ext
);
Token
token
=
remoteSecurityService
.
getServerToken
();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
try
{
Token
token
=
remoteSecurityService
.
getServerToken
();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
}
catch
(
Exception
e
)
{
log
.
error
(
"调用平台出错!"
);
}
log
.
info
(
String
.
format
(
"调用平台消息服务成功:%s"
,
JSON
.
toJSONString
(
model
)));
}
}
...
...
amos-boot-system-equip/src/main/resources/application.properties
View file @
df900faf
...
...
@@ -30,7 +30,7 @@ patrol.fegin.name=AMOS-PATROL
maintenance.feign.name
=
AMOS-MAINTENANCE-API
precontrol.feign.name
=
JEPCC-PRECONTROL-SERVER
security.privilege.name
=
AMOS-API-PRIVILEGE
security.systemctl.name
=
AMOS-API-
SYSTEMCTL
security.systemctl.name
=
AMOS-API-
PRIVILEGE
#jpush
Push.fegin.name
=
AppMessagePushService
dutyMode.fegin.name
=
AMOS-DUTYMODE
...
...
@@ -87,7 +87,7 @@ dcs.client.secret=fire_system
dcs.x.hw.id
=
NR_REST_APP
dcs.x.hw.appKey
=
s+YkvQhwilx91TRJHhNDmw==
# 故障告警/消防告警/跑马灯权限标识 true 机场 / false 电力
equip.enabled
=
tru
e
equip.enabled
=
fals
e
management.endpoints.enabled-by-default
=
false
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
df900faf
...
...
@@ -40,6 +40,7 @@
wesi.equipment_specific_id AS equipmentSpecificId,
wesi.equipment_index_id AS equipmentIndexId,
wesi.equipment_index_name AS equipmentIndexName,
wesi.equipment_index_key AS equipmentIndexKey,
wesi.value_label AS valueLabel,
wei.type_code AS typeCode,
wei.type_name AS typeName,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
df900faf
...
...
@@ -4531,6 +4531,78 @@
</select>
<select
id=
"systemAndEquipment"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.`name`,
a.code,
a.sort,
substring_index(
substring_index(
a.parentId,
',',
b.help_topic_id + 1
),
',' ,- 1
) AS parentId,
a.bizOrgCode
FROM
(
(
SELECT
ffs.`id`,
ffs.`name`,
ffs.`code`,
sort,
'' parentId,
ffs.biz_org_code bizOrgCode
FROM
f_fire_fighting_system ffs
WHERE
ffs.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%' )
) UNION
(
SELECT
wes.id,
wes.`name`,
wes.`code`,
0,
wes.system_id parentId,
wes.biz_org_code bizOrgCode
FROM
f_fire_fighting_system ffs
LEFT JOIN wl_equipment_specific wes ON wes.system_id = ffs.id
WHERE
wes.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%' )
)
)a
JOIN mysql.help_topic b ON b.help_topic_id
<
(
length(a.parentId) - length(
REPLACE (a.parentId, ',', '')
) + 1
)
ORDER BY parentId, sort
</select>
<select
id=
"selectEquipCountBySystemId"
resultType=
"java.lang.Long"
>
SELECT
count(1) num
FROM
wl_equipment_specific AS spe
where
spe.system_id = #{systemId}
</select>
<select
id=
"selectEquipSystemType"
resultType=
"java.lang.String"
>
SELECT
group_name
FROM
f_fire_fighting_system ffs
LEFT JOIN wl_dynamic_form_group wdfg ON ffs.form_group_id = wdfg.id
WHERE
ffs.code = #{code}
</select>
<select
id=
"getWaterInfoBySuper"
resultType=
"java.util.Map"
>
select * from (
(SELECT
...
...
amos-boot-system-jcs/src/main/resources/application.properties
View file @
df900faf
...
...
@@ -84,7 +84,7 @@ mqtt.topic.person.sign=sign/data/syn
#人员打卡同步中心级
mqtt.topic.person.sign.zxj
=
sign/data/synZxj
security.systemctl.name
=
AMOS-API-
SYSTEMCTL
security.systemctl.name
=
AMOS-API-
PRIVILEGE
jcs.company.topic.add
=
jcs/company/topic/add
jcs.company.topic.delete
=
jcs/company/topic/delete
...
...
amos-boot-system-tdc/amos-boot-module-tdc-api/pom.xml
View file @
df900faf
...
...
@@ -10,42 +10,7 @@
<artifactId>
amos-boot-module-tdc-api
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-elasticsearch
</artifactId>
<scope>
compile
</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.amosframework.boot</groupId>-->
<!-- <artifactId>amos-boot-module-common-api</artifactId>-->
<!-- <version>${amos-biz-boot.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-rule
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.typroject
</groupId>
<artifactId>
tyboot-core-auth
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.aspose</groupId>-->
<!-- <artifactId>aspose-words</artifactId>-->
<!-- <version>15.8.0</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
com.aspose
</groupId>
<artifactId>
aspose-words
</artifactId>
<version>
15.8.0
</version>
<classifier>
jdk16
</classifier>
</dependency>
</dependencies>
</project>
amos-boot-system-tdc/amos-boot-module-tdc-biz/pom.xml
View file @
df900faf
...
...
@@ -15,11 +15,6 @@
<artifactId>
amos-boot-module-tdc-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.amosframework.boot</groupId>-->
<!-- <artifactId>amos-boot-module-common-biz</artifactId>-->
<!-- <version>${amos-biz-boot.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpmime
</artifactId>
...
...
@@ -28,6 +23,11 @@
<groupId>
org.liquibase
</groupId>
<artifactId>
liquibase-core
</artifactId>
</dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-security
</artifactId>
<version>
1.8.1
</version>
</dependency>
</dependencies>
<build>
<plugins>
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/action/model/IdxProjectModel.java
View file @
df900faf
...
...
@@ -2,7 +2,6 @@ package com.yeejoin.amos.boot.module.tdc.biz.action.model;
import
com.yeejoin.amos.component.rule.Label
;
import
com.yeejoin.amos.component.rule.RuleFact
;
import
liquibase.pro.packaged.L
;
import
lombok.Data
;
import
java.io.Serializable
;
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/config/WebSecurityConfig.java
deleted
100644 → 0
View file @
3e89f929
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
biz
.
config
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
;
import
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
;
@Configuration
@EnableWebSecurity
public
class
WebSecurityConfig
extends
WebSecurityConfigurerAdapter
{
// 授权
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
()
.
headers
()
.
frameOptions
()
.
disable
()
.
and
()
.
authorizeRequests
()
.
regexMatchers
(
"^(?!/actuator).*$"
).
permitAll
()
.
regexMatchers
(
"/actuator/health"
).
permitAll
()
.
regexMatchers
(
"/actuator/info"
).
permitAll
()
.
anyRequest
().
authenticated
().
and
()
.
formLogin
();
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
View file @
df900faf
...
...
@@ -31,7 +31,6 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
liquibase.pro.packaged.M
;
import
org.codehaus.jettison.json.JSONString
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/resources/application-dev.properties
View file @
df900faf
...
...
@@ -7,7 +7,10 @@ spring.datasource.password=Yeejoin@2020
#eureka.client.fetchRegistry=false
#eureka.client.server.waitTimeInMsWhenSyncEmpty=0
eureka.instance.hostname
=
172.16.10.215
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:10001/eureka/
#eureka.client.serviceUrl.defaultZone=http://${eureka.instance.hostname}:10001/eureka/
eureka.client.serviceUrl.defaultZone
=
http://${spring.security.user.name}:${spring.security.user.password}@172.16.10.215:10001/eureka/
## redis properties:
spring.redis.database
=
1
spring.redis.host
=
172.16.10.215
...
...
@@ -24,4 +27,6 @@ emqx.password=public
#mqtt.scene.host=mqtt://172.16.10.201:18083/mqtt
#mqtt.client.product.id=mqtt
mqtt.topic
=
topic_mqtt
#
spring.mqtt.completionTimeout
=
3000
\ No newline at end of file
#spring.mqtt.completionTimeout=3000
tdc.file.examine.work.flow.processDefinitionKey
=
tdc_file_examine
\ No newline at end of file
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/resources/application.properties
View file @
df900faf
...
...
@@ -43,6 +43,20 @@ spring.redis.lettuce.pool.min-idle=0
spring.security.user.name
=
admin
spring.security.user.password
=
a1234560
knife4j.enable
=
true
knife4j.basic.enable
=
true
knife4j.basic.username
=
admin
knife4j.basic.password
=
a1234560
spring.boot.admin.client.enabled
=
true
spring.boot.admin.client.instance.metadata.user.name
=
${spring.security.user.name}
spring.boot.admin.client.instance.metadata.user.password
=
${spring.security.user.password}
spring.boot.admin.client.username
=
admin
spring.boot.admin.client.password
=
a1234560
management.security.enabled
=
false
management.health.redis.enabled
=
false
## redis失效时间
redis.cache.failure.time
=
10800
...
...
amos-boot-system-tdc/pom.xml
View file @
df900faf
...
...
@@ -32,10 +32,24 @@
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-feign-privilege
</artifactId>
<version>
1.7.12-SNAPSHOT
</version>
<version>
1.8.1
</version>
</dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-rule
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.typroject
</groupId>
<artifactId>
tyboot-core-auth
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.aspose
</groupId>
<artifactId>
aspose-words
</artifactId>
<version>
15.8.0
</version>
<classifier>
jdk16
</classifier>
</dependency>
</dependencies>
</project>
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