|
@@ -130,18 +130,18 @@ public class ObjectDigitalMigration extends MigrationAbstractServiceImpl<ObjectD
|
|
|
if (objectDigital.getName() == null) {
|
|
|
sqls.append(objectDigital.getName()).append(",");
|
|
|
} else {
|
|
|
- sqls.append("'").append(objectDigital.getName()).append("',");
|
|
|
+ sqls.append("'").append(objectDigital.getName().replaceAll("\\'","\\\\'")).append("',");
|
|
|
}
|
|
|
|
|
|
if (objectDigital.getLocalId() == null) {
|
|
|
sqls.append(objectDigital.getLocalId()).append(",");
|
|
|
} else {
|
|
|
- sqls.append("'").append(objectDigital.getLocalId()).append("',");
|
|
|
+ sqls.append("'").append(objectDigital.getLocalId().replaceAll("\\'","\\\\'")).append("',");
|
|
|
}
|
|
|
if (objectDigital.getLocalName() == null) {
|
|
|
sqls.append(objectDigital.getLocalName()).append(",");
|
|
|
} else {
|
|
|
- sqls.append("'").append(objectDigital.getLocalName()).append("',");
|
|
|
+ sqls.append("'").append(objectDigital.getLocalName().replaceAll("\\'","\\\\'")).append("',");
|
|
|
}
|
|
|
sqls.append("'").append(objectDigital.getGroupCode()).append("',");
|
|
|
sqls.append("'").append(objectDigital.getProjectId()).append("',");
|