owl-cli 6.122.0 → 6.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -521,8 +521,19 @@ var @projectCodeService = (function (pigeon) {
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
+
|
|
524
525
|
treeNode.parentPathIds = parentPathIds;
|
|
525
526
|
treeNode.parentPathNames = parentPathNames;
|
|
527
|
+
if(treeNode.parentPathNames ){
|
|
528
|
+
var sep = "";
|
|
529
|
+
var meta = spec['#meta'];
|
|
530
|
+
if(meta && meta.pathSep){
|
|
531
|
+
sep = meta.pathSep;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
treeNode.fullPathName = parentPathNames.join(sep);
|
|
535
|
+
}
|
|
536
|
+
|
|
526
537
|
|
|
527
538
|
},
|
|
528
539
|
add: function (data, env) {
|
|
@@ -532,9 +543,11 @@ var @projectCodeService = (function (pigeon) {
|
|
|
532
543
|
throw JSON.stringify(ret);
|
|
533
544
|
}
|
|
534
545
|
|
|
546
|
+
if(data.__force !== 'T'){
|
|
547
|
+
data['owl_createTime'] = new Date().getTime();
|
|
548
|
+
data['owl_modifyTime'] = new Date().getTime();
|
|
549
|
+
}
|
|
535
550
|
|
|
536
|
-
data['owl_createTime'] = new Date().getTime();
|
|
537
|
-
data['owl_modifyTime'] = new Date().getTime();
|
|
538
551
|
data['_v'] = 0
|
|
539
552
|
data['_t'] = spec['_t']
|
|
540
553
|
try {
|
|
@@ -657,7 +670,11 @@ var @projectCodeService = (function (pigeon) {
|
|
|
657
670
|
obj['_v'] = obj['_v'] + 1
|
|
658
671
|
f.validate(obj, env)
|
|
659
672
|
data._v = obj._v
|
|
660
|
-
obj.
|
|
673
|
+
if(obj.__force!=='T'){
|
|
674
|
+
//如果__force为T,则不更新时间,这代表了强制更新,可以用于数据迁移的场景,希望更新时间保留为旧系统时间
|
|
675
|
+
obj.owl_modifyTime=new Date().getTime();
|
|
676
|
+
}
|
|
677
|
+
|
|
661
678
|
EventBusService.fire(spec['_t'] + '_update_before', {old: oldObj, data: obj, env: env})
|
|
662
679
|
f.addToList(obj)
|
|
663
680
|
f.removeUniqueFields(oldObj, env)
|