浏览代码

游戏相关代码

dos 9 月之前
父节点
当前提交
ccc29e4bd8

+ 62 - 51
.idea/workspace.xml

@@ -4,29 +4,9 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="f5c8d7e3-5061-4136-9b02-980223f1d915" name="Changes" comment="websocket">
-      <change afterPath="$PROJECT_DIR$/game-framework/src/main/java/com/game/framework/config/MybatisPlusConfig.java" afterDir="false" />
+    <list default="true" id="f5c8d7e3-5061-4136-9b02-980223f1d915" name="Changes" comment="修改代码生成">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-admin/src/main/java/com/game/web/core/config/SwaggerConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-admin/src/main/java/com/game/web/core/config/SwaggerConfig.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-admin/src/main/resources/application-druid.yml" beforeDir="false" afterPath="$PROJECT_DIR$/game-admin/src/main/resources/application-druid.yml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-admin/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/game-admin/src/main/resources/application.yml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameLotteryMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameLotteryMapper.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameRecordMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameRecordMapper.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameTypeMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-business/src/main/java/com/game/business/mapper/GameTypeMapper.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-common/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/game-common/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-common/src/main/java/com/game/common/constant/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-common/src/main/java/com/game/common/constant/Constants.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-common/src/main/java/com/game/common/core/domain/BaseEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-common/src/main/java/com/game/common/core/domain/BaseEntity.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-framework/src/main/java/com/game/framework/aspectj/DataSourceAspect.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-framework/src/main/java/com/game/framework/aspectj/DataSourceAspect.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-framework/src/main/java/com/game/framework/config/MyBatisConfig.java" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/java/com/game/generator/mapper/GenTableColumnMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/java/com/game/generator/mapper/GenTableColumnMapper.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/java/com/game/generator/mapper/GenTableMapper.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/java/com/game/generator/mapper/GenTableMapper.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/domain.java.vm" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/domain.java.vm" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/mapper.java.vm" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/mapper.java.vm" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/service.java.vm" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/service.java.vm" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/serviceImpl.java.vm" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/serviceImpl.java.vm" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/sub-domain.java.vm" beforeDir="false" afterPath="$PROJECT_DIR$/game-generator/src/main/resources/vm/java/sub-domain.java.vm" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/game-quartz/src/main/java/com/game/quartz/config/ScheduleConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/game-quartz/src/main/java/com/game/quartz/config/ScheduleConfig.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -69,34 +49,34 @@
     <option name="hideEmptyMiddlePackages" value="true" />
     <option name="showLibraryContents" value="true" />
   </component>
-  <component name="PropertiesComponent">{
-  &quot;keyToString&quot;: {
-    &quot;Maven.game [clean].executor&quot;: &quot;Run&quot;,
-    &quot;Maven.game [install].executor&quot;: &quot;Run&quot;,
-    &quot;Maven.game [package].executor&quot;: &quot;Run&quot;,
-    &quot;RequestMappingsPanelOrder0&quot;: &quot;0&quot;,
-    &quot;RequestMappingsPanelOrder1&quot;: &quot;1&quot;,
-    &quot;RequestMappingsPanelWidth0&quot;: &quot;75&quot;,
-    &quot;RequestMappingsPanelWidth1&quot;: &quot;75&quot;,
-    &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
-    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
-    &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
-    &quot;git-widget-placeholder&quot;: &quot;master&quot;,
-    &quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
-    &quot;last_opened_file_path&quot;: &quot;D:/live/game/game-business/src/main/java/com/game/business/config&quot;,
-    &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
-    &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
-    &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
-    &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
-    &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
-    &quot;project.structure.last.edited&quot;: &quot;Modules&quot;,
-    &quot;project.structure.proportion&quot;: &quot;0.0&quot;,
-    &quot;project.structure.side.proportion&quot;: &quot;0.0&quot;,
-    &quot;settings.editor.selected.configurable&quot;: &quot;MavenSettings&quot;,
-    &quot;spring.configuration.checksum&quot;: &quot;01ad92f1c31e09c130eb2891a582796d&quot;,
-    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
+  <component name="PropertiesComponent"><![CDATA[{
+  "keyToString": {
+    "Maven.game [clean].executor": "Run",
+    "Maven.game [install].executor": "Run",
+    "Maven.game [package].executor": "Run",
+    "RequestMappingsPanelOrder0": "0",
+    "RequestMappingsPanelOrder1": "1",
+    "RequestMappingsPanelWidth0": "75",
+    "RequestMappingsPanelWidth1": "75",
+    "RunOnceActivity.OpenProjectViewOnStart": "true",
+    "RunOnceActivity.ShowReadmeOnStart": "true",
+    "WebServerToolWindowFactoryState": "false",
+    "git-widget-placeholder": "master",
+    "kotlin-language-version-configured": "true",
+    "last_opened_file_path": "D:/live/game/game-business/src/main/java/com/game/business/config",
+    "node.js.detected.package.eslint": "true",
+    "node.js.detected.package.tslint": "true",
+    "node.js.selected.package.eslint": "(autodetect)",
+    "node.js.selected.package.tslint": "(autodetect)",
+    "nodejs_package_manager_path": "npm",
+    "project.structure.last.edited": "Modules",
+    "project.structure.proportion": "0.0",
+    "project.structure.side.proportion": "0.0",
+    "settings.editor.selected.configurable": "preferences.pluginManager",
+    "spring.configuration.checksum": "01ad92f1c31e09c130eb2891a582796d",
+    "vue.rearranger.settings.migration": "true"
   }
-}</component>
+}]]></component>
   <component name="ReactorSettings">
     <option name="notificationShown" value="true" />
   </component>
@@ -166,7 +146,7 @@
       <workItem from="1718071480756" duration="11258000" />
       <workItem from="1718267267883" duration="2449000" />
       <workItem from="1718284779456" duration="2514000" />
-      <workItem from="1718331525146" duration="589000" />
+      <workItem from="1718331525146" duration="10278000" />
     </task>
     <task id="LOCAL-00001" summary="init game">
       <option name="closed" value="true" />
@@ -184,7 +164,35 @@
       <option name="project" value="LOCAL" />
       <updated>1718075873377</updated>
     </task>
-    <option name="localTasksCounter" value="3" />
+    <task id="LOCAL-00003" summary="修改mybatis-plus架构">
+      <created>1718332223830</created>
+      <option name="number" value="00003" />
+      <option name="presentableId" value="LOCAL-00003" />
+      <option name="project" value="LOCAL" />
+      <updated>1718332223830</updated>
+    </task>
+    <task id="LOCAL-00004" summary="修改数据源">
+      <created>1718333282215</created>
+      <option name="number" value="00004" />
+      <option name="presentableId" value="LOCAL-00004" />
+      <option name="project" value="LOCAL" />
+      <updated>1718333282215</updated>
+    </task>
+    <task id="LOCAL-00005" summary="修改代码生成">
+      <created>1718334155435</created>
+      <option name="number" value="00005" />
+      <option name="presentableId" value="LOCAL-00005" />
+      <option name="project" value="LOCAL" />
+      <updated>1718334155435</updated>
+    </task>
+    <task id="LOCAL-00006" summary="修改代码生成">
+      <created>1718336593241</created>
+      <option name="number" value="00006" />
+      <option name="presentableId" value="LOCAL-00006" />
+      <option name="project" value="LOCAL" />
+      <updated>1718336593241</updated>
+    </task>
+    <option name="localTasksCounter" value="7" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -234,6 +242,9 @@
   <component name="VcsManagerConfiguration">
     <MESSAGE value="init game" />
     <MESSAGE value="websocket" />
-    <option name="LAST_COMMIT_MESSAGE" value="websocket" />
+    <MESSAGE value="修改mybatis-plus架构" />
+    <MESSAGE value="修改数据源" />
+    <MESSAGE value="修改代码生成" />
+    <option name="LAST_COMMIT_MESSAGE" value="修改代码生成" />
   </component>
 </project>

+ 116 - 0
game-business/src/main/java/com/game/business/controller/AppGameController.java

@@ -0,0 +1,116 @@
+package com.game.business.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.game.common.annotation.Log;
+import com.game.common.core.controller.BaseController;
+import com.game.common.core.domain.AjaxResult;
+import com.game.common.enums.BusinessType;
+import com.game.common.annotation.DataSource;
+import com.game.common.enums.DataSourceType;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.game.business.domain.AppGame;
+import com.game.business.service.IAppGameService;
+import com.game.common.utils.poi.ExcelUtil;
+import com.game.common.core.page.TableDataInfo;
+
+/**
+ * 游戏配置Controller
+ * 
+ * @author game
+ * @date 2024-06-14
+ */
+@RestController
+@RequestMapping("/business/game")
+@DataSource(DataSourceType.SLAVE)
+@Api(value = "AppGameController", description = "游戏配置接口", tags = {"游戏配置"})
+public class AppGameController extends BaseController
+{
+    @Autowired
+    private IAppGameService appGameService;
+
+    /**
+     * 查询游戏配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:list')")
+    @GetMapping("/list")
+    @ApiOperation(value = "查询游戏配置列表", notes = "获取游戏配置列表")
+    public TableDataInfo list(AppGame appGame)
+    {
+        startPage();
+        List<AppGame> list = appGameService.selectAppGameList(appGame);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出游戏配置列表
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:export')")
+    @Log(title = "游戏配置", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ApiOperation(value = "导出游戏配置列表", notes = "导出游戏配置列表")
+    public void export(HttpServletResponse response, AppGame appGame)
+    {
+        List<AppGame> list = appGameService.selectAppGameList(appGame);
+        ExcelUtil<AppGame> util = new ExcelUtil<AppGame>(AppGame.class);
+        util.exportExcel(response, list, "游戏配置数据");
+    }
+
+    /**
+     * 获取游戏配置详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation(value = "获取游戏配置详细信息", notes = "获取游戏配置详细信息")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(appGameService.selectAppGameById(id));
+    }
+
+    /**
+     * 新增游戏配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:add')")
+    @Log(title = "游戏配置", businessType = BusinessType.INSERT)
+    @ApiOperation(value = "新增游戏配置", notes = "新增游戏配置")
+    @PostMapping
+    public AjaxResult add(@RequestBody AppGame appGame)
+    {
+        return toAjax(appGameService.insertAppGame(appGame));
+    }
+
+    /**
+     * 修改游戏配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:edit')")
+    @Log(title = "游戏配置", businessType = BusinessType.UPDATE)
+    @ApiOperation(value = "修改游戏配置", notes = "修改游戏配置")
+    @PutMapping
+    public AjaxResult edit(@RequestBody AppGame appGame)
+    {
+        return toAjax(appGameService.updateAppGame(appGame));
+    }
+
+    /**
+     * 删除游戏配置
+     */
+    @PreAuthorize("@ss.hasPermi('business:game:remove')")
+    @Log(title = "游戏配置", businessType = BusinessType.DELETE)
+    @ApiOperation(value = "删除游戏配置", notes = "删除游戏配置")
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(appGameService.deleteAppGameByIds(ids));
+    }
+}

+ 103 - 0
game-business/src/main/java/com/game/business/domain/AppGame.java

@@ -0,0 +1,103 @@
+package com.game.business.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.game.common.annotation.Excel;
+import com.game.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+/**
+ * 游戏配置对象 app_game
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+@TableName(resultMap = "com.game.business.mapper.AppGameMapper.AppGameResult")
+@Data
+public class AppGame extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    @ApiModelProperty(value = "$column.columnComment")
+    @TableId(value = "id" , type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 名称
+     */
+    @ApiModelProperty(value = "名称")
+    @Excel(name = "名称")
+    private String name;
+
+    /**
+     * 所属分类id
+     */
+    @ApiModelProperty(value = "所属分类id")
+    @Excel(name = "所属分类id")
+    private Long classifyId;
+
+    /**
+     * logo
+     */
+    @ApiModelProperty(value = "logo")
+    @Excel(name = "logo")
+    private String logoUrl;
+
+    /**
+     * 游戏路径
+     */
+    @ApiModelProperty(value = "游戏路径")
+    @Excel(name = "游戏路径")
+    private String gamePath;
+
+    /**
+     * 是否启用 0:未启用  1:已启用
+     */
+    @ApiModelProperty(value = "是否启用 0:未启用  1:已启用")
+    @Excel(name = "是否启用 0:未启用  1:已启用")
+    private Long status;
+
+    /**
+     * 排序
+     */
+    @ApiModelProperty(value = "排序")
+    @Excel(name = "排序")
+    private Long orderno;
+
+    /**
+     * 备用字段1
+     */
+    @ApiModelProperty(value = "备用字段1")
+    @Excel(name = "备用字段1")
+    private String gameExpand1;
+
+    /**
+     * 备用字段2
+     */
+    @ApiModelProperty(value = "备用字段2")
+    @Excel(name = "备用字段2")
+    private String gameExpand2;
+
+    /**
+     * 备用字段3
+     */
+    @ApiModelProperty(value = "备用字段3")
+    @Excel(name = "备用字段3")
+    private String gameExpand3;
+
+    /**
+     * 备用字段4
+     */
+    @ApiModelProperty(value = "备用字段4")
+    @Excel(name = "备用字段4")
+    private String gameExpand4;
+
+}
+

+ 61 - 0
game-business/src/main/java/com/game/business/mapper/AppGameMapper.java

@@ -0,0 +1,61 @@
+package com.game.business.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.game.business.domain.AppGame;
+
+/**
+ * 游戏配置Mapper接口
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+public interface AppGameMapper extends BaseMapper<AppGame> {
+    /**
+     * 查询游戏配置
+     *
+     * @param id 游戏配置主键
+     * @return 游戏配置
+     */
+    public AppGame selectAppGameById(Long id);
+
+    /**
+     * 查询游戏配置列表
+     *
+     * @param appGame 游戏配置
+     * @return 游戏配置集合
+     */
+    public List<AppGame> selectAppGameList(AppGame appGame);
+
+    /**
+     * 新增游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    public int insertAppGame(AppGame appGame);
+
+    /**
+     * 修改游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    public int updateAppGame(AppGame appGame);
+
+    /**
+     * 删除游戏配置
+     *
+     * @param id 游戏配置主键
+     * @return 结果
+     */
+    public int deleteAppGameById(Long id);
+
+    /**
+     * 批量删除游戏配置
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAppGameByIds(Long[] ids);
+}

+ 61 - 0
game-business/src/main/java/com/game/business/service/IAppGameService.java

@@ -0,0 +1,61 @@
+package com.game.business.service;
+
+import java.util.List;
+import com.game.business.domain.AppGame;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 游戏配置Service接口
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+public interface IAppGameService extends IService<AppGame> {
+    /**
+     * 查询游戏配置
+     *
+     * @param id 游戏配置主键
+     * @return 游戏配置
+     */
+    public AppGame selectAppGameById(Long id);
+
+    /**
+     * 查询游戏配置列表
+     *
+     * @param appGame 游戏配置
+     * @return 游戏配置集合
+     */
+    public List<AppGame> selectAppGameList(AppGame appGame);
+
+    /**
+     * 新增游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    public int insertAppGame(AppGame appGame);
+
+    /**
+     * 修改游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    public int updateAppGame(AppGame appGame);
+
+    /**
+     * 批量删除游戏配置
+     *
+     * @param ids 需要删除的游戏配置主键集合
+     * @return 结果
+     */
+    public int deleteAppGameByIds(Long[] ids);
+
+    /**
+     * 删除游戏配置信息
+     *
+     * @param id 游戏配置主键
+     * @return 结果
+     */
+    public int deleteAppGameById(Long id);
+}

+ 89 - 0
game-business/src/main/java/com/game/business/service/impl/AppGameServiceImpl.java

@@ -0,0 +1,89 @@
+package com.game.business.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.util.List;
+        import com.game.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.game.business.mapper.AppGameMapper;
+import com.game.business.domain.AppGame;
+import com.game.business.service.IAppGameService;
+
+/**
+ * 游戏配置Service业务层处理
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+@Service
+public class AppGameServiceImpl extends ServiceImpl<AppGameMapper, AppGame> implements IAppGameService {
+    @Autowired
+    private AppGameMapper appGameMapper;
+
+    /**
+     * 查询游戏配置
+     *
+     * @param id 游戏配置主键
+     * @return 游戏配置
+     */
+    @Override
+    public AppGame selectAppGameById(Long id) {
+        return appGameMapper.selectAppGameById(id);
+    }
+
+    /**
+     * 查询游戏配置列表
+     *
+     * @param appGame 游戏配置
+     * @return 游戏配置
+     */
+    @Override
+    public List<AppGame> selectAppGameList(AppGame appGame) {
+        return appGameMapper.selectAppGameList(appGame);
+    }
+
+    /**
+     * 新增游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    @Override
+    public int insertAppGame(AppGame appGame) {
+                appGame.setCreateTime(DateUtils.getNowDate());
+            return appGameMapper.insertAppGame(appGame);
+    }
+
+    /**
+     * 修改游戏配置
+     *
+     * @param appGame 游戏配置
+     * @return 结果
+     */
+    @Override
+    public int updateAppGame(AppGame appGame) {
+        return appGameMapper.updateAppGame(appGame);
+    }
+
+    /**
+     * 批量删除游戏配置
+     *
+     * @param ids 需要删除的游戏配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAppGameByIds(Long[] ids) {
+        return appGameMapper.deleteAppGameByIds(ids);
+    }
+
+    /**
+     * 删除游戏配置信息
+     *
+     * @param id 游戏配置主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAppGameById(Long id) {
+        return appGameMapper.deleteAppGameById(id);
+    }
+}

+ 116 - 0
game-business/src/main/java/com/game/system/controller/AppGameClassifyController.java

@@ -0,0 +1,116 @@
+package com.game.system.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.game.common.annotation.Log;
+import com.game.common.core.controller.BaseController;
+import com.game.common.core.domain.AjaxResult;
+import com.game.common.enums.BusinessType;
+import com.game.common.annotation.DataSource;
+import com.game.common.enums.DataSourceType;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import com.game.system.domain.AppGameClassify;
+import com.game.system.service.IAppGameClassifyService;
+import com.game.common.utils.poi.ExcelUtil;
+import com.game.common.core.page.TableDataInfo;
+
+/**
+ * 【请填写功能名称】Controller
+ * 
+ * @author game
+ * @date 2024-06-14
+ */
+@RestController
+@RequestMapping("/system/classify")
+@DataSource(DataSourceType.SLAVE)
+@Api(value = "AppGameClassifyController", description = "【请填写功能名称】接口", tags = {"【请填写功能名称】"})
+public class AppGameClassifyController extends BaseController
+{
+    @Autowired
+    private IAppGameClassifyService appGameClassifyService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:list')")
+    @GetMapping("/list")
+    @ApiOperation(value = "查询【请填写功能名称】列表", notes = "获取【请填写功能名称】列表")
+    public TableDataInfo list(AppGameClassify appGameClassify)
+    {
+        startPage();
+        List<AppGameClassify> list = appGameClassifyService.selectAppGameClassifyList(appGameClassify);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    @ApiOperation(value = "导出【请填写功能名称】列表", notes = "导出【请填写功能名称】列表")
+    public void export(HttpServletResponse response, AppGameClassify appGameClassify)
+    {
+        List<AppGameClassify> list = appGameClassifyService.selectAppGameClassifyList(appGameClassify);
+        ExcelUtil<AppGameClassify> util = new ExcelUtil<AppGameClassify>(AppGameClassify.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:query')")
+    @GetMapping(value = "/{id}")
+    @ApiOperation(value = "获取【请填写功能名称】详细信息", notes = "获取【请填写功能名称】详细信息")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return success(appGameClassifyService.selectAppGameClassifyById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @ApiOperation(value = "新增【请填写功能名称】", notes = "新增【请填写功能名称】")
+    @PostMapping
+    public AjaxResult add(@RequestBody AppGameClassify appGameClassify)
+    {
+        return toAjax(appGameClassifyService.insertAppGameClassify(appGameClassify));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @ApiOperation(value = "修改【请填写功能名称】", notes = "修改【请填写功能名称】")
+    @PutMapping
+    public AjaxResult edit(@RequestBody AppGameClassify appGameClassify)
+    {
+        return toAjax(appGameClassifyService.updateAppGameClassify(appGameClassify));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+    @PreAuthorize("@ss.hasPermi('system:classify:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+    @ApiOperation(value = "删除【请填写功能名称】", notes = "删除【请填写功能名称】")
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(appGameClassifyService.deleteAppGameClassifyByIds(ids));
+    }
+}

+ 60 - 0
game-business/src/main/java/com/game/system/domain/AppGameClassify.java

@@ -0,0 +1,60 @@
+package com.game.system.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.game.common.annotation.Excel;
+import com.game.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+/**
+ * 【请填写功能名称】对象 app_game_classify
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+@TableName(resultMap = "com.game.system.mapper.AppGameClassifyMapper.AppGameClassifyResult")
+@Data
+public class AppGameClassify extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    @ApiModelProperty(value = "$column.columnComment")
+    @TableId(value = "id" , type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 名称
+     */
+    @ApiModelProperty(value = "名称")
+    @Excel(name = "名称")
+    private String name;
+
+    /**
+     * logo
+     */
+    @ApiModelProperty(value = "logo")
+    @Excel(name = "logo")
+    private String logoUrl;
+
+    /**
+     * 是否启用 0:未启用  1:启用
+     */
+    @ApiModelProperty(value = "是否启用 0:未启用  1:启用")
+    @Excel(name = "是否启用 0:未启用  1:启用")
+    private Long status;
+
+    /**
+     * 排序
+     */
+    @ApiModelProperty(value = "排序")
+    @Excel(name = "排序")
+    private Long orderno;
+
+}

+ 61 - 0
game-business/src/main/java/com/game/system/mapper/AppGameClassifyMapper.java

@@ -0,0 +1,61 @@
+package com.game.system.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.game.system.domain.AppGameClassify;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+public interface AppGameClassifyMapper extends BaseMapper<AppGameClassify> {
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public AppGameClassify selectAppGameClassifyById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<AppGameClassify> selectAppGameClassifyList(AppGameClassify appGameClassify);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertAppGameClassify(AppGameClassify appGameClassify);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateAppGameClassify(AppGameClassify appGameClassify);
+
+    /**
+     * 删除【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteAppGameClassifyById(Long id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteAppGameClassifyByIds(Long[] ids);
+}

+ 61 - 0
game-business/src/main/java/com/game/system/service/IAppGameClassifyService.java

@@ -0,0 +1,61 @@
+package com.game.system.service;
+
+import java.util.List;
+import com.game.system.domain.AppGameClassify;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 【请填写功能名称】Service接口
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+public interface IAppGameClassifyService extends IService<AppGameClassify> {
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public AppGameClassify selectAppGameClassifyById(Long id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<AppGameClassify> selectAppGameClassifyList(AppGameClassify appGameClassify);
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertAppGameClassify(AppGameClassify appGameClassify);
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateAppGameClassify(AppGameClassify appGameClassify);
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteAppGameClassifyByIds(Long[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteAppGameClassifyById(Long id);
+}

+ 87 - 0
game-business/src/main/java/com/game/system/service/impl/AppGameClassifyServiceImpl.java

@@ -0,0 +1,87 @@
+package com.game.system.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.game.system.mapper.AppGameClassifyMapper;
+import com.game.system.domain.AppGameClassify;
+import com.game.system.service.IAppGameClassifyService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author game
+ * @date 2024-06-14
+ */
+@Service
+public class AppGameClassifyServiceImpl extends ServiceImpl<AppGameClassifyMapper, AppGameClassify> implements IAppGameClassifyService {
+    @Autowired
+    private AppGameClassifyMapper appGameClassifyMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public AppGameClassify selectAppGameClassifyById(Long id) {
+        return appGameClassifyMapper.selectAppGameClassifyById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<AppGameClassify> selectAppGameClassifyList(AppGameClassify appGameClassify) {
+        return appGameClassifyMapper.selectAppGameClassifyList(appGameClassify);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertAppGameClassify(AppGameClassify appGameClassify) {
+            return appGameClassifyMapper.insertAppGameClassify(appGameClassify);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     *
+     * @param appGameClassify 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateAppGameClassify(AppGameClassify appGameClassify) {
+        return appGameClassifyMapper.updateAppGameClassify(appGameClassify);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     *
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAppGameClassifyByIds(Long[] ids) {
+        return appGameClassifyMapper.deleteAppGameClassifyByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     *
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteAppGameClassifyById(Long id) {
+        return appGameClassifyMapper.deleteAppGameClassifyById(id);
+    }
+}

+ 107 - 0
game-business/src/main/resources/mapper/business/AppGameMapper.xml

@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.game.business.mapper.AppGameMapper">
+    
+    <resultMap type="com.game.business.domain.AppGame" id="AppGameResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="classifyId"    column="classify_id"    />
+        <result property="logoUrl"    column="logo_url"    />
+        <result property="gamePath"    column="game_path"    />
+        <result property="status"    column="status"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="orderno"    column="orderno"    />
+        <result property="gameExpand1"    column="game_expand1"    />
+        <result property="gameExpand2"    column="game_expand2"    />
+        <result property="gameExpand3"    column="game_expand3"    />
+        <result property="gameExpand4"    column="game_expand4"    />
+    </resultMap>
+
+    <sql id="selectAppGameVo">
+        select id, name, classify_id, logo_url, game_path, status, create_time, orderno, game_expand1, game_expand2, game_expand3, game_expand4 from app_game
+    </sql>
+
+    <select id="selectAppGameList" parameterType="com.game.business.domain.AppGame" resultMap="AppGameResult">
+        <include refid="selectAppGameVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="classifyId != null "> and classify_id = #{classifyId}</if>
+            <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
+            <if test="gamePath != null  and gamePath != ''"> and game_path = #{gamePath}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="orderno != null "> and orderno = #{orderno}</if>
+            <if test="gameExpand1 != null  and gameExpand1 != ''"> and game_expand1 = #{gameExpand1}</if>
+            <if test="gameExpand2 != null  and gameExpand2 != ''"> and game_expand2 = #{gameExpand2}</if>
+            <if test="gameExpand3 != null  and gameExpand3 != ''"> and game_expand3 = #{gameExpand3}</if>
+            <if test="gameExpand4 != null  and gameExpand4 != ''"> and game_expand4 = #{gameExpand4}</if>
+        </where>
+    </select>
+    
+    <select id="selectAppGameById" parameterType="Long" resultMap="AppGameResult">
+        <include refid="selectAppGameVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertAppGame" parameterType="com.game.business.domain.AppGame">
+        insert into app_game
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="name != null">name,</if>
+            <if test="classifyId != null">classify_id,</if>
+            <if test="logoUrl != null">logo_url,</if>
+            <if test="gamePath != null">game_path,</if>
+            <if test="status != null">status,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="orderno != null">orderno,</if>
+            <if test="gameExpand1 != null">game_expand1,</if>
+            <if test="gameExpand2 != null">game_expand2,</if>
+            <if test="gameExpand3 != null">game_expand3,</if>
+            <if test="gameExpand4 != null">game_expand4,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="name != null">#{name},</if>
+            <if test="classifyId != null">#{classifyId},</if>
+            <if test="logoUrl != null">#{logoUrl},</if>
+            <if test="gamePath != null">#{gamePath},</if>
+            <if test="status != null">#{status},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="orderno != null">#{orderno},</if>
+            <if test="gameExpand1 != null">#{gameExpand1},</if>
+            <if test="gameExpand2 != null">#{gameExpand2},</if>
+            <if test="gameExpand3 != null">#{gameExpand3},</if>
+            <if test="gameExpand4 != null">#{gameExpand4},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAppGame" parameterType="com.game.business.domain.AppGame">
+        update app_game
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="classifyId != null">classify_id = #{classifyId},</if>
+            <if test="logoUrl != null">logo_url = #{logoUrl},</if>
+            <if test="gamePath != null">game_path = #{gamePath},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="orderno != null">orderno = #{orderno},</if>
+            <if test="gameExpand1 != null">game_expand1 = #{gameExpand1},</if>
+            <if test="gameExpand2 != null">game_expand2 = #{gameExpand2},</if>
+            <if test="gameExpand3 != null">game_expand3 = #{gameExpand3},</if>
+            <if test="gameExpand4 != null">game_expand4 = #{gameExpand4},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAppGameById" parameterType="Long">
+        delete from app_game where id = #{id}
+    </delete>
+
+    <delete id="deleteAppGameByIds" parameterType="String">
+        delete from app_game where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 73 - 0
game-business/src/main/resources/mapper/system/AppGameClassifyMapper.xml

@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.game.system.mapper.AppGameClassifyMapper">
+    
+    <resultMap type="com.game.system.domain.AppGameClassify" id="AppGameClassifyResult">
+        <result property="id"    column="id"    />
+        <result property="name"    column="name"    />
+        <result property="logoUrl"    column="logo_url"    />
+        <result property="status"    column="status"    />
+        <result property="orderno"    column="orderno"    />
+    </resultMap>
+
+    <sql id="selectAppGameClassifyVo">
+        select id, name, logo_url, status, orderno from app_game_classify
+    </sql>
+
+    <select id="selectAppGameClassifyList" parameterType="com.game.system.domain.AppGameClassify" resultMap="AppGameClassifyResult">
+        <include refid="selectAppGameClassifyVo"/>
+        <where>  
+            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
+            <if test="logoUrl != null  and logoUrl != ''"> and logo_url = #{logoUrl}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="orderno != null "> and orderno = #{orderno}</if>
+        </where>
+    </select>
+    
+    <select id="selectAppGameClassifyById" parameterType="Long" resultMap="AppGameClassifyResult">
+        <include refid="selectAppGameClassifyVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertAppGameClassify" parameterType="com.game.system.domain.AppGameClassify">
+        insert into app_game_classify
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="name != null">name,</if>
+            <if test="logoUrl != null">logo_url,</if>
+            <if test="status != null">status,</if>
+            <if test="orderno != null">orderno,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="name != null">#{name},</if>
+            <if test="logoUrl != null">#{logoUrl},</if>
+            <if test="status != null">#{status},</if>
+            <if test="orderno != null">#{orderno},</if>
+         </trim>
+    </insert>
+
+    <update id="updateAppGameClassify" parameterType="com.game.system.domain.AppGameClassify">
+        update app_game_classify
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="name != null">name = #{name},</if>
+            <if test="logoUrl != null">logo_url = #{logoUrl},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="orderno != null">orderno = #{orderno},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteAppGameClassifyById" parameterType="Long">
+        delete from app_game_classify where id = #{id}
+    </delete>
+
+    <delete id="deleteAppGameClassifyByIds" parameterType="String">
+        delete from app_game_classify where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 8 - 6
game-generator/src/main/resources/vm/java/domain.java.vm

@@ -29,11 +29,12 @@ import com.fenghuang.common.core.domain.TreeEntity;
 #elseif($table.tree)
     #set($Entity="TreeEntity")
 #end
+@ApiModel(value = "${tableName}", description = "${functionName}")
 @TableName(resultMap = "${packageName}.mapper.${ClassName}Mapper.${ClassName}Result")
 @Data
 public class ${ClassName} extends ${Entity}
         {
-private static final long serialVersionUID = 1L;
+private static final long serialVersionUID=1L;
 
 #foreach ($column in $columns)
     #if(!$table.isSuperColumn($column.javaField))
@@ -47,23 +48,24 @@ private static final long serialVersionUID = 1L;
                 #set($comment=$column.columnComment)
             #end
             #if($parentheseIndex != -1)
-            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+            @Excel(name = "${comment}" , readConverterExp = "$column.readConverterExp()")
             #elseif($column.javaType == 'Date')
             @JsonFormat(pattern = "yyyy-MM-dd")
-            @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
+            @Excel(name = "${comment}" , width = 30, dateFormat = "yyyy-MM-dd")
             #else
             @Excel(name = "${comment}")
             #end
         #end
         #if($column.isPk == 1)
-        @TableId(value = "$column.columnName",type = IdType.AUTO)
+        @TableId(value = "$column.columnName" , type = IdType.AUTO)
         #end
     private $column.javaType $column.javaField;
 
     #end
 #end
-    #if($table.sub)
+#if($table.sub)
     /** $table.subTable.functionName信息 */
     private List<${subClassName}> ${subclassName}List;
 
-    #end
+#end
+}