owl-cli 6.173.0 → 6.174.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.
|
@@ -86,10 +86,10 @@ function main(){
|
|
|
86
86
|
|
|
87
87
|
//检查
|
|
88
88
|
var oldObj = @projectCodeService.get(rec.id);
|
|
89
|
-
if(oldObj && batchImport.override
|
|
89
|
+
if(oldObj && !batchImport.override){
|
|
90
90
|
throw "记录已经存在,id=" + rec.id;
|
|
91
91
|
}
|
|
92
|
-
if(oldObj && batchImport.override==
|
|
92
|
+
if(oldObj && batchImport.override==true && oldObj._orgId!=rec._orgId){
|
|
93
93
|
throw "记录的_orgId不正确,不能覆盖其他人的数据,应该是" + rec._orgId + ",实际是" + oldObj._orgId;
|
|
94
94
|
}
|
|
95
95
|
@projectCodeService.add( rec);
|