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
387c32fa
Commit
387c32fa
authored
Mar 30, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
86704053
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
2 deletions
+59
-2
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+7
-1
FormInstanceMapper.java
...va/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
+8
-0
FormInstanceServiceImpl.java
...oin/equipmanage/service/impl/FormInstanceServiceImpl.java
+22
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+2
-1
FormInstanceMapper.xml
...em-equip/src/main/resources/mapper/FormInstanceMapper.xml
+20
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
387c32fa
...
@@ -866,7 +866,12 @@ public class TopographyController extends AbstractBaseController {
...
@@ -866,7 +866,12 @@ public class TopographyController extends AbstractBaseController {
List
<
Date
>
dates
=
new
ArrayList
<>();
List
<
Date
>
dates
=
new
ArrayList
<>();
for
(
IotDataVO
vo
:
timeList
)
{
for
(
IotDataVO
vo
:
timeList
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_T_PATTERN
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_T_PATTERN
);
dates
.
add
(
sdf
.
parse
(
String
.
valueOf
(
vo
.
getValue
())));
logger
.
info
(
"返回时间===================================("
+
vo
.
getValue
()
+
") ======================================="
);
Date
date
=
sdf
.
parse
(
String
.
valueOf
(
vo
.
getValue
()));
sdf
.
setTimeZone
(
TimeZone
.
getTimeZone
(
"Asia/Shanghai"
));
String
time
=
sdf
.
format
(
date
);
dates
.
add
(
sdf
.
parse
(
time
));
logger
.
info
(
"返回时间===================================("
+
sdf
.
parse
(
String
.
valueOf
(
vo
.
getValue
()))
+
") ======================================="
);
}
}
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCodeAndTrend
(
iotCode
);
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCodeAndTrend
(
iotCode
);
if
(
0
<
indexes
.
size
())
{
if
(
0
<
indexes
.
size
())
{
...
@@ -922,4 +927,5 @@ public class TopographyController extends AbstractBaseController {
...
@@ -922,4 +927,5 @@ public class TopographyController extends AbstractBaseController {
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
View file @
387c32fa
...
@@ -3,6 +3,7 @@ package com.yeejoin.equipmanage.mapper;
...
@@ -3,6 +3,7 @@ package com.yeejoin.equipmanage.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.equipmanage.common.entity.FormInstance
;
import
com.yeejoin.equipmanage.common.entity.FormInstance
;
import
com.yeejoin.equipmanage.common.entity.Video
;
import
com.yeejoin.equipmanage.common.entity.dto.BuildIsRiskDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.BuildIsRiskDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.BuildSearchDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.BuildSearchDTO
;
import
com.yeejoin.equipmanage.common.entity.vo.BuildingVideoListVO
;
import
com.yeejoin.equipmanage.common.entity.vo.BuildingVideoListVO
;
...
@@ -120,6 +121,13 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
...
@@ -120,6 +121,13 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
*/
*/
int
saveStucture
(
Map
<
String
,
Object
>
formKeyMap
);
int
saveStucture
(
Map
<
String
,
Object
>
formKeyMap
);
Map
<
String
,
String
>
getChildListdate
(
@Param
(
"id"
)
Long
id
);
void
updateListChild
(
@Param
(
"value"
)
String
value
,
@Param
(
"ids"
)
List
<
String
>
ids
,
@Param
(
"fieldName"
)
String
fieldName
);
/**
/**
* 获取仓库父类详细位置
* 获取仓库父类详细位置
* @param id
* @param id
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FormInstanceServiceImpl.java
View file @
387c32fa
...
@@ -154,6 +154,28 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
...
@@ -154,6 +154,28 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
}
}
//4.保存
//4.保存
boolean
saveOrUpdateBatch
=
this
.
saveOrUpdateBatch
(
entities
);
boolean
saveOrUpdateBatch
=
this
.
saveOrUpdateBatch
(
entities
);
//字节点单位修改
Map
<
String
,
String
>
mapid
=
formInstanceMapper
.
getChildListdate
(
instanceId
);
if
(
mapid
!=
null
){
String
[]
listid
=
mapid
.
get
(
"ids"
).
split
(
","
);
if
(
listid
!=
null
){
List
<
String
>
listiods
=
new
ArrayList
<>();
for
(
String
s
:
listid
)
{
if
(!
""
.
equals
(
s
)){
listiods
.
add
(
s
);
}
}
String
bizOrgCode
=
map
.
get
(
"bizOrgCode"
).
toString
();
String
bizOrgName
=
map
.
get
(
"bizOrgName"
).
toString
();
formInstanceMapper
.
updateListChild
(
bizOrgCode
,
listiods
,
"bizOrgCode"
);
formInstanceMapper
.
updateListChild
(
bizOrgName
,
listiods
,
"bizOrgName"
);
}
}
// syncDataService.syncCreatedFormInstance(entities);
// syncDataService.syncCreatedFormInstance(entities);
if
(
saveOrUpdateBatch
&&
StringUtils
.
isNotBlank
(
groupType
)
&&
syncSwitch
)
{
if
(
saveOrUpdateBatch
&&
StringUtils
.
isNotBlank
(
groupType
)
&&
syncSwitch
)
{
//数据同步
//数据同步
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
387c32fa
...
@@ -234,7 +234,8 @@
...
@@ -234,7 +234,8 @@
AND find_in_set(#{param.system},wles.system_id)
AND find_in_set(#{param.system},wles.system_id)
</if>
</if>
<if
test=
"param.buildIds!=null"
>
<if
test=
"param.buildIds!=null"
>
AND wlesal.build_id IN
-- AND wlesal.build_id IN
AND wles.warehouse_structure_id 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>
...
...
amos-boot-system-equip/src/main/resources/mapper/FormInstanceMapper.xml
View file @
387c32fa
...
@@ -38,6 +38,26 @@
...
@@ -38,6 +38,26 @@
</if>
</if>
order by instanceId desc
order by instanceId desc
</select>
</select>
<select
id=
"getChildListdate"
resultType=
"map"
>
SELECT getChildListdate ( #{id} ) ids
</select>
<update
id=
"updateListChild"
>
UPDATE wl_form_instance set field_value =#{value}
where wl_form_instance.group_type in('building','room','floor')
and wl_form_instance.instance_id in
<foreach
collection=
"ids"
index=
"index"
item=
"id"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
and wl_form_instance.field_name=#{fieldName}
</update>
<select
id=
"queryForMapList"
resultType=
"map"
>
<select
id=
"queryForMapList"
resultType=
"map"
>
select
select
d.*
d.*
...
...
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