admin
2020-05-06 24a8d17e007545f7426c48352109aa1a9c6587ee
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package org.fanli.config;
 
import org.junit.Test;
 
import com.yeshi.fanli.entity.system.ConfigCategory;
import com.yeshi.fanli.entity.system.ConfigCategory.ConfigCategoryEnum;
import com.yeshi.fanli.entity.system.ConfigKeyEnum;
import com.yeshi.fanli.service.inter.config.ConfigCategoryService;
import com.yeshi.fanli.util.BeanUtil;
 
public class Test_ConfigCategoryService {
    
    @Test
    public void addConfigCategory() {
        ConfigCategoryService service = BeanUtil.getBean(ConfigCategoryService.class);
        
        ConfigCategory c1 = new ConfigCategory();
        c1.setKeyEnum(ConfigKeyEnum.msgConfigGuanxuan);
        c1.setType(ConfigCategoryEnum.helpStrategy);
        c1.setOrder(1);
        c1.setEditMode(2);
        service.addConfigCategory(c1);
        
        ConfigCategory c2 = new ConfigCategory();
        c2.setKeyEnum(ConfigKeyEnum.msgConfigZhushou);
        c2.setType(ConfigCategoryEnum.specialHelper);
        c2.setOrder(1);
        c2.setEditMode(2);
        service.addConfigCategory(c2);
        
        
        /*ConfigCategory c3 = new ConfigCategory();
        c3.setKeyEnum(ConfigKeyEnum.orderTeamSubsidyLink);
        c3.setType(ConfigCategoryEnum.helpStrategy);
        c3.setOrder(22);
        c3.setEditMode(1);
        service.addConfigCategory(c3);
        
        
        ConfigCategory c4 = new ConfigCategory();
        c4.setKeyEnum(ConfigKeyEnum.orderTeamRewardLink);
        c4.setType(ConfigCategoryEnum.helpStrategy);
        c4.setOrder(23);
        c4.setEditMode(1);
        service.addConfigCategory(c4);
        
        ConfigCategory c5 = new ConfigCategory();
        c5.setKeyEnum(ConfigKeyEnum.tutorSubsidyLink);
        c5.setType(ConfigCategoryEnum.helpStrategy);
        c5.setOrder(24);
        c5.setEditMode(1);
        service.addConfigCategory(c5);
        
        
        ConfigCategory c6 = new ConfigCategory();
        c6.setKeyEnum(ConfigKeyEnum.adminMinSameGoodsOrderCount);
        c6.setType(ConfigCategoryEnum.extract);
        c6.setOrder(6);
        service.addConfigCategory(c6);*/
        
    }
}