|
...
|
...
|
@@ -5,6 +5,7 @@ import cn.hutool.poi.excel.sax.handler.RowHandler; |
|
|
|
import com.zhonglai.laikun.fortune.telling.dto.ManifestationDivinationInfo;
|
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
...
|
...
|
@@ -23,7 +24,9 @@ public class SysConfig { |
|
|
|
|
|
|
|
public static void initManifestationDivinationInfo()
|
|
|
|
{
|
|
|
|
ExcelUtil.readBySax("Yiching-database-CN-1.3.xlsx", 0, new RowHandler() {
|
|
|
|
String xmlpath = null==System.getProperty("xml-dbPath")?"Yiching-database-CN-1.3.xlsx":System.getProperty("xml-dbPath");
|
|
|
|
File file = new File(xmlpath);
|
|
|
|
ExcelUtil.readBySax(file, 0, new RowHandler() {
|
|
|
|
@Override
|
|
|
|
public void handle(int i, long l, List<Object> list) {
|
|
|
|
if(l>0)
|
...
|
...
|
|