ru.abyss.settings.importer.ImporterV11 Maven / Gradle / Ivy
/*
* Copyright Бездна (c) 2018.
*/
package ru.abyss.settings.importer;
/**
* @author Minu <[email protected]>
* @since 29.06.2018 21:52:26
*/
@ImporterVersion("1.1")
public class ImporterV11 extends ImporterV12 {
@Override
protected String getDestFieldMapper(ImportTable table, String field) {
// в версии 1.2 в таблице logistics.tplatforms поле length переименовалось в height
if ("LOGISTICS.TPLATFORMS".equalsIgnoreCase(table.toString()) && "length".equalsIgnoreCase(field))
field = "height";
return super.getDestFieldMapper(table, field);
}
}