P15GEN2\59518
2024-05-29 d4210c7c4b04abde20037ea8aa0f54ef8a2649aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package foundation.data.meta.property;
 
import java.io.File;
 
import foundation.data.meta.template.Indexes;
 
public class MetasUserSet extends IPropertyMetasSet {
 
    public MetasUserSet(Indexes indexes) {
        super(indexes);
    }
    
    @Override
    public void loadOne(Property meta) {
    }
    
    // 用户没有自己的导出Property(只有角色有)
    @Override
    protected void initExportPropertys() {
        this.exportPropertys = master.exportPropertys;
    }
    
    @Override
    public void saveChange() throws Exception {
        //1. 保存变化到文件里面
        File path = new File("");
        File file = new File(path, "");
        
        if (file.exists()) {
            file.delete();
        }
        
        file.createNewFile();
//        String content = toJSON();
        
        
        //2. 保存变化到数据库索引里面
//        DataObject dataObject = DataObject.getInstance("sys_data_property_index");
//        index.set("update_time", new Date());
//        dataObject.updateEntity(index);
    }
 
    public String toJSON() {
        // TODO Auto-generated method stub
        return null;
    }
}