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
bf28de42
Commit
bf28de42
authored
Jun 02, 2022
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
e77935f4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
12 deletions
+40
-12
FormInstanceMapper.java
...va/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
+7
-0
FormInstanceServiceImpl.java
...oin/equipmanage/service/impl/FormInstanceServiceImpl.java
+23
-12
FormInstanceMapper.xml
...em-equip/src/main/resources/mapper/FormInstanceMapper.xml
+10
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FormInstanceMapper.java
View file @
bf28de42
...
@@ -190,4 +190,11 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
...
@@ -190,4 +190,11 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
List
<
Map
<
String
,
Long
>>
getBuildVideoCount
();
List
<
Map
<
String
,
Long
>>
getBuildVideoCount
();
int
updateFormInstanceByInstanceAndFieldName
(
String
name
,
String
value
,
Long
instanceId
);
int
updateFormInstanceByInstanceAndFieldName
(
String
name
,
String
value
,
Long
instanceId
);
/**
* 查询子节点
* @param id
* @return
*/
List
<
String
>
selectChildListdate
(
@Param
(
"id"
)
Long
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 @
bf28de42
...
@@ -156,22 +156,33 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
...
@@ -156,22 +156,33 @@ public class FormInstanceServiceImpl extends ServiceImpl<FormInstanceMapper, For
boolean
saveOrUpdateBatch
=
this
.
saveOrUpdateBatch
(
entities
);
boolean
saveOrUpdateBatch
=
this
.
saveOrUpdateBatch
(
entities
);
//字节点单位修改
//字节点单位修改
Map
<
String
,
String
>
mapid
=
formInstanceMapper
.
getChildListdate
(
instanceId
);
// Map<String, String> mapid= formInstanceMapper.getChildListdate(instanceId);
if
(
mapid
.
get
(
"ids"
)!=
null
&&
!
mapid
.
get
(
"ids"
).
equals
(
""
)){
// if(mapid.get("ids")!=null && !mapid.get("ids").equals("")){
String
[]
listid
=
mapid
.
get
(
"ids"
).
split
(
","
);
// String[] listid= mapid.get("ids").split(",");
if
(
listid
!=
null
){
// if(listid!=null){
List
<
String
>
listiods
=
new
ArrayList
<>();
// List<String> listiods= new ArrayList<>();
for
(
String
s
:
listid
)
{
// for (String s : listid) {
if
(!
""
.
equals
(
s
)){
// if(!"".equals(s)){
listiods
.
add
(
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");
// }
//
//
// }
// 修改bug---6163
List
<
String
>
listiods
=
formInstanceMapper
.
selectChildListdate
(
instanceId
);
if
(!
CollectionUtils
.
isEmpty
(
listiods
)){
String
bizOrgCode
=
map
.
get
(
"bizOrgCode"
).
toString
();
String
bizOrgCode
=
map
.
get
(
"bizOrgCode"
).
toString
();
String
bizOrgName
=
map
.
get
(
"bizOrgName"
).
toString
();
String
bizOrgName
=
map
.
get
(
"bizOrgName"
).
toString
();
formInstanceMapper
.
updateListChild
(
bizOrgCode
,
listiods
,
"bizOrgCode"
);
formInstanceMapper
.
updateListChild
(
bizOrgCode
,
listiods
,
"bizOrgCode"
);
formInstanceMapper
.
updateListChild
(
bizOrgName
,
listiods
,
"bizOrgName"
);
formInstanceMapper
.
updateListChild
(
bizOrgName
,
listiods
,
"bizOrgName"
);
}
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FormInstanceMapper.xml
View file @
bf28de42
...
@@ -548,4 +548,14 @@ AND field_name =#{name}
...
@@ -548,4 +548,14 @@ AND field_name =#{name}
</update>
</update>
<select
id=
"selectChildListdate"
resultType=
"java.lang.String"
>
SELECT distinct a.instance_id FROM
(select wl_form_instance.instance_id ,wl_form_instance.field_value
from wl_form_instance where wl_form_instance.group_type in('building','room','floor') and field_name='parentId'
) a
where
a.field_value = #{id}
GROUP BY a.instance_id
</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