|
@@ -233,14 +233,26 @@ public class ObjectRelationMigration extends MigrationAbstractServiceImpl<Object
|
|
|
sqls.append("'").append(relation.getGraphId()).append("',");
|
|
|
}
|
|
|
sqls.append("'").append(relation.getGraphCode()).append("',");
|
|
|
- sqls.append("'").append(relation.getRelCode()).append("',");;
|
|
|
+ sqls.append("'").append(relation.getRelCode()).append("',");
|
|
|
+
|
|
|
if (relation.getRelValue() == null) {
|
|
|
sqls.append(relation.getRelValue()).append(",");
|
|
|
} else {
|
|
|
sqls.append("'").append(relation.getRelValue()).append("',");
|
|
|
}
|
|
|
- sqls.append("'").append(relation.getObjFrom()).append("',");
|
|
|
- sqls.append("'").append(relation.getObjTo()).append("',");
|
|
|
+
|
|
|
+ if (relation.getObjFrom() == null) {
|
|
|
+ sqls.append(relation.getObjFrom()).append(",");
|
|
|
+ } else {
|
|
|
+ sqls.append("'").append(relation.getObjFrom()).append("',");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (relation.getObjTo() == null) {
|
|
|
+ sqls.append(relation.getObjTo()).append(",");
|
|
|
+ } else {
|
|
|
+ sqls.append("'").append(relation.getObjTo()).append("',");
|
|
|
+ }
|
|
|
+
|
|
|
if (relation.getCreateApp() == null) {
|
|
|
sqls.append(relation.getCreateApp()).append(",");
|
|
|
} else {
|