Skip to content
jwpttcg66 edited this page May 12, 2017 · 2 revisions

数据字典

数据字典生成

  • 将excel拷贝到tools/excelToCode/python/sample/excels下面
  • 修改tools/excelToCode/python/sample下的config.py文件
  1. 修改DEFAULT_JAVA_PATH = "../../../../src/main/java/com/snowcattle/game/service/dict/entity" 参数
  2. 修改DEFAULT_DICT_PATH = "../../../../src/main/resources/dict" 参数
  3. 修改DEFAULT_JAVA_PACKAGE = "com.snowcattle.game.service.dict.entity" 参数
  • 执行export.sh文件

数据字典使用

  • 唯一键 Bullet bullet = dictService.getIDict(dictModleType, id, Bullet.class);
  • 重复键 List roleSkills = dictService.getIDictArray(dictModleType, id, RoleSkill.class);
Clone this wiki locally