53 lines
1.1 KiB
Java
53 lines
1.1 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.stream.Collectors;
|
|
|
|
@Table(name ="UniversalWelfareConfig")
|
|
public class SUniversalWelfareConfig implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int peolple;
|
|
|
|
private int[][] type;
|
|
|
|
private int rechargeCom;
|
|
|
|
private static List<Integer> giftList = new ArrayList<>();
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
Map<Integer, SUniversalWelfareConfig> config = STableManager.getConfig(SUniversalWelfareConfig.class);
|
|
List<Integer> list = config.values().stream().map(SUniversalWelfareConfig::getRechargeCom).collect(Collectors.toList());
|
|
giftList.clear();
|
|
giftList = list;
|
|
}
|
|
|
|
public static List<Integer> getGiftList() {
|
|
return giftList;
|
|
}
|
|
|
|
public int getid() {
|
|
return id;
|
|
}
|
|
|
|
public int getPeolple() {
|
|
return peolple;
|
|
}
|
|
|
|
public int[][] getType() {
|
|
return type;
|
|
}
|
|
|
|
public int getRechargeCom() {
|
|
return rechargeCom;
|
|
}
|
|
|
|
|
|
} |