Commit d444109f authored by tangwei's avatar tangwei

修改bug

parent 2d20e78b
...@@ -378,7 +378,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i ...@@ -378,7 +378,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
if (result.size()>0 && result != null){ if (result.size()>0 && result != null){
result.forEach(e-> result.forEach(e->
{ {
Long subInstanceId =Long.parseLong(e.get("instance_id").toString()); Long subInstanceId =Long.parseLong(e.get("parent_id").toString());
// Long subInstanceId =Long.parseLong(e.get("instance_id").toString());
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId);
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId);
long id1 = Long.parseLong(e.get("id").toString()); long id1 = Long.parseLong(e.get("id").toString());
...@@ -386,7 +388,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i ...@@ -386,7 +388,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
List<Map<String, Object>> resultSon = formInstanceMapper.getParentId(id1); List<Map<String, Object>> resultSon = formInstanceMapper.getParentId(id1);
if (resultSon.size()>0&& resultSon != null){ if (resultSon.size()>0&& resultSon != null){
resultSon.forEach(r->{ resultSon.forEach(r->{
Long subInstanceId1 =Long.parseLong(r.get("instance_id").toString()); // Long subInstanceId1 =Long.parseLong(r.get("instance_id").toString());
Long subInstanceId1 =Long.parseLong(r.get("parent_id").toString());
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId1); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId1);
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId1); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId1);
long id2 = Long.parseLong(r.get("id").toString()); long id2 = Long.parseLong(r.get("id").toString());
...@@ -394,7 +398,8 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i ...@@ -394,7 +398,8 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
List<Map<String, Object>> resultSons = formInstanceMapper.getParentId(id2); List<Map<String, Object>> resultSons = formInstanceMapper.getParentId(id2);
if (resultSons.size()>0 && !ValidationUtil.isEmpty(resultSons)){ if (resultSons.size()>0 && !ValidationUtil.isEmpty(resultSons)){
resultSons.forEach(z->{ resultSons.forEach(z->{
Long subInstanceId2 =Long.parseLong(z.get("instance_id").toString()); // Long subInstanceId2 =Long.parseLong(z.get("instance_id").toString());
Long subInstanceId2 =Long.parseLong(z.get("parent_id").toString());
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId2); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgCode", bizOrgCode, subInstanceId2);
formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId2); formInstanceMapper.updateFormInstanceByInstanceAndFieldName("bizOrgName", bizOrgName, subInstanceId2);
long id3 = Long.parseLong(z.get("id").toString()); long id3 = Long.parseLong(z.get("id").toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment