|
@ -94,7 +94,7 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV |
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_id, item.getGroup_id())); |
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_id, item.getGroup_id())); |
|
|
if (CollUtil.isNotEmpty(schBaseVehiclematerialgroups)) { |
|
|
if (CollUtil.isNotEmpty(schBaseVehiclematerialgroups)) { |
|
|
item.setHasChildren(true); |
|
|
item.setHasChildren(true); |
|
|
item.setChildren(schBaseVehiclematerialgroups); |
|
|
/*item.setChildren(schBaseVehiclematerialgroups);*/ |
|
|
} |
|
|
} |
|
|
item.setHas_work(true); |
|
|
item.setHas_work(true); |
|
|
}); |
|
|
}); |
|
@ -192,6 +192,13 @@ public class SchBaseVehiclematerialgroupServiceImpl extends ServiceImpl<SchBaseV |
|
|
List<SchBaseVehiclematerialgroup> schBaseVehiclematerialgroups = vehiclematerialgroupMapper.selectList(Wrappers.lambdaQuery(SchBaseVehiclematerialgroup.class) |
|
|
List<SchBaseVehiclematerialgroup> schBaseVehiclematerialgroups = vehiclematerialgroupMapper.selectList(Wrappers.lambdaQuery(SchBaseVehiclematerialgroup.class) |
|
|
.eq(SchBaseVehiclematerialgroup::getVehicle_code, entity.getString("vehicle_code")) |
|
|
.eq(SchBaseVehiclematerialgroup::getVehicle_code, entity.getString("vehicle_code")) |
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_id, entity.getString("group_id"))); |
|
|
.ne(SchBaseVehiclematerialgroup::getGroup_id, entity.getString("group_id"))); |
|
|
|
|
|
if(ObjectUtil.isNotEmpty(schBaseVehiclematerialgroups)){ |
|
|
|
|
|
schBaseVehiclematerialgroups.forEach(item->{ |
|
|
|
|
|
if(StrUtil.isEmpty(item.getRegion_code())){ |
|
|
|
|
|
item.setRegion_code("未知"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
return schBaseVehiclematerialgroups; |
|
|
return schBaseVehiclematerialgroups; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|