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
a3a20fb4
Commit
a3a20fb4
authored
Jun 16, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3c858ee9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
102 additions
and
46 deletions
+102
-46
OrganizationMapper.java
...n/amos/boot/module/jcs/api/mapper/OrganizationMapper.java
+3
-1
OrganizationMapper.xml
...-jcs-api/src/main/resources/mapper/OrganizationMapper.xml
+16
-18
EquipmentSpecificAlarmMapper.java
...join/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
+2
-0
ManufacturerInfoMapper.java
...om/yeejoin/equipmanage/mapper/ManufacturerInfoMapper.java
+4
-2
EquipmentServiceImpl.java
...eejoin/equipmanage/service/impl/EquipmentServiceImpl.java
+2
-8
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+1
-0
OrganizationImpl.java
...os/boot/module/jcs/biz/service/impl/OrganizationImpl.java
+45
-13
EquipmentDetailMapper.xml
...equip/src/main/resources/mapper/EquipmentDetailMapper.xml
+2
-2
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+7
-0
ManufacturerInfoMapper.xml
...quip/src/main/resources/mapper/ManufacturerInfoMapper.xml
+20
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/OrganizationMapper.java
View file @
a3a20fb4
...
@@ -15,7 +15,9 @@ import java.util.Map;
...
@@ -15,7 +15,9 @@ import java.util.Map;
public
interface
OrganizationMapper
extends
BaseMapper
<
Organization
>
{
public
interface
OrganizationMapper
extends
BaseMapper
<
Organization
>
{
Page
<
Map
<
String
,
Object
>>
getOrganizationInfo
(
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getOrganizationInfo
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Map
<
String
,
Object
>
getTeamLeader
();
Page
<
Map
<
String
,
Object
>>
getOrganizationList
(
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Page
<
Map
<
String
,
Object
>>
getOrganizationList
(
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/OrganizationMapper.xml
View file @
a3a20fb4
...
@@ -5,12 +5,23 @@
...
@@ -5,12 +5,23 @@
<select
id=
"getOrganizationInfo"
resultType=
"java.util.Map"
>
<select
id=
"getOrganizationInfo"
resultType=
"java.util.Map"
>
SELECT
( SELECT COUNT( 1 ) FROM cb_organization_user cou WHERE cou.emergency_team_id = co.sequence_nbr ) AS
value,
co.emergency_team_name AS name
FROM
cb_organization co
WHERE co.is_delete = 0
ORDER BY
co.sort desc
LIMIT 5
</select>
<select
id=
"getTeamLeader"
resultType=
"Map"
>
SELECT
SELECT
(
(
SELECT
SELECT
Ifnull (GROUP_CONCAT( cou.biz_org_name ),'') AS
Ifnull (GROUP_CONCAT( cou.biz_org_name ),'') AS
value
value
FROM
FROM
(
(
...
@@ -33,24 +44,11 @@
...
@@ -33,24 +44,11 @@
AND cdfi.field_code = 'userId'
AND cdfi.field_code = 'userId'
) temp
) temp
LEFT JOIN cb_org_usr cou ON cou.sequence_nbr = temp.userId
LEFT JOIN cb_org_usr cou ON cou.sequence_nbr = temp.userId
WHERE cou.is_delete = 0
WHERE cou.is_delete = 0
) AS
) AS
value
value
,
,
'当值值长' AS name UNION
'当值值长' AS name
(
SELECT
( SELECT COUNT( 1 ) FROM cb_organization_user cou WHERE cou.emergency_team_id = co.sequence_nbr ) AS
value
,
co.emergency_team_name AS name
FROM
cb_organization co
WHERE co.is_delete = 0
ORDER BY
co.sort desc
LIMIT 5
)
</select>
</select>
<select
id=
"getOrganizationList"
resultType=
"java.util.Map"
>
<select
id=
"getOrganizationList"
resultType=
"java.util.Map"
>
SELECT
SELECT
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
View file @
a3a20fb4
...
@@ -232,4 +232,6 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
...
@@ -232,4 +232,6 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
List
<
Map
<
String
,
Object
>>
stationInfo
();
List
<
Map
<
String
,
Object
>>
stationInfo
();
void
updateStatusByAlarm
();
void
updateStatusByAlarm
();
void
clearAlarmData
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/ManufacturerInfoMapper.java
View file @
a3a20fb4
...
@@ -2,6 +2,9 @@ package com.yeejoin.equipmanage.mapper;
...
@@ -2,6 +2,9 @@ package com.yeejoin.equipmanage.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.equipmanage.common.entity.ManufacturerInfo
;
import
com.yeejoin.equipmanage.common.entity.ManufacturerInfo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* Mapper 接口
* Mapper 接口
...
@@ -14,7 +17,6 @@ public interface ManufacturerInfoMapper extends BaseMapper<ManufacturerInfo> {
...
@@ -14,7 +17,6 @@ public interface ManufacturerInfoMapper extends BaseMapper<ManufacturerInfo> {
int
checkName
(
String
name
,
Long
id
);
int
checkName
(
String
name
,
Long
id
);
String
checkDelete
(
Long
id
);
List
<
String
>
checkDelete
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentServiceImpl.java
View file @
a3a20fb4
...
@@ -383,14 +383,8 @@ public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment
...
@@ -383,14 +383,8 @@ public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, Equipment
@Override
@Override
public
String
checkDelete
(
List
<
Long
>
ids
)
{
public
String
checkDelete
(
List
<
Long
>
ids
)
{
String
res
=
""
;
List
<
String
>
s
=
manufacturerInfoMapper
.
checkDelete
(
ids
);
for
(
Long
id
:
ids
)
{
return
String
.
join
(
","
,
s
);
String
s
=
manufacturerInfoMapper
.
checkDelete
(
id
);
if
(
s
!=
null
&&
!(
""
).
equals
(
s
))
{
res
=
res
+
s
+
" , "
;
}
}
return
res
;
}
}
@Override
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
a3a20fb4
...
@@ -1004,6 +1004,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1004,6 +1004,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
equipmentDetailService
.
removeById
(
equipmentSpecific
.
getEquipmentDetailId
());
equipmentDetailService
.
removeById
(
equipmentSpecific
.
getEquipmentDetailId
());
}
}
if
(
res
>
0
)
{
if
(
res
>
0
)
{
equipmentSpecificAlarmMapper
.
clearAlarmData
(
id
);
// 删除设备动态表单扩展属性
// 删除设备动态表单扩展属性
return
formInstanceEquipService
.
deleteInstanceById
(
id
);
return
formInstanceEquipService
.
deleteInstanceById
(
id
);
}
else
{
}
else
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrganizationImpl.java
View file @
a3a20fb4
...
@@ -38,32 +38,64 @@ public class OrganizationImpl extends BaseService<Organization, Organization, Or
...
@@ -38,32 +38,64 @@ public class OrganizationImpl extends BaseService<Organization, Organization, Or
@Override
@Override
public
Page
<
Map
<
String
,
Object
>>
getOrganizationInfo
(
Page
<
Map
<
String
,
Object
>>
page
,
String
bizOrgCode
)
{
public
Page
<
Map
<
String
,
Object
>>
getOrganizationInfo
(
Page
<
Map
<
String
,
Object
>>
page
,
String
bizOrgCode
)
{
Page
<
Map
<
String
,
Object
>>
page1
=
new
Page
<>();
Page
<
Map
<
String
,
Object
>>
page1
=
new
Page
<>();
List
<
Map
<
String
,
Object
>>
list
=
organizationMapper
.
getOrganizationInfo
(
page
,
bizOrgCode
).
getRecords
(
);
List
<
Map
<
String
,
Object
>>
list
=
organizationMapper
.
getOrganizationInfo
(
bizOrgCode
);
LambdaQueryWrapper
<
Organization
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Organization
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderByDesc
(
Organization:
:
getSort
);
wrapper
.
orderByDesc
(
Organization:
:
getSort
);
List
<
Organization
>
organizations
=
this
.
baseMapper
.
selectList
(
wrapper
);
List
<
Organization
>
organizations
=
this
.
baseMapper
.
selectList
(
wrapper
);
List
<
Map
<
String
,
Object
>>
res
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
res
=
new
ArrayList
<>();
if
(
0
<
list
.
size
())
{
if
(
0
<
list
.
size
())
{
for
(
Map
<
String
,
Object
>
map
:
list
)
{
// 获取值长
Map
<
String
,
Object
>
tempMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resMap
=
this
.
baseMapper
.
getTeamLeader
();
if
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"value"
)))
{
Map
<
String
,
Object
>
leaderMap
=
new
HashMap
<>();
tempMap
.
put
(
"name"
,
map
.
get
(
"name"
)
+
""
);
resMap
.
put
(
"name"
,
"当值值长"
);
tempMap
.
put
(
"value"
,
""
);
resMap
.
put
(
"value"
,
"aaa"
);
}
else
{
if
(
ObjectUtils
.
isEmpty
(
resMap
.
get
(
"value"
)))
{
tempMap
.
put
(
"name"
,
map
.
get
(
"name"
)
+
" "
+
map
.
get
(
"value"
)
+
"人"
);
leaderMap
.
put
(
"name"
,
resMap
.
get
(
"name"
)
+
""
);
Organization
organization
=
organizations
.
stream
().
filter
(
x
->
x
.
getEmergencyTeamName
().
equals
(
map
.
get
(
"name"
))).
collect
(
Collectors
.
toList
()).
get
(
0
);
leaderMap
.
put
(
"value"
,
""
);
String
[]
nameArr
=
organization
.
getGroupLeader
().
split
(
","
);
}
else
{
List
<
Organization
>
collect
=
organizations
.
stream
().
filter
(
x
->
x
.
getEmergencyTeamName
().
equals
(
resMap
.
get
(
"name"
))).
collect
(
Collectors
.
toList
());
if
(
0
<
collect
.
size
())
{
Organization
organizationEntity
=
collect
.
get
(
0
);
String
[]
nameArr
=
organizationEntity
.
getGroupLeader
().
split
(
","
);
List
<
String
>
nameList
=
Arrays
.
asList
(
nameArr
);
List
<
String
>
nameList
=
Arrays
.
asList
(
nameArr
);
String
[]
telArr
=
new
String
[
nameList
.
size
()];
String
[]
telArr
=
new
String
[
nameList
.
size
()];
if
(
ObjectUtils
.
isNotEmpty
(
organization
.
getGroupLeaderTel
()))
{
if
(
ObjectUtils
.
isNotEmpty
(
organization
Entity
.
getGroupLeaderTel
()))
{
telArr
=
organization
.
getGroupLeaderTel
().
split
(
"\n"
);
telArr
=
organization
Entity
.
getGroupLeaderTel
().
split
(
"\n"
);
}
}
List
<
String
>
telList
=
Arrays
.
asList
(
telArr
);
List
<
String
>
telList
=
Arrays
.
asList
(
telArr
);
List
<
String
>
valueList
=
new
ArrayList
<>();
List
<
String
>
valueList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
nameList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
nameList
.
size
();
i
++)
{
valueList
.
add
(
nameList
.
get
(
i
)
+
"-"
+
telList
.
get
(
i
));
valueList
.
add
(
nameList
.
get
(
i
)
+
"-"
+
telList
.
get
(
i
));
}
}
tempMap
.
put
(
"value"
,
String
.
join
(
","
,
valueList
));
leaderMap
.
put
(
"name"
,
resMap
.
get
(
"name"
)
+
""
);
leaderMap
.
put
(
"value"
,
String
.
join
(
","
,
valueList
));
}
}
res
.
add
(
leaderMap
);
for
(
Map
<
String
,
Object
>
map
:
list
)
{
Map
<
String
,
Object
>
tempMap
=
new
HashMap
<>();
if
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"value"
)))
{
tempMap
.
put
(
"name"
,
map
.
get
(
"name"
)
+
""
);
tempMap
.
put
(
"value"
,
""
);
}
else
{
tempMap
.
put
(
"name"
,
map
.
get
(
"name"
)
+
" "
+
map
.
get
(
"value"
)
+
"人"
);
List
<
Organization
>
organizationList
=
organizations
.
stream
().
filter
(
x
->
x
.
getEmergencyTeamName
().
equals
(
map
.
get
(
"name"
))).
collect
(
Collectors
.
toList
());
if
(
0
<
organizationList
.
size
())
{
Organization
organization
=
organizationList
.
get
(
0
);
String
[]
nameArr
=
organization
.
getGroupLeader
().
split
(
","
);
List
<
String
>
nameList
=
Arrays
.
asList
(
nameArr
);
String
[]
telArr
=
new
String
[
nameList
.
size
()];
if
(
ObjectUtils
.
isNotEmpty
(
organization
.
getGroupLeaderTel
()))
{
telArr
=
organization
.
getGroupLeaderTel
().
split
(
"\n"
);
}
List
<
String
>
telList
=
Arrays
.
asList
(
telArr
);
List
<
String
>
valueList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
nameList
.
size
();
i
++)
{
valueList
.
add
(
nameList
.
get
(
i
)
+
"-"
+
telList
.
get
(
i
));
}
tempMap
.
put
(
"value"
,
String
.
join
(
","
,
valueList
));
}
}
}
res
.
add
(
tempMap
);
res
.
add
(
tempMap
);
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentDetailMapper.xml
View file @
a3a20fb4
...
@@ -155,10 +155,10 @@
...
@@ -155,10 +155,10 @@
<select
id=
"checkDelete"
resultType=
"String"
>
<select
id=
"checkDelete"
resultType=
"String"
>
select
select
(select name from wl_equipment_detail eq where eq.id = sto.equipment_detail_id) as name
(select name from wl_equipment_detail eq where eq.id = sto.equipment_detail_id) as name
from wl_stock_detail as sto
from wl_stock_detail as sto
where
where
equipment_detail_id = #{id}
equipment_detail_id = #{id}
group by equipment_detail_id
group by equipment_detail_id
</select>
</select>
<select
id=
"getWareId"
resultType=
"Long"
>
<select
id=
"getWareId"
resultType=
"Long"
>
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
a3a20fb4
...
@@ -1589,4 +1589,10 @@
...
@@ -1589,4 +1589,10 @@
GROUP BY
GROUP BY
a.`name`
a.`name`
</select>
</select>
<delete
id=
"clearAlarmData"
>
DELETE FROM wl_equipment_specific_alarm WHERE equipment_specific_id = #{equipmentSpecificId};
DELETE FROM wl_equipment_specific_alarm_log WHERE equipment_specific_id = #{equipmentSpecificId};
DELETE FROM wl_equipment_alarm_report_day WHERE equipment_specific_id = #{equipmentSpecificId};
</delete>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/ManufacturerInfoMapper.xml
View file @
a3a20fb4
...
@@ -26,8 +26,26 @@
...
@@ -26,8 +26,26 @@
</select>
</select>
<select
id=
"checkDelete"
resultType=
"string"
>
<select
id=
"checkDelete"
resultType=
"string"
>
select name from wl_equipment_detail where equipment_id = #{id}
select
name
from
wl_equipment_detail
<where>
equipment_id IN
<foreach
collection=
"ids"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</where>
union
union
select name from wl_car where equipment_id = #{id}
select
name
from
wl_car
<where>
equipment_id IN
<foreach
collection=
"ids"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</where>
</select>
</select>
</mapper>
</mapper>
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