|
@@ -22,7 +22,6 @@ import com.persagy.proxy.migration.model.MigrationInfo;
|
|
import com.persagy.proxy.migration.service.IDataMigration;
|
|
import com.persagy.proxy.migration.service.IDataMigration;
|
|
import com.persagy.proxy.migration.service.IDataMigrationProcess;
|
|
import com.persagy.proxy.migration.service.IDataMigrationProcess;
|
|
import com.persagy.proxy.migration.service.IDefineDataMigration;
|
|
import com.persagy.proxy.migration.service.IDefineDataMigration;
|
|
-import com.persagy.proxy.migration.service.Impl.MigrationAbstractServiceImpl;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -147,77 +146,39 @@ public class DefineInfoMigration extends MigrationAbstractServiceImpl<ObjectInfo
|
|
sqls.append(" delete from dt_define_info where project_id='"+context.getProjectId()+"' or group_code='"+context.getGroupCode()+"'; \n ");
|
|
sqls.append(" delete from dt_define_info where project_id='"+context.getProjectId()+"' or group_code='"+context.getGroupCode()+"'; \n ");
|
|
sqls.append(MigrationConstant.DEF_FUNCID_SQL_PRE);
|
|
sqls.append(MigrationConstant.DEF_FUNCID_SQL_PRE);
|
|
admDefineList.forEach(infoDefine -> {
|
|
admDefineList.forEach(infoDefine -> {
|
|
|
|
+
|
|
sqls.append("(");
|
|
sqls.append("(");
|
|
sqls.append("'").append(infoDefine.getId()).append("',");
|
|
sqls.append("'").append(infoDefine.getId()).append("',");
|
|
- sqls.append("'").append(infoDefine.getCode()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getName()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getAliasCode()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getAliasName()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getClassCode()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getGroupCode()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getProjectId()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getCategory()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getFirstTag()).append("',");
|
|
|
|
- if (infoDefine.getSecondTag() == null) {
|
|
|
|
- sqls.append(infoDefine.getSecondTag()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getSecondTag()).append("',");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- sqls.append("'").append(infoDefine.getPriority()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getInputMode()).append("',");
|
|
|
|
-
|
|
|
|
- if (infoDefine.getUnit() == null) {
|
|
|
|
- sqls.append(infoDefine.getUnit()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getUnit()).append("',");
|
|
|
|
- }
|
|
|
|
|
|
+ super.processNull(sqls, infoDefine.getCode());
|
|
|
|
+ super.processNull(sqls, infoDefine.getName());
|
|
|
|
+ super.processNull(sqls, infoDefine.getAliasCode());
|
|
|
|
+ super.processNull(sqls, infoDefine.getAliasName());
|
|
|
|
+ super.processNull(sqls, infoDefine.getClassCode());
|
|
|
|
+ super.processNull(sqls, infoDefine.getGroupCode());
|
|
|
|
+ super.processNull(sqls, infoDefine.getProjectId());
|
|
|
|
+
|
|
|
|
+ super.processNull(sqls, infoDefine.getCategory());
|
|
|
|
+ super.processNull(sqls, infoDefine.getFirstTag());
|
|
|
|
+ super.processNull(sqls, infoDefine.getSecondTag());
|
|
|
|
+ super.processNull(sqls, infoDefine.getPriority());
|
|
|
|
+ super.processNull(sqls, infoDefine.getInputMode());
|
|
|
|
+ super.processNull(sqls, infoDefine.getUnit());
|
|
|
|
+ super.processNull(sqls, infoDefine.getDataType());
|
|
|
|
|
|
- sqls.append("'").append(infoDefine.getDataType()).append("',");
|
|
|
|
sqls.append(infoDefine.getIsMultiple()?1:0).append(",");
|
|
sqls.append(infoDefine.getIsMultiple()?1:0).append(",");
|
|
sqls.append(infoDefine.getIsRegion()?1:0).append(",");
|
|
sqls.append(infoDefine.getIsRegion()?1:0).append(",");
|
|
-
|
|
|
|
- if (infoDefine.getFormater() == null) {
|
|
|
|
- sqls.append(infoDefine.getFormater()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getFormater()).append("',");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (infoDefine.getDataSource() == null) {
|
|
|
|
- sqls.append(infoDefine.getDataSource()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getDataSource()).append("',");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (infoDefine.getRemark() == null) {
|
|
|
|
- sqls.append(infoDefine.getRemark()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getRemark()).append("',");
|
|
|
|
- }
|
|
|
|
|
|
+ super.processNull(sqls, infoDefine.getFormater());
|
|
|
|
+ super.processNull(sqls, infoDefine.getDataSource());
|
|
|
|
+ super.processNull(sqls, infoDefine.getRemark());
|
|
sqls.append(infoDefine.getSubFlag()?1:0).append(",");
|
|
sqls.append(infoDefine.getSubFlag()?1:0).append(",");
|
|
sqls.append(infoDefine.getWeakPoint()?1:0).append(",");
|
|
sqls.append(infoDefine.getWeakPoint()?1:0).append(",");
|
|
- sqls.append(infoDefine.getShowOrder()).append(",");
|
|
|
|
-
|
|
|
|
- if (infoDefine.getVersion() == null) {
|
|
|
|
- sqls.append(infoDefine.getVersion()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getVersion()).append("',");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- sqls.append(infoDefine.getSourceFrom()).append(",");
|
|
|
|
- sqls.append("'").append(infoDefine.getCreator()).append("',");
|
|
|
|
- sqls.append("'").append(infoDefine.getCreationTime()).append("',");
|
|
|
|
- if (infoDefine.getModifier() == null) {
|
|
|
|
- sqls.append(infoDefine.getModifier()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getModifier()).append("',");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (infoDefine.getModifiedTime() == null) {
|
|
|
|
- sqls.append(infoDefine.getModifiedTime()).append(",");
|
|
|
|
- } else {
|
|
|
|
- sqls.append("'").append(infoDefine.getModifiedTime()).append("',");
|
|
|
|
- }
|
|
|
|
|
|
+ super.processNull(sqls, infoDefine.getShowOrder());
|
|
|
|
+ super.processNull(sqls, infoDefine.getVersion());
|
|
|
|
+ super.processNull(sqls, infoDefine.getSourceFrom());
|
|
|
|
+ super.processNull(sqls, infoDefine.getCreator());
|
|
|
|
+ super.processNull(sqls, infoDefine.getCreationTime());
|
|
|
|
+ super.processNull(sqls, infoDefine.getModifier());
|
|
|
|
+ super.processNull(sqls, infoDefine.getModifiedTime());
|
|
sqls.append(infoDefine.getValid());
|
|
sqls.append(infoDefine.getValid());
|
|
sqls.append(")\n ,");
|
|
sqls.append(")\n ,");
|
|
});
|
|
});
|