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
16e5c53c
Commit
16e5c53c
authored
Mar 18, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
4bd692c6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
EquipmentServiceImpl.java
...eejoin/equipmanage/service/impl/EquipmentServiceImpl.java
+3
-6
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+5
-1
DocLibraryService.java
...in/amos/knowledgebase/face/service/DocLibraryService.java
+10
-0
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+1
-4
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentServiceImpl.java
View file @
16e5c53c
...
@@ -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/FireFightingSystemServiceImpl.java
View file @
16e5c53c
...
@@ -603,7 +603,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -603,7 +603,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-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/service/DocLibraryService.java
View file @
16e5c53c
...
@@ -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 @
16e5c53c
...
@@ -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
)
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
16e5c53c
...
@@ -1256,7 +1256,7 @@
...
@@ -1256,7 +1256,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
...
@@ -1343,7 +1343,7 @@
...
@@ -1343,7 +1343,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