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
3965a7b9
Commit
3965a7b9
authored
Mar 23, 2022
by
chenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
429cbaad
8e11bb4a
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
252 additions
and
134 deletions
+252
-134
MetaHandler.java
...in/java/com/yeejoin/amos/boot/biz/config/MetaHandler.java
+1
-1
FailureDetailsDto.java
...in/amos/boot/module/common/api/dto/FailureDetailsDto.java
+3
-0
ConfirmAlamEnum.java
...com/yeejoin/equipmanage/common/enums/ConfirmAlamEnum.java
+9
-0
CommonPageInfoParam.java
...yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
+10
-0
FailureDetailsController.java
...odule/common/biz/controller/FailureDetailsController.java
+6
-1
FailureMaintainServiceImpl.java
...e/common/biz/service/impl/FailureMaintainServiceImpl.java
+4
-4
ConfirmAlarmController.java
...eejoin/equipmanage/controller/ConfirmAlarmController.java
+2
-0
EquipmentIndexController.java
...join/equipmanage/controller/EquipmentIndexController.java
+4
-0
SignalClassifyController.java
...join/equipmanage/controller/SignalClassifyController.java
+15
-2
ConfirmAlarmServiceImpl.java
...oin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
+3
-19
EquipmentIndexImpl.java
.../yeejoin/equipmanage/service/impl/EquipmentIndexImpl.java
+5
-1
EquipmentServiceImpl.java
...eejoin/equipmanage/service/impl/EquipmentServiceImpl.java
+3
-6
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+4
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+22
-5
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+5
-1
StockServiceImpl.java
...om/yeejoin/equipmanage/service/impl/StockServiceImpl.java
+25
-11
AircraftServiceImpl.java
...boot/module/jcs/biz/service/impl/AircraftServiceImpl.java
+14
-11
DocLibraryService.java
...in/amos/knowledgebase/face/service/DocLibraryService.java
+10
-0
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+29
-6
CarMapper.xml
...boot-system-equip/src/main/resources/mapper/CarMapper.xml
+15
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+59
-62
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+3
-3
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/config/MetaHandler.java
View file @
3965a7b9
...
@@ -76,7 +76,7 @@ public class MetaHandler implements MetaObjectHandler {
...
@@ -76,7 +76,7 @@ public class MetaHandler implements MetaObjectHandler {
}
}
//以下为装备中转移过来的
//以下为装备中转移过来的
if
(
isExistField
(
"userId"
,
entity
))
{
if
(
isExistField
(
"userId"
,
entity
))
{
this
.
setFieldValByName
(
"userId"
,
Lo
ng
.
valueOf
(
agencyUserModel
.
getUserId
()),
metaObject
);
this
.
setFieldValByName
(
"userId"
,
Stri
ng
.
valueOf
(
agencyUserModel
.
getUserId
()),
metaObject
);
}
}
if
(
isExistField
(
"creatorId"
,
entity
))
{
if
(
isExistField
(
"creatorId"
,
entity
))
{
this
.
setFieldValByName
(
"creatorId"
,
Long
.
valueOf
(
agencyUserModel
.
getUserId
()),
metaObject
);
this
.
setFieldValByName
(
"creatorId"
,
Long
.
valueOf
(
agencyUserModel
.
getUserId
()),
metaObject
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FailureDetailsDto.java
View file @
3965a7b9
...
@@ -71,4 +71,7 @@ public class FailureDetailsDto extends BaseDto {
...
@@ -71,4 +71,7 @@ public class FailureDetailsDto extends BaseDto {
@ApiModelProperty
(
value
=
"附件"
)
@ApiModelProperty
(
value
=
"附件"
)
private
List
<
SourceFile
>
attachment
;
private
List
<
SourceFile
>
attachment
;
@ApiModelProperty
(
value
=
"是否本人报送"
)
private
Boolean
isSubmit
=
false
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/enums/ConfirmAlamEnum.java
View file @
3965a7b9
...
@@ -58,5 +58,14 @@ public enum ConfirmAlamEnum {
...
@@ -58,5 +58,14 @@ public enum ConfirmAlamEnum {
return
null
;
return
null
;
}
}
public
static
String
getEnumByName
(
String
type
)
{
for
(
ConfirmAlamEnum
status:
ConfirmAlamEnum
.
values
())
{
if
(
status
.
getType
().
equals
(
type
))
{
return
status
.
getCode
();
}
}
return
null
;
}
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
View file @
3965a7b9
...
@@ -113,6 +113,16 @@ public class CommonPageInfoParam extends CommonPageable {
...
@@ -113,6 +113,16 @@ public class CommonPageInfoParam extends CommonPageable {
private
String
isRemoveShield
;
private
String
isRemoveShield
;
private
String
isFireAlarm
;
public
void
setIsFireAlarm
(
String
isFireAlarm
)
{
this
.
isFireAlarm
=
isFireAlarm
;
}
public
String
getIsFireAlarm
()
{
return
isFireAlarm
;
}
public
void
setIsRemoveShield
(
String
isRemoveShield
)
{
public
void
setIsRemoveShield
(
String
isRemoveShield
)
{
this
.
isRemoveShield
=
isRemoveShield
;
this
.
isRemoveShield
=
isRemoveShield
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FailureDetailsController.java
View file @
3965a7b9
...
@@ -86,8 +86,13 @@ public class FailureDetailsController extends BaseController {
...
@@ -86,8 +86,13 @@ public class FailureDetailsController extends BaseController {
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
FailureDetailsDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
FailureDetailsDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
FailureDetailsDto
failureDetailsDto
=
failureDetailsServiceImpl
.
queryForOne
(
sequenceNbr
);
ReginParams
selectedOrgInfo
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
failureDetailsServiceImpl
.
queryForOne
(
sequenceNbr
));
if
(
failureDetailsDto
.
getSubmissionPid
().
toString
().
equals
(
selectedOrgInfo
.
getUserModel
().
getUserId
()))
{
failureDetailsDto
.
setIsSubmit
(
true
);
}
return
ResponseHelper
.
buildResponse
(
failureDetailsDto
);
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureMaintainServiceImpl.java
View file @
3965a7b9
...
@@ -143,24 +143,24 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
...
@@ -143,24 +143,24 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
if
(!
result
)
{
if
(!
result
)
{
return
false
;
return
false
;
}
}
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getRealName
());
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getRealName
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
failureMaintainDto
.
setDepartment
(
orgUsr
.
getBizOrgName
());
failureMaintainDto
.
setDepartment
(
orgUsr
.
getBizOrgName
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
this
.
createWithModel
(
failureMaintainDto
);
//
this.createWithModel(failureMaintainDto);
// 添加完成后修改保修单状态为维修完成
// 添加完成后修改保修单状态为维修完成
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
failureMaintainDto
.
getFaultId
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
failureMaintainDto
.
getFaultId
());
failureDetailsDto
.
setCurrentStatus
(
FailureStatuEnum
.
WAITING_ACCEPTANCE
.
getCode
());
failureDetailsDto
.
setCurrentStatus
(
FailureStatuEnum
.
WAITING_ACCEPTANCE
.
getCode
());
failureDetailsService
.
updateWithModel
(
failureDetailsDto
);
failureDetailsService
.
updateWithModel
(
failureDetailsDto
);
// 添加报修日志
// 添加报修日志
String
processResult
=
MAINTENANCE_STATUS
[
0
];
// 维修完成
String
processResult
=
MAINTENANCE_STATUS
[
0
];
// 维修完成
Integer
processAuditorId
=
Integer
.
parseInt
(
failureMaintainDto
.
getRec
UserId
());
Integer
processAuditorId
=
Integer
.
parseInt
(
userInfo
.
getUserModel
().
get
UserId
());
String
processAuditorName
=
userInfo
.
getUserModel
().
getRealName
();
String
processAuditorName
=
userInfo
.
getUserModel
().
getRealName
();
repairlog
(
failureMaintainDto
.
getFaultId
(),
processAuditorId
,
repairlog
(
failureMaintainDto
.
getFaultId
(),
processAuditorId
,
userInfo
.
getDepartment
().
getSequenceNbr
(),
failureMaintainDto
.
getMaintainTim
e
(),
userInfo
.
getDepartment
().
getSequenceNbr
(),
new
Dat
e
(),
failureMaintainDto
.
getDepartment
(),
processResult
,
processAuditorName
);
failureMaintainDto
.
getDepartment
(),
processResult
,
processAuditorName
);
if
(
ObjectUtils
.
isNotEmpty
(
failureMaintainDto
.
getAttachment
()))
{
if
(
ObjectUtils
.
isNotEmpty
(
failureMaintainDto
.
getAttachment
()))
{
sourceFileServiceImpl
.
saveSourceFile
(
failureMaintainDto
.
getSequenceNbr
(),
sourceFileServiceImpl
.
saveSourceFile
(
failureMaintainDto
.
getSequenceNbr
(),
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfirmAlarmController.java
View file @
3965a7b9
...
@@ -9,6 +9,7 @@ import com.yeejoin.equipmanage.service.impl.MonitorEventService;
...
@@ -9,6 +9,7 @@ import com.yeejoin.equipmanage.service.impl.MonitorEventService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -26,6 +27,7 @@ import java.util.Map;
...
@@ -26,6 +27,7 @@ import java.util.Map;
public
class
ConfirmAlarmController
extends
AbstractBaseController
{
public
class
ConfirmAlarmController
extends
AbstractBaseController
{
@Autowired
@Autowired
@Lazy
IConfirmAlarmService
iConfirmAlarmService
;
IConfirmAlarmService
iConfirmAlarmService
;
@Autowired
@Autowired
EquipmentSpecificAlarmLogMapper
equipmentSpecificAlarmLogMapper
;
EquipmentSpecificAlarmLogMapper
equipmentSpecificAlarmLogMapper
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentIndexController.java
View file @
3965a7b9
...
@@ -172,6 +172,10 @@ public class EquipmentIndexController {
...
@@ -172,6 +172,10 @@ public class EquipmentIndexController {
queryWrapper
.
inSql
(
SignalClassify:
:
getTypeCode
,
queryWrapper
.
inSql
(
SignalClassify:
:
getTypeCode
,
"SELECT type_code FROM wl_signal_classify WHERE UPPER(type_code) ='"
+
equipmentIndex
.
getTypeCode
().
toUpperCase
()
+
"'"
);
"SELECT type_code FROM wl_signal_classify WHERE UPPER(type_code) ='"
+
equipmentIndex
.
getTypeCode
().
toUpperCase
()
+
"'"
);
signalClassify
=
signalClassifyMapper
.
selectOne
(
queryWrapper
);
signalClassify
=
signalClassifyMapper
.
selectOne
(
queryWrapper
);
equipmentIndex
.
setEmergencyLevelColor
(
signalClassify
.
getEmergencyLevelColor
());
equipmentIndex
.
setIsAlarm
(
signalClassify
.
getIsAlarm
());
equipmentIndex
.
setEmergencyLevel
(
signalClassify
.
getEmergencyLevel
());
equipmentIndex
.
setEmergencyLevelDescribe
(
signalClassify
.
getEmergencyLevelDescribe
());
}
}
QueryWrapper
<
EquipmentDetail
>
equipmentDetailQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
EquipmentDetail
>
equipmentDetailQueryWrapper
=
new
QueryWrapper
<>();
equipmentDetailQueryWrapper
.
eq
(
"equipment_id"
,
equipmentIndex
.
getEquipmentId
());
equipmentDetailQueryWrapper
.
eq
(
"equipment_id"
,
equipmentIndex
.
getEquipmentId
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SignalClassifyController.java
View file @
3965a7b9
...
@@ -9,12 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,12 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* 信号分类量测枚举表
* 信号分类量测枚举表
...
@@ -92,7 +94,18 @@ public class SignalClassifyController extends AbstractBaseController {
...
@@ -92,7 +94,18 @@ public class SignalClassifyController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"信号分类量测枚举表列表全部数据查询"
,
notes
=
"信号分类量测枚举表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"信号分类量测枚举表列表全部数据查询"
,
notes
=
"信号分类量测枚举表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
SignalClassify
>>
selectForList
()
{
public
ResponseModel
<
List
<
SignalClassify
>>
selectForList
(
@RequestParam
(
required
=
false
)
String
isAlarm
,
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
());
@RequestParam
(
required
=
false
)
String
isContainFire
)
{
if
(!
ValidationUtil
.
isEmpty
(
isAlarm
)
&&
"true"
.
equals
(
isAlarm
))
{
if
(!
ValidationUtil
.
isEmpty
(
isContainFire
)
&&
"false"
.
equals
(
isContainFire
))
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
().
stream
().
filter
(
e
->
e
.
getIsAlarm
()
==
1
&&
!
"FIREALARM"
.
equals
(
e
.
getTypeCode
())).
collect
(
Collectors
.
toList
()));
}
else
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
().
stream
().
filter
(
e
->
e
.
getIsAlarm
()
==
1
).
collect
(
Collectors
.
toList
()));
}
}
else
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
());
}
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/ConfirmAlarmServiceImpl.java
View file @
3965a7b9
...
@@ -16,10 +16,7 @@ import com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm;
...
@@ -16,10 +16,7 @@ import com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex
;
import
com.yeejoin.equipmanage.common.entity.vo.AlamVideoVO
;
import
com.yeejoin.equipmanage.common.entity.vo.AlamVideoVO
;
import
com.yeejoin.equipmanage.common.enums.AlarmCleanTypeEnum
;
import
com.yeejoin.equipmanage.common.enums.*
;
import
com.yeejoin.equipmanage.common.enums.AlarmStatusEnum
;
import
com.yeejoin.equipmanage.common.enums.AlarmTypeEnum
;
import
com.yeejoin.equipmanage.common.enums.TopicEnum
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.vo.Token
;
import
com.yeejoin.equipmanage.common.vo.Token
;
...
@@ -174,21 +171,8 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
...
@@ -174,21 +171,8 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
list
=
equipmentSpecificAlarmLogService
.
getIsConfirmByAlarmId
(
equipmentSpecificAlarmId
,
"0"
);
list
=
equipmentSpecificAlarmLogService
.
getIsConfirmByAlarmId
(
equipmentSpecificAlarmId
,
"0"
);
}
}
}
}
switch
(
ent
.
getType
()){
if
(
ent
.
getType
()
!=
null
)
{
case
"火警"
:
ent
.
setType
(
ConfirmAlamEnum
.
getEnumByName
(
ent
.
getType
())
==
null
?
" "
:
ConfirmAlamEnum
.
getEnumByName
(
ent
.
getType
()));
ent
.
setType
(
"FIREALARM"
);
break
;
case
"故障"
:
ent
.
setType
(
"BREAKDOWN"
);
break
;
case
"屏蔽"
:
ent
.
setType
(
"SHIELD"
);
break
;
case
"预警"
:
ent
.
setType
(
"NOTICE"
);
break
;
default
:
ent
.
setType
(
""
);
}
}
ent
.
setUpdateDate
(
new
Date
());
ent
.
setUpdateDate
(
new
Date
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentIndexImpl.java
View file @
3965a7b9
...
@@ -102,14 +102,18 @@ public class EquipmentIndexImpl extends ServiceImpl<EquipmentIndexMapper, Equipm
...
@@ -102,14 +102,18 @@ public class EquipmentIndexImpl extends ServiceImpl<EquipmentIndexMapper, Equipm
if
(
ValidationUtil
.
isEmpty
(
equipmentIndex
.
getTypeCode
()))
{
if
(
ValidationUtil
.
isEmpty
(
equipmentIndex
.
getTypeCode
()))
{
bool
.
set
(
false
);
bool
.
set
(
false
);
}
}
int
i
=
this
.
baseMapper
.
insert
(
equipmentIndex
);
SignalClassify
signalClassify
=
null
;
SignalClassify
signalClassify
=
null
;
if
(
bool
.
get
())
{
if
(
bool
.
get
())
{
LambdaQueryWrapper
<
SignalClassify
>
queryWrapper
=
new
LambdaQueryWrapper
();
LambdaQueryWrapper
<
SignalClassify
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
inSql
(
SignalClassify:
:
getTypeCode
,
queryWrapper
.
inSql
(
SignalClassify:
:
getTypeCode
,
"SELECT type_code FROM wl_signal_classify WHERE UPPER(type_code) ='"
+
equipmentIndex
.
getTypeCode
().
toUpperCase
()
+
"'"
);
"SELECT type_code FROM wl_signal_classify WHERE UPPER(type_code) ='"
+
equipmentIndex
.
getTypeCode
().
toUpperCase
()
+
"'"
);
signalClassify
=
signalClassifyMapper
.
selectOne
(
queryWrapper
);
signalClassify
=
signalClassifyMapper
.
selectOne
(
queryWrapper
);
equipmentIndex
.
setEmergencyLevelColor
(
signalClassify
.
getEmergencyLevelColor
());
equipmentIndex
.
setIsAlarm
(
signalClassify
.
getIsAlarm
());
equipmentIndex
.
setEmergencyLevel
(
signalClassify
.
getEmergencyLevel
());
equipmentIndex
.
setEmergencyLevelDescribe
(
signalClassify
.
getEmergencyLevelDescribe
());
}
}
int
i
=
this
.
baseMapper
.
insert
(
equipmentIndex
);
QueryWrapper
<
EquipmentDetail
>
equipmentDetailQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
EquipmentDetail
>
equipmentDetailQueryWrapper
=
new
QueryWrapper
<>();
equipmentDetailQueryWrapper
.
eq
(
"equipment_id"
,
equipmentIndex
.
getEquipmentId
());
equipmentDetailQueryWrapper
.
eq
(
"equipment_id"
,
equipmentIndex
.
getEquipmentId
());
List
<
EquipmentDetail
>
equipDetailList
=
iEquipmentDetailService
.
list
(
equipmentDetailQueryWrapper
);
List
<
EquipmentDetail
>
equipDetailList
=
iEquipmentDetailService
.
list
(
equipmentDetailQueryWrapper
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentServiceImpl.java
View file @
3965a7b9
...
@@ -12,10 +12,7 @@ import com.yeejoin.equipmanage.common.vo.EquipmentVo;
...
@@ -12,10 +12,7 @@ import com.yeejoin.equipmanage.common.vo.EquipmentVo;
import
com.yeejoin.equipmanage.fegin.PatrolFeign
;
import
com.yeejoin.equipmanage.fegin.PatrolFeign
;
import
com.yeejoin.equipmanage.mapper.*
;
import
com.yeejoin.equipmanage.mapper.*
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.service.IEquipmentDetailService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.IEquipmentIndexService
;
import
com.yeejoin.equipmanage.service.IEquipmentService
;
import
com.yeejoin.equipmanage.service.IUnitService
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.RandomStringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -211,9 +208,9 @@ public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment
...
@@ -211,9 +208,9 @@ public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment
Map
<
String
,
Object
>
columnMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
columnMap
=
new
HashMap
<
String
,
Object
>();
columnMap
.
put
(
"equipment_id"
,
equipment1
.
getId
());
columnMap
.
put
(
"equipment_id"
,
equipment1
.
getId
());
List
<
EquipmentDetail
>
equipmentDetails
=
equipmentDetailMapper
.
selectByMap
(
columnMap
);
List
<
EquipmentDetail
>
equipmentDetails
=
equipmentDetailMapper
.
selectByMap
(
columnMap
);
//
List<Car> cars = carMapper.selectByMap(columnMap);
List
<
Car
>
cars
=
carMapper
.
selectByMap
(
columnMap
);
Equipment
nowEquipment
=
this
.
baseMapper
.
selectById
(
equipment1
.
getId
());
Equipment
nowEquipment
=
this
.
baseMapper
.
selectById
(
equipment1
.
getId
());
if
(!(
equipment1
.
getCategoryId
()).
equals
(
nowEquipment
.
getCategoryId
()))
{
if
(!(
equipment1
.
getCategoryId
()).
equals
(
nowEquipment
.
getCategoryId
())
&&
(!
equipmentDetails
.
isEmpty
()
||
!
cars
.
isEmpty
())
)
{
throw
new
IllegalArgumentException
(
"此装备已被使用,不能修改分类类型"
);
throw
new
IllegalArgumentException
(
"此装备已被使用,不能修改分类类型"
);
}
else
{
}
else
{
nameDuplicate
(
equipment1
,
true
);
// 名称是否重复
nameDuplicate
(
equipment1
,
true
);
// 名称是否重复
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
3965a7b9
...
@@ -180,6 +180,10 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -180,6 +180,10 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
listPage
(
CommonPageInfoParam
param
)
{
public
Page
<
Map
<
String
,
Object
>>
listPage
(
CommonPageInfoParam
param
)
{
Page
result
=
new
Page
<>(
param
.
getPageNumber
(),
param
.
getPageSize
());
Page
result
=
new
Page
<>(
param
.
getPageNumber
(),
param
.
getPageSize
());
if
(
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
param
.
getAlarmType
()))
{
param
.
setAlarmType
(
""
);
param
.
setIsFireAlarm
(
"false"
);
}
Page
<
Map
<
String
,
Object
>>
resultPage
=
this
.
baseMapper
.
page
(
result
,
param
);
Page
<
Map
<
String
,
Object
>>
resultPage
=
this
.
baseMapper
.
page
(
result
,
param
);
if
(
resultPage
.
getTotal
()
>
0
)
{
if
(
resultPage
.
getTotal
()
>
0
)
{
for
(
Map
<
String
,
Object
>
x
:
resultPage
.
getRecords
())
{
for
(
Map
<
String
,
Object
>
x
:
resultPage
.
getRecords
())
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
3965a7b9
...
@@ -2,6 +2,9 @@ package com.yeejoin.equipmanage.service.impl;
...
@@ -2,6 +2,9 @@ package com.yeejoin.equipmanage.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
@@ -145,6 +148,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -145,6 +148,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Autowired
@Autowired
FireFightingSystemMapper
fireFightingSystemMapper
;
FireFightingSystemMapper
fireFightingSystemMapper
;
@Autowired
IEquipmentSpecificAlarmService
equipmentSpecificAlarmService
;
@Value
(
"${systemctl.sync.switch}"
)
@Value
(
"${systemctl.sync.switch}"
)
private
Boolean
syncSwitch
;
private
Boolean
syncSwitch
;
...
@@ -407,7 +413,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -407,7 +413,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Override
@Override
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
//
@TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
//
@TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
this
.
update
(
new
LambdaUpdateWrapper
<
EquipmentSpecific
>().
set
(
EquipmentSpecific:
:
getAgencyId
,
equipmentSpecific
.
getAgencyId
()).
set
(
EquipmentSpecific:
:
getTeamId
,
equipmentSpecific
.
getTeamId
()).
eq
(
EquipmentSpecific:
:
getId
,
equipmentSpecific
.
getId
()));
this
.
update
(
new
LambdaUpdateWrapper
<
EquipmentSpecific
>().
set
(
EquipmentSpecific:
:
getAgencyId
,
equipmentSpecific
.
getAgencyId
()).
set
(
EquipmentSpecific:
:
getTeamId
,
equipmentSpecific
.
getTeamId
()).
eq
(
EquipmentSpecific:
:
getId
,
equipmentSpecific
.
getId
()));
if
(
equipmentSpecific
.
getStockDetail
()
!=
null
&&
equipmentSpecific
.
getStockDetail
().
getWarehouseStructureId
()
!=
null
)
{
if
(
equipmentSpecific
.
getStockDetail
()
!=
null
&&
equipmentSpecific
.
getStockDetail
().
getWarehouseStructureId
()
!=
null
)
{
equipmentSpecific
.
setWarehouseStructureId
(
equipmentSpecific
.
getStockDetail
().
getWarehouseStructureId
());
equipmentSpecific
.
setWarehouseStructureId
(
equipmentSpecific
.
getStockDetail
().
getWarehouseStructureId
());
...
@@ -464,8 +470,20 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -464,8 +470,20 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
equipmentSpecific
.
getStockDetail
().
setWarehouseId
(
equipmentSpecific
.
getStock
().
getWarehouseId
());
equipmentSpecific
.
getStockDetail
().
setWarehouseId
(
equipmentSpecific
.
getStock
().
getWarehouseId
());
equipmentSpecific
.
getStockDetail
().
setQrCode
(
equipmentSpecific
.
getQrCode
());
equipmentSpecific
.
getStockDetail
().
setQrCode
(
equipmentSpecific
.
getQrCode
());
equipmentSpecific
.
getStockDetail
().
setEquipmentSpecificId
(
equipmentSpecific
.
getId
());
equipmentSpecific
.
getStockDetail
().
setEquipmentSpecificId
(
equipmentSpecific
.
getId
());
EquipmentDetail
detail
=
equipmentDetailService
.
getOne
(
new
QueryWrapper
<
EquipmentDetail
>().
eq
(
"id"
,
equipmentSpecific
.
getEquipmentDetailId
()));
equipmentSpecific
.
getStockDetail
().
setDescription
(
detail
.
getArea
());
stockDetailService
.
save
(
equipmentSpecific
.
getStockDetail
());
stockDetailService
.
save
(
equipmentSpecific
.
getStockDetail
());
// 更新alarm表没有复位的装备位置信息
LambdaQueryWrapper
<
EquipmentSpecificAlarm
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
eq
(
EquipmentSpecificAlarm:
:
getEquipmentSpecificId
,
equipmentSpecific
.
getId
());
queryWrapper
.
ne
(
EquipmentSpecificAlarm:
:
getStatus
,
AlarmStatusEnum
.
HF
.
getCode
());
List
<
EquipmentSpecificAlarm
>
alarms
=
equipmentSpecificAlarmService
.
getBaseMapper
().
selectList
(
queryWrapper
);
alarms
.
stream
().
map
(
x
->
x
.
setLocation
(
equipmentSpecific
.
getPosition
()
+
" "
+
equipmentSpecific
.
getStockDetail
().
getDescription
())).
collect
(
Collectors
.
toList
());
equipmentSpecificAlarmService
.
updateBatchById
(
alarms
);
//生成入库单
//生成入库单
StockBill
stockBill
=
buildStockBills
(
equipmentSpecific
,
reginParams
,
agencyUserModel
);
StockBill
stockBill
=
buildStockBills
(
equipmentSpecific
,
reginParams
,
agencyUserModel
);
stockBillService
.
save
(
stockBill
);
stockBillService
.
save
(
stockBill
);
...
@@ -1597,7 +1615,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1597,7 +1615,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Override
@Override
public
List
<
EquipmentSpecificVo
>
getEquipAndCarIotcodeByIotcode
(
String
iotCode
)
{
public
List
<
EquipmentSpecificVo
>
getEquipAndCarIotcodeByIotcode
(
String
iotCode
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
List
<
EquipmentSpecificVo
>
data
=
new
ArrayList
<
EquipmentSpecificVo
>()
;
List
<
EquipmentSpecificVo
>
data
;
if
(
redisUtils
.
hasKey
(
"equipAndCarIotCodes"
))
{
if
(
redisUtils
.
hasKey
(
"equipAndCarIotCodes"
))
{
data
=
JSON
.
parseArray
(
redisUtils
.
get
(
"equipAndCarIotCodes"
).
toString
(),
EquipmentSpecificVo
.
class
);
data
=
JSON
.
parseArray
(
redisUtils
.
get
(
"equipAndCarIotCodes"
).
toString
(),
EquipmentSpecificVo
.
class
);
}
else
{
}
else
{
...
@@ -1607,9 +1625,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1607,9 +1625,8 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if
(
ObjectUtils
.
isEmpty
(
data
))
{
if
(
ObjectUtils
.
isEmpty
(
data
))
{
return
data
;
return
data
;
}
}
List
<
EquipmentSpecificVo
>
resultData
=
data
.
stream
().
filter
(
a
->
a
.
getIotCode
().
equals
(
iotCode
)).
collect
(
Collectors
.
toList
());
List
<
EquipmentSpecificVo
>
resultdata
=
data
.
stream
().
filter
(
a
->
a
.
getIotCode
().
equals
(
iotCode
)).
collect
(
Collectors
.
toList
());
return
resultData
;
return
resultdata
;
}
}
@Override
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
3965a7b9
...
@@ -642,7 +642,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -642,7 +642,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
// }
// }
FireFightingSystemEntity
entity
=
baseMapper
.
selectById
(
id
);
FireFightingSystemEntity
entity
=
baseMapper
.
selectById
(
id
);
if
(
entity
.
getSceneId
()
!=
null
)
{
if
(
entity
.
getSceneId
()
!=
null
)
{
FeignUtil
.
remoteCall
(()
->
Morphic
.
morphicSubjectClient
.
delete
(
entity
.
getSceneId
()));
try
{
FeignUtil
.
remoteCall
(()
->
Morphic
.
morphicSubjectClient
.
delete
(
entity
.
getSceneId
()));
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"远程调用 MORPHIC 服务的删除操作出错"
);
}
}
}
formInstanceMapper
.
clearSystemId
(
id
);
formInstanceMapper
.
clearSystemId
(
id
);
// 解除装备与消防系统关系
// 解除装备与消防系统关系
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/StockServiceImpl.java
View file @
3965a7b9
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
com.yeejoin.equipmanage.common.utils.SpringUtils
;
import
com.yeejoin.equipmanage.common.utils.SpringUtils
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentSpecificVo
;
import
com.yeejoin.equipmanage.common.enums.*
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.support.TransactionSynchronization
;
import
org.springframework.transaction.support.TransactionSynchronizationManager
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
@@ -42,11 +44,6 @@ import com.yeejoin.equipmanage.common.entity.StockBillDetail;
...
@@ -42,11 +44,6 @@ import com.yeejoin.equipmanage.common.entity.StockBillDetail;
import
com.yeejoin.equipmanage.common.entity.StockDetail
;
import
com.yeejoin.equipmanage.common.entity.StockDetail
;
import
com.yeejoin.equipmanage.common.entity.WarehouseStructure
;
import
com.yeejoin.equipmanage.common.entity.WarehouseStructure
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentDetailDownloadVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentDetailDownloadVO
;
import
com.yeejoin.equipmanage.common.enums.BillContentEnum
;
import
com.yeejoin.equipmanage.common.enums.EquipStatusEnum
;
import
com.yeejoin.equipmanage.common.enums.JournalTypeEnum
;
import
com.yeejoin.equipmanage.common.enums.NoticeEnum
;
import
com.yeejoin.equipmanage.common.enums.StockBillTypeEnum
;
import
com.yeejoin.equipmanage.common.utils.ExcelUtils
;
import
com.yeejoin.equipmanage.common.utils.ExcelUtils
;
import
com.yeejoin.equipmanage.common.utils.QRCodeUtil
;
import
com.yeejoin.equipmanage.common.utils.QRCodeUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
...
@@ -126,6 +123,10 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
...
@@ -126,6 +123,10 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
@Autowired
@Autowired
IEquipmentSpecificSerivce
equipmentSpecificSerivce
;
IEquipmentSpecificSerivce
equipmentSpecificSerivce
;
@Autowired
private
RedisUtils
redisUtils
;
@Override
@Override
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
@Transactional
(
rollbackFor
=
{
Exception
.
class
})
public
StockBill
in
(
List
<
StockDetail
>
list
,
String
type
,
AgencyUserModel
agencyUserModel
)
{
public
StockBill
in
(
List
<
StockDetail
>
list
,
String
type
,
AgencyUserModel
agencyUserModel
)
{
...
@@ -468,7 +469,16 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
...
@@ -468,7 +469,16 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
this
.
equipmentSpecificIndexSave
(
equipmentDetail
,
equipmentSpecific
);
this
.
equipmentSpecificIndexSave
(
equipmentDetail
,
equipmentSpecific
);
}
}
relationRedisUtil
.
delSysRedisKey
(
fireFightSysIdsBuffer
.
toString
());
relationRedisUtil
.
delSysRedisKey
(
fireFightSysIdsBuffer
.
toString
());
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
public
void
afterCommit
()
{
List
<
EquipmentSpecificVo
>
data
=
equipmentSpecificMapper
.
getEquipOrCarByIotCode
(
null
);
if
(
redisUtils
.
hasKey
(
"equipAndCarIotCodes"
))
{
redisUtils
.
del
(
"equipAndCarIotCodes"
);
}
redisUtils
.
set
(
"equipAndCarIotCodes"
,
JSONObject
.
toJSONString
(
data
));
}
});
return
list
;
return
list
;
}
}
@Async
@Async
...
@@ -490,6 +500,10 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
...
@@ -490,6 +500,10 @@ public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements
equipmentSpecificIndex
.
setEquipmentSpecificName
(
equipmentDetail
.
getName
());
equipmentSpecificIndex
.
setEquipmentSpecificName
(
equipmentDetail
.
getName
());
equipmentSpecificIndex
.
setEquipmentIndexName
(
index
.
getPerfQuotaName
());
equipmentSpecificIndex
.
setEquipmentIndexName
(
index
.
getPerfQuotaName
());
equipmentSpecificIndex
.
setEquipmentIndexKey
(
index
.
getPerfQuotaDefinitionId
());
equipmentSpecificIndex
.
setEquipmentIndexKey
(
index
.
getPerfQuotaDefinitionId
());
equipmentSpecificIndex
.
setEmergencyLevelColor
(
index
.
getEmergencyLevelColor
());
equipmentSpecificIndex
.
setIsAlarm
(
index
.
getIsAlarm
());
equipmentSpecificIndex
.
setEmergencyLevel
(
index
.
getEmergencyLevel
());
equipmentSpecificIndex
.
setEmergencyLevelDescribe
(
index
.
getEmergencyLevelDescribe
());
return
equipmentSpecificIndex
;
return
equipmentSpecificIndex
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
if
(!
equipmentSpecificIndices
.
isEmpty
())
{
if
(!
equipmentSpecificIndices
.
isEmpty
())
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AircraftServiceImpl.java
View file @
3965a7b9
...
@@ -135,18 +135,21 @@ public class AircraftServiceImpl extends BaseService<AircraftDto, Aircraft, Airc
...
@@ -135,18 +135,21 @@ public class AircraftServiceImpl extends BaseService<AircraftDto, Aircraft, Airc
AircraftDto
aircraftDto
=
new
AircraftDto
();
AircraftDto
aircraftDto
=
new
AircraftDto
();
Aircraft
one
=
this
.
getOne
(
queryWrapper
);
Aircraft
one
=
this
.
getOne
(
queryWrapper
);
Bean
.
toPo
(
one
,
aircraftDto
);
Bean
.
toPo
(
one
,
aircraftDto
);
//填充航空器附件信息
if
(
one
!=
null
){
FeignClientResult
<
List
<
FileInfoModel
>>
fileInfoModelResult
=
Systemctl
.
fileInfoClient
.
queryByEntity
(
//填充航空器附件信息
agencyCode
,
Aircraft
.
class
.
getSimpleName
(),
String
.
valueOf
(
one
.
getSequenceNbr
()));
FeignClientResult
<
List
<
FileInfoModel
>>
fileInfoModelResult
=
Systemctl
.
fileInfoClient
.
queryByEntity
(
List
<
FileInfoModel
>
fileInfoModels
=
fileInfoModelResult
.
getResult
();
agencyCode
,
Aircraft
.
class
.
getSimpleName
(),
String
.
valueOf
(
one
.
getSequenceNbr
()));
List
<
FileInfoModel
>
fileInfoModels
=
fileInfoModelResult
.
getResult
();
if
(!
ValidationUtil
.
isEmpty
(
fileInfoModels
))
{
aircraftDto
.
setAppearanceImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
APPEARANCE
.
getCode
()));
if
(!
ValidationUtil
.
isEmpty
(
fileInfoModels
))
{
aircraftDto
.
setPlaneImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
PLANE
.
getCode
()));
aircraftDto
.
setAppearanceImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
APPEARANCE
.
getCode
()));
aircraftDto
.
setRescueImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
RESCUE
.
getCode
()));
aircraftDto
.
setPlaneImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
PLANE
.
getCode
()));
aircraftDto
.
setPositionImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
POSITION
.
getCode
()));
aircraftDto
.
setRescueImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
RESCUE
.
getCode
()));
aircraftDto
.
setModels
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
MODEL
.
getCode
()));
aircraftDto
.
setPositionImages
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
POSITION
.
getCode
()));
aircraftDto
.
setModels
(
processToStr
(
fileInfoModels
,
AircraftFileTypeEnum
.
MODEL
.
getCode
()));
}
}
}
return
aircraftDto
;
return
aircraftDto
;
}
}
public
AircraftDto
queryBySeq
(
String
agencyCode
,
Long
seq
)
{
public
AircraftDto
queryBySeq
(
String
agencyCode
,
Long
seq
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/service/DocLibraryService.java
View file @
3965a7b9
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.knowledgebase.face.enumeration.DynamicsFunctional
;
import
com.yeejoin.amos.knowledgebase.face.enumeration.DynamicsFunctional
;
import
com.yeejoin.amos.knowledgebase.face.enumeration.KnowledgeRoleName
;
import
com.yeejoin.amos.knowledgebase.face.enumeration.KnowledgeRoleName
;
...
@@ -47,7 +48,11 @@ import org.typroject.tyboot.core.restful.exception.instance.RequestForbidden;
...
@@ -47,7 +48,11 @@ import org.typroject.tyboot.core.restful.exception.instance.RequestForbidden;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.ByteArrayInputStream
;
import
java.io.ByteArrayInputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.text.ParseException
;
import
java.time.format.DateTimeFormatter
;
import
java.time.temporal.TemporalAccessor
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
static
com
.
yeejoin
.
amos
.
knowledgebase
.
face
.
util
.
DataTransformator
.
htmlContent2Text
;
import
static
com
.
yeejoin
.
amos
.
knowledgebase
.
face
.
util
.
DataTransformator
.
htmlContent2Text
;
import
static
com
.
yeejoin
.
amos
.
knowledgebase
.
face
.
util
.
FileExporter
.
FileType
.
getInstance
;
import
static
com
.
yeejoin
.
amos
.
knowledgebase
.
face
.
util
.
FileExporter
.
FileType
.
getInstance
;
...
@@ -165,6 +170,11 @@ public class DocLibraryService {
...
@@ -165,6 +170,11 @@ public class DocLibraryService {
page
.
setTotal
(
total
);
page
.
setTotal
(
total
);
if
(
total
>
0
&&
total
>
offset
)
{
if
(
total
>
0
&&
total
>
offset
)
{
List
<
Map
<
String
,
Object
>>
list
=
docContentService
.
getBaseMapper
().
queryDocBaseInfoList
(
paramsMap
);
List
<
Map
<
String
,
Object
>>
list
=
docContentService
.
getBaseMapper
().
queryDocBaseInfoList
(
paramsMap
);
list
.
stream
().
map
(
x
->
{
x
.
put
(
"createTime"
,
x
.
get
(
"createTime"
).
toString
().
replace
(
"T"
,
" "
));
x
.
put
(
"recDate"
,
x
.
get
(
"recDate"
).
toString
().
replace
(
"T"
,
" "
));
return
x
;
}).
collect
(
Collectors
.
toList
());
page
.
setRecords
(
list
);
page
.
setRecords
(
list
);
}
}
return
page
;
return
page
;
...
...
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
3965a7b9
...
@@ -672,10 +672,7 @@ SELECT
...
@@ -672,10 +672,7 @@ SELECT
IF
IF
(
`sal`
.
`clean_time`
IS
NOT
NULL
,
'已消除'
,
'未消除'
)
`cleanStatus`
,
(
`sal`
.
`clean_time`
IS
NOT
NULL
,
'已消除'
,
'未消除'
)
`cleanStatus`
,
`sal`
.
`iot_code`
AS
`iotCode`
,
`sal`
.
`iot_code`
AS
`iotCode`
,
date_format
(
`sal`
.
`create_date`
AS
`createDate`
,
`sal`
.
`create_date`
,
'%m-%d %H:%i:%s'
)
AS
`createDate`
,
(
(
SELECT
SELECT
GROUP_CONCAT
(
id
)
GROUP_CONCAT
(
id
)
...
@@ -6026,4 +6023,30 @@ SELECT
...
@@ -6026,4 +6023,30 @@ SELECT
FROM
FROM
`v_fire_fighter`
`fighter`
`v_fire_fighter`
`fighter`
GROUP
BY
GROUP
BY
`fighter`
.
`department_name`
;
`fighter`
.
`department_name`
;
\ No newline at end of file
-- 今日值班与巡查人员
DROP
VIEW
IF
EXISTS
`v_duty_check_person`
;
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_duty_check_person`
AS
SELECT
ddd
.
`duty_name`
AS
`personName`
,
au
.
`MOBILE`
AS
`userPhone`
,
'值班员'
AS
`postName`
FROM
`d_duty_details`
ddd
LEFT
JOIN
b_privilege_agency_user
au
ON
au
.
USER_ID
=
ddd
.
user_id
WHERE
ddd
.
`duty_date`
=
curdate
()
GROUP
BY
ddd
.
`user_id`
UNION
ALL
SELECT
au
.
`REAL_NAME`
AS
`personName`
,
au
.
`MOBILE`
AS
`userPhone`
,
'巡查员'
AS
`postName`
FROM
`p_plan_task`
ppt
LEFT
JOIN
b_privilege_agency_user
au
ON
FIND_IN_SET
(
au
.
USER_ID
,
ppt
.
user_id
)
>
0
WHERE
DATEDIFF
(
begin_time
,
CURRENT_DATE
)
<=
0
AND
DATEDIFF
(
end_time
,
CURRENT_DATE
)
>=
0
GROUP
BY
au
.
USER_ID
;
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/CarMapper.xml
View file @
3965a7b9
...
@@ -209,6 +209,21 @@
...
@@ -209,6 +209,21 @@
AND es.equipment_detail_id = d.id
AND es.equipment_detail_id = d.id
AND oc.car_id = #{id}
AND oc.car_id = #{id}
GROUP BY es.id
GROUP BY es.id
UNION ALL
SELECT
d.`name` AS equipName,
es.qr_code AS code,
es.iot_code AS iotCode,
es.code AS equipCode
FROM
wl_extinguishant_on_car weoc,
wl_equipment_detail d,
wl_equipment_specific es
WHERE
es.equipment_detail_id = d.id
AND weoc.equipment_detail_id = d.id
AND weoc.car_id = #{id}
GROUP BY es.id
</select>
</select>
<select
id=
"getIotCodeList"
resultType=
"String"
>
<select
id=
"getIotCodeList"
resultType=
"String"
>
SELECT
SELECT
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
3965a7b9
...
@@ -166,95 +166,92 @@
...
@@ -166,95 +166,92 @@
</select>
</select>
<select
id=
"page"
resultType=
"java.util.HashMap"
>
<select
id=
"page"
resultType=
"java.util.HashMap"
>
SELECT
SELECT
d.*
wlesal.id,
FROM
wlesal.org_code,
(
wlesal.equipment_specific_id AS fireEquipmentId,
SELECT
wles.equipment_detail_id AS equipDetailId,
wlesal.id,
wles.code AS fireEquipmentCode,
wlesal.org_code,
wles.system_id AS systemId,
wlesal.equipment_specific_id AS fireEquipmentId,
if(wles.code is null,wlesal.equipment_specific_name,concat(wlesal.equipment_specific_name,'(',wles.code,')')) as
wles.equipment_detail_id AS equipDetailId,
fireEquipmentName,
wles.code AS fireEquipmentCode,
concat(wlesal.equipment_specific_name,wlesal.equipment_specific_index_name) as alamContent,
wles.system_id AS systemId,
if(wlesal.confirm_type is null,'未处理','已处理') handleStatus,
if(wles.code is null,wlesal.equipment_specific_name,concat(wlesal.equipment_specific_name,'(',wles.code,')')) as
IF (
fireEquipmentName,
wlesal.clean_time IS NOT NULL,
concat(wlesal.equipment_specific_name,wlesal.equipment_specific_index_name) as alamContent,
'已消除',
if(confirm_type is null,'未处理','已处理') handleStatus,
'未消除'
IF (
) cleanStatus,
wlesal.clean_time IS NOT NULL,
confirm_type as handleType,
'已消除',
wlesal.equipment_index_id AS fireEquipmentIndexId,
'未消除'
wlesal.equipment_specific_index_key AS fireEquipmentSpecificIndexKey,
) cleanStatus,
wlesal.equipment_specific_index_name AS fireEquipmentSpecificIndexName,
confirm_type as handleType,
wles.warehouse_structure_id AS buildId,
wlesal.equipment_index_id AS fireEquipmentIndexId,
we.img AS imgUrl,
wlesal.equipment_specific_index_key AS fireEquipmentSpecificIndexKey,
CASE
wlesal.equipment_specific_index_name AS fireEquipmentSpecificIndexName,
wlesal.equipment_specific_index_value
wles.warehouse_structure_id AS buildId,
WHEN 'true' THEN '是'
we.img AS imgUrl,
WHEN 'false' THEN '否'
CASE
ELSE wlesal.equipment_specific_index_value END
wlesal.equipment_specific_index_value
AS fireEquipmentPointValue,
WHEN 'true' THEN '是'
wlesal.type AS typeCode,
WHEN 'false' THEN '否'
(select type_name from wl_signal_classify sc where sc.type_code = wlesal.type limit 1) as type,
ELSE wlesal.equipment_specific_index_value END
wlesal.create_date AS createDate,
AS fireEquipmentPointValue,
CONCAT_WS(' ', wles.position,wled.area) AS warehouseStructureName, /*告警列表拼接详细地址*/
wlesal.type AS typeCode,
(select
(select type_name from wl_signal_classify sc where sc.type_code = wlesal.type limit 1) as type,
group_concat(fet.`name`)
wlesal.create_date AS createDate,
from f_equipment_fire_equipment as fefe
CONCAT_WS(' ', wles.position,wled.area) AS warehouseStructureName, /*告警列表拼接详细地址*/
left join f_equipment as fet on fet.id = fefe.equipment_id
(select
where fefe.fire_equipment_id = wlesal.equipment_specific_id
group_concat(fet.`name`)
) as equipmentName,
from f_equipment_fire_equipment as fefe
wlesal.equipment_specific_name as equipmentSpecificName,
left join f_equipment as fet on fet.id = fefe.equipment_id
wles.position
where fefe.fire_equipment_id = wlesal.equipment_specific_id
) as equipmentName,
wlesal.equipment_specific_name as equipmentSpecificName,
wles.position
FROM wl_equipment_specific_alarm_log wlesal
FROM wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
) d
<where>
<where>
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
d.warehouseStructureName
like
CONCAT_WS(' ', wles.position,wled.area)
like
concat(concat("%",#{param.warehouseStructureName}),"%")
concat(concat("%",#{param.warehouseStructureName}),"%")
</if>
</if>
<if
test=
"param.equipCode != null and param.equipCode != ''"
>
AND
d.fireEquipmentC
ode like
<if
test=
"param.equipCode != null and param.equipCode != ''"
>
AND
wles.c
ode like
concat(concat("%",#{param.equipCode}),"%")
concat(concat("%",#{param.equipCode}),"%")
</if>
</if>
<if
test=
"param.beginDate!=null"
>
AND d.createDate
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.beginDate!=null"
>
AND wlesal.create_date
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate!=null"
>
AND d.createDate
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.endDate!=null"
>
AND wlesal.create_date
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND d.typeCode = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'BREAKDOWN'"
>
AND wlesal.type = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'FIREALARM'"
>
AND d.typeCode = #{param.alarmType}
</if>
<if
test=
"param.alarmType == 'FIREALARM'"
>
AND wlesal.type = #{param.alarmType}
</if>
<if
test=
"param.orgCode != null and param.orgCode != ''"
>
AND d.org_code = #{param.orgCode}
</if>
<if
test=
"param.isFireAlarm == 'false'"
>
AND wlesal.type != 'FIREALARM'
</if>
<if
test=
"param.type != null and param.type != ''"
>
AND d.typeCode = #{param.type}
</if>
<if
test=
"param.orgCode != null and param.orgCode != ''"
>
AND wlesal.org_code = #{param.orgCode}
</if>
<if
test=
"param.type != null and param.type != ''"
>
AND wlesal.type = #{param.type}
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 1"
>
AND
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 1"
>
AND
d.handleStatus = '已处理'
wlesal.confirm_type IS NOT NULL
</if>
</if>
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 2"
>
AND
<if
test=
"param.handleStatus != null and param.handleStatus != '' and param.handleStatus == 2"
>
AND
d.handleStatus = '未处理'
wlesal.confirm_type IS NULL
</if>
</if>
<if
test=
"param.system != null and param.system != ''"
>
<if
test=
"param.system != null and param.system != ''"
>
AND find_in_set(#{param.system},
d.systemI
d)
AND find_in_set(#{param.system},
wles.system_i
d)
</if>
</if>
<if
test=
"param.buildIds!=null"
>
<if
test=
"param.buildIds!=null"
>
AND
d.buildI
d IN
AND
wlesal.build_i
d IN
<foreach
item=
"item"
collection=
"param.buildIds"
separator=
","
<foreach
item=
"item"
collection=
"param.buildIds"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"param.id!=null and param.id!=''"
>
AND
d.fireEquipmentI
d = #{param.id}
</if>
<if
test=
"param.id!=null and param.id!=''"
>
AND
wlesal.equipment_specific_i
d = #{param.id}
</if>
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 1"
>
AND
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 1"
>
AND
d.cleanStatus = '已消除'
wlesal.clean_time IS NOT NULL
</if>
</if>
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
<if
test=
"param.cleanStatus != null and param.cleanStatus != '' and param.cleanStatus == 2"
>
AND
d.cleanStatus = '未消除'
wlesal.clean_time IS NULL
</if>
</if>
<if
test=
"param.isRemoveShield != null and param.isRemoveShield != ''"
>
AND
<if
test=
"param.isRemoveShield != null and param.isRemoveShield != ''"
>
AND
d.typeCod
e != 'SHIELD'
wlesal.typ
e != 'SHIELD'
</if>
</if>
</where>
</where>
ORDER BY d.createDate DESC
ORDER BY wlesal.create_date DESC
</select>
</select>
<select
id=
"pageAlarmsInfo"
resultType=
"Map"
>
<select
id=
"pageAlarmsInfo"
resultType=
"Map"
>
SELECT
SELECT
...
@@ -1005,7 +1002,7 @@
...
@@ -1005,7 +1002,7 @@
AND systemIds in (#{dto.systemIds})
AND systemIds in (#{dto.systemIds})
</if>
</if>
</where>
</where>
ORDER BY
status DESC,alarmTime
DESC
ORDER BY
alarmTime DESC,status
DESC
</select>
</select>
<select
id=
"getConfirmUser"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog"
>
<select
id=
"getConfirmUser"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
3965a7b9
...
@@ -186,7 +186,7 @@
...
@@ -186,7 +186,7 @@
true as openStatus,
true as openStatus,
spe.is_binding as isBinding,
spe.is_binding as isBinding,
if(spe.code is null,eqdet.name,concat(eqdet.name,'(',spe.code,')')) as displayName,
if(spe.code is null,eqdet.name,concat(eqdet.name,'(',spe.code,')')) as displayName,
'{\"width\":
42, \"height\": 42
}'as initStyle,
'{\"width\":
20, \"height\": 20
}'as initStyle,
'CommonEquip' as componentName,
'CommonEquip' as componentName,
spe.id as sequenceNbr,
spe.id as sequenceNbr,
'equipment' as componentKey,
'equipment' as componentKey,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
3965a7b9
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
) AS isBinding,
) AS isBinding,
IF
IF
( vid.CODE IS NULL, vid.NAME, concat( vid.NAME, '(', vid.CODE, ')' ) ) AS displayName,
( vid.CODE IS NULL, vid.NAME, concat( vid.NAME, '(', vid.CODE, ')' ) ) AS displayName,
'{\"width\":
42, \"height\": 42
}' AS initStyle,
'{\"width\":
20, \"height\": 20
}' AS initStyle,
'CommonEquip' AS componentName,
'CommonEquip' AS componentName,
vid.id AS sequenceNbr,
vid.id AS sequenceNbr,
'equipment' AS componentKey,
'equipment' AS componentKey,
...
@@ -1299,7 +1299,7 @@
...
@@ -1299,7 +1299,7 @@
xhsanhj,
xhsanhj,
xhsangz,
xhsangz,
xhsanpb,
xhsanpb,
(xhsan - xhsanhj- xhsangz-xhsanpb) as xhszc,
ABS
(xhsan - xhsanhj- xhsangz-xhsanpb) as xhszc,
xhsan
xhsan
from
from
(select
(select
...
@@ -1386,7 +1386,7 @@
...
@@ -1386,7 +1386,7 @@
`wl_equipment_specific_index` si,
`wl_equipment_specific_index` si,
`wl_equipment_specific` s
`wl_equipment_specific` s
where
where
si.equipment_index_key = 'FHS_FirePump_
FeedbackModule
Shield'
si.equipment_index_key = 'FHS_FirePump_
Run
Shield'
and si.`value` = 'true'
and si.`value` = 'true'
and si.equipment_specific_id = s.id ) as xfsbpb,
and si.equipment_specific_id = s.id ) as xfsbpb,
(SELECT
(SELECT
...
...
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