|
@ -34,7 +34,7 @@ public class CubeMappingService extends BaseJpaService<CubeMapping, CubeMappingD
|
|
|
}
|
|
|
|
|
|
public List<CubeMappingModel> findSencodRelationDimension(int cubeId,int secondRelationId) {
|
|
|
String sql = "SELECT ocm.*,od.`code`,od.data_type from olap_cube_mapping ocm " +
|
|
|
String sql = "SELECT ocm.*,od.`code` as dimensionCode,od.data_type from olap_cube_mapping ocm " +
|
|
|
" LEFT JOIN olap_dimension od on ocm.dimension_id = od.id " +
|
|
|
" where ocm.cube_id = ? and ocm.second_relation_id = ? ";
|
|
|
Object param[] = {cubeId,secondRelationId};
|