提交 9ff15c9f 编写于 作者: wowowow刚刚's avatar wowowow刚刚

抽奖活动链条

上级 f302746c
......@@ -4,136 +4,46 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="59ec00a0-b682-471c-8315-b245dcd866aa" name="Changes" comment="">
<change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-api/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-api/src/main/java/org/itxzw/api/dto/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-api/src/main/java/org/itxzw/api/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-api/src/main/java/org/itxzw/api/response/Response.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/Dockerfile" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/build.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/Application.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/config/GuavaConfig.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/config/ThreadPoolConfig.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/config/ThreadPoolConfigProperties.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/config/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/application-dev.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/application-prod.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/application-test.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/application.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/logback-spring.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/config/mybatis-config.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/frame_case_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/test/java/org/itxzw/test/ApiTest.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/adapter/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/adapter/port/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/model/aggregate/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/model/entity/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/model/valobj/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/xxx/service/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/yyy/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/yyy/model/aggregate/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/yyy/model/entity/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/yyy/model/valobj/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-domain/src/main/java/org/itxzw/domain/yyy/service/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/adapter/port/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/dao/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/dao/po/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/gateway/dto/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/gateway/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/redis/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-trigger/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-trigger/src/main/java/org/itxzw/trigger/http/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-trigger/src/main/java/org/itxzw/trigger/job/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-trigger/src/main/java/org/itxzw/trigger/listener/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-types/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-types/src/main/java/org/itxzw/types/common/Constants.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-types/src/main/java/org/itxzw/types/enums/ResponseCode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-types/src/main/java/org/itxzw/types/exception/AppException.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/data/log/log_error.log" afterDir="false" />
<change afterPath="$PROJECT_DIR$/data/log/log_info.log" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docs/dev-ops/app/start.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docs/dev-ops/app/stop.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docs/dev-ops/docker-compose-app.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docs/dev-ops/docker-compose-environment.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/docs/dev-ops/mysql/sql/xfg-frame-archetype.sql" afterDir="false" />
<change afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/.idea/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/.idea/misc.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/.idea/vcs.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/README.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/docs/dev-ops/app/start.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/docs/dev-ops/app/stop.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/docs/dev-ops/docker-compose-app.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/docs/dev-ops/docker-compose-environment.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/docs/dev-ops/mysql/sql/xfg-frame-archetype.sql" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-api/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-api/src/main/java/org/example/api/dto/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-api/src/main/java/org/example/api/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-api/src/main/java/org/example/api/response/Response.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/Dockerfile" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/build.sh" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/Application.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/config/GuavaConfig.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/config/ThreadPoolConfig.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/config/ThreadPoolConfigProperties.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/config/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/java/org/example/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/application-dev.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/application-prod.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/application-test.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/application.yml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/logback-spring.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/mybatis/config/mybatis-config.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/main/resources/mybatis/mapper/frame_case_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-app/src/test/java/org/example/test/ApiTest.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/adapter/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/adapter/port/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/model/aggregate/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/model/entity/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/model/valobj/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/xxx/service/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/yyy/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/yyy/model/aggregate/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/yyy/model/entity/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/yyy/model/valobj/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-domain/src/main/java/org/example/domain/yyy/service/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/adapter/port/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/adapter/repository/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/dao/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/dao/po/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/gateway/dto/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/gateway/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-infrastructure/src/main/java/org/example/infrastructure/redis/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-trigger/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-trigger/src/main/java/org/example/trigger/http/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-trigger/src/main/java/org/example/trigger/job/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-trigger/src/main/java/org/example/trigger/listener/package-info.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-types/pom.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-types/src/main/java/org/example/types/common/Constants.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-types/src/main/java/org/example/types/enums/ResponseCode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/../untitled/untitled-types/src/main/java/org/example/types/exception/AppException.java" afterDir="false" />
<list default="true" id="59ec00a0-b682-471c-8315-b245dcd866aa" name="Changes" comment="脚手架初始化">
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/award_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/strategy_award_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/strategy_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/strategy_rule_mapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-app/src/test/java/org/itxzw/test/infrastructure/AwardDaoTest.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/dao/IAwardDao.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/dao/IStrategyAwardDao.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/dao/IStrategyDao.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/dao/IStrategyRuleDao.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/po/Award.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/po/Strategy.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/po/StrategyAward.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/big-market-infrastructure/src/main/java/org/itxzw/infrastructure/persistent/po/StrategyRule.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/Application.java" beforeDir="false" afterPath="$PROJECT_DIR$/big-market-app/src/main/java/org/itxzw/Application.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/big-market-app/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/big-market-app/src/main/resources/application-dev.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/big-market-app/src/main/resources/mybatis/mapper/frame_case_mapper.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/data/log/log_info.log" beforeDir="false" afterPath="$PROJECT_DIR$/data/log/log_info.log" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Interface" />
<option value="Kotlin Class" />
<option value="Class" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$/.." value="master" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
</component>
<component name="MarkdownSettingsMigration">
......@@ -143,6 +53,7 @@
<option name="generalSettings">
<MavenGeneralSettings>
<option name="localRepository" value="D:\ToolSoftware\Maven\apache-maven-3.9.6\resp" />
<option name="useMavenConfig" value="true" />
<option name="userSettingsFile" value="D:\ToolSoftware\Maven\apache-maven-3.9.6\conf\settings.xml" />
</MavenGeneralSettings>
</option>
......@@ -152,26 +63,54 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RequestMappingsPanelOrder0": "0",
"RequestMappingsPanelOrder1": "1",
"RequestMappingsPanelWidth0": "75",
"RequestMappingsPanelWidth1": "75",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "master",
"last_opened_file_path": "D:/Code/Java/xiangmu/dayingxiao",
"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",
"settings.editor.selected.configurable": "reference.settings.ide.settings.new.ui",
"vue.rearranger.settings.migration": "true"
<component name="PropertiesComponent">{
&quot;keyToString&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.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;git-widget-placeholder&quot;: &quot;master&quot;,
&quot;last_opened_file_path&quot;: &quot;D:/Code/Java/xiangmu/dayingxiao/big-market&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;settings.editor.selected.configurable&quot;: &quot;editor.preferences.import&quot;,
&quot;spring.configuration.checksum&quot;: &quot;87acdb2170aefb237a46e0459ff6b7b4&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
},
&quot;keyToStringList&quot;: {
&quot;DatabaseDriversLRU&quot;: [
&quot;mysql&quot;
]
}
}]]></component>
<component name="RunManager">
}</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market\big-market-app\src\main\resources\mybatis\mapper" />
<recent name="D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market\big-market-app\src\main\resources\mybatis\config" />
</key>
</component>
<component name="RunManager" selected="JUnit.AwardDaoTest.test_queryAwardList">
<configuration name="AwardDaoTest.test_queryAwardList" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
<module name="big-market-app" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.itxzw.test.infrastructure.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<option name="PACKAGE_NAME" value="org.itxzw.test.infrastructure" />
<option name="MAIN_CLASS_NAME" value="org.itxzw.test.infrastructure.AwardDaoTest" />
<option name="METHOD_NAME" value="test_queryAwardList" />
<option name="TEST_OBJECT" value="method" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="big-market-app" />
<option name="SPRING_BOOT_MAIN_CLASS" value="org.itxzw.Application" />
......@@ -179,6 +118,68 @@
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="docker-deploy" factoryName="docker-compose.yml" temporary="true">
<deployment type="docker-compose.yml">
<settings />
</deployment>
<method v="2" />
</configuration>
<configuration name="dev-ops/docker-compose-environment.yml: Compose Deployment" type="docker-deploy" factoryName="docker-compose.yml" temporary="true" server-name="Docker_TX">
<deployment type="docker-compose.yml">
<settings>
<option name="sourceFilePath" value="docs/dev-ops/docker-compose-environment.yml" />
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration name="dev-ops/docker-compose-environment.yml.mysql: Compose Deployment" type="docker-deploy" factoryName="docker-compose.yml" temporary="true" server-name="Docker_TX">
<deployment type="docker-compose.yml">
<settings>
<option name="services">
<list>
<option value="mysql" />
</list>
</option>
<option name="sourceFilePath" value="docs/dev-ops/docker-compose-environment.yml" />
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration name="dev-ops/docker-compose-environment.yml.phpmyadmin: Compose Deployment" type="docker-deploy" factoryName="docker-compose.yml" temporary="true" server-name="Docker_TX">
<deployment type="docker-compose.yml">
<settings>
<option name="services">
<list>
<option value="phpmyadmin" />
</list>
</option>
<option name="sourceFilePath" value="docs/dev-ops/docker-compose-environment.yml" />
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration name="dev-ops/docker-compose-environment.yml.redis: Compose Deployment" type="docker-deploy" factoryName="docker-compose.yml" temporary="true" server-name="Docker_TX">
<deployment type="docker-compose.yml">
<settings>
<option name="services">
<list>
<option value="redis" />
</list>
</option>
<option name="sourceFilePath" value="docs/dev-ops/docker-compose-environment.yml" />
</settings>
</deployment>
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="JUnit.AwardDaoTest.test_queryAwardList" />
<item itemvalue="Docker.dev-ops/docker-compose-environment.yml: Compose Deployment" />
<item itemvalue="Docker.dev-ops/docker-compose-environment.yml.redis: Compose Deployment" />
<item itemvalue="Docker.dev-ops/docker-compose-environment.yml.mysql: Compose Deployment" />
<item itemvalue="Docker.dev-ops/docker-compose-environment.yml.phpmyadmin: Compose Deployment" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
......@@ -189,10 +190,63 @@
<option name="presentableId" value="Default" />
<updated>1722655660949</updated>
<workItem from="1722655661932" duration="956000" />
<workItem from="1722656628853" duration="1467000" />
<workItem from="1722737091204" duration="1172000" />
<workItem from="1722739861763" duration="515000" />
<workItem from="1722745967705" duration="1102000" />
<workItem from="1722747145884" duration="1544000" />
<workItem from="1722749638523" duration="984000" />
<workItem from="1722947722956" duration="3323000" />
<workItem from="1723034620802" duration="1288000" />
<workItem from="1724069798341" duration="4717000" />
<workItem from="1724074553252" duration="66000" />
<workItem from="1724074657182" duration="25000" />
<workItem from="1724074877793" duration="530000" />
<workItem from="1724239860639" duration="97000" />
<workItem from="1726396975877" duration="13000" />
</task>
<task id="LOCAL-00001" summary="脚手架初始化">
<created>1722656775265</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1722656775265</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="FILTERS">
<map>
<entry key="branch">
<value>
<list>
<option value="origin/Xiong" />
</list>
</value>
</entry>
</map>
</option>
</State>
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="脚手架初始化" />
<option name="LAST_COMMIT_MESSAGE" value="脚手架初始化" />
</component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project>
\ No newline at end of file
package org.itxzw;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......
......@@ -15,9 +15,9 @@ thread:
# 数据库配置;启动时配置数据库资源信息
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/xfg_frame_archetype?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&useSSL=true
username: root
password: 123456
url: jdbc:mysql://127.0.0.1:3306/xfg_frame_archetype?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&useSSL=true
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
pool-name: Retail_HikariCP
......@@ -31,9 +31,9 @@ spring:
type: com.zaxxer.hikari.HikariDataSource
# MyBatis 配置【如需使用记得打开】
#mybatis:
# mapper-locations: classpath:/mybatis/mapper/*.xml
# config-location: classpath:/mybatis/config/mybatis-config.xml
mybatis:
mapper-locations: classpath:/mybatis/mapper/*.xml
config-location: classpath:/mybatis/config/mybatis-config.xml
# 日志
logging:
......
<?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="org.itxzw.infrastructure.persistent.dao.IAwardDao">
<resultMap id="dataMap" type="org.itxzw.infrastructure.persistent.po.Award">
<id column="id" property="id"/>
<result column="award_id" property="awardId"/>
<result column="award_key" property="awardKey"/>
<result column="award_config" property="awardConfig"/>
<result column="award_desc" property="awardDesc"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<select id="queryAwardList" resultMap="dataMap">
select award_id, award_key, award_config, award_desc
from award
limit 10
</select>
<select id="queryAwardConfigByAwardId" parameterType="java.lang.Integer" resultType="java.lang.String">
select award_config from award where award_id = #{awardId}
</select>
<select id="queryAwardKeyByAwardId" parameterType="java.lang.Integer" resultType="java.lang.String">
select award_key from award where award_id = #{awardId}
</select>
</mapper>
<?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="org.itxzw.infrastructure.persistent.dao.IStrategyAwardDao">
<resultMap id="dataMap" type="org.itxzw.infrastructure.persistent.po.StrategyAward">
<id column="id" property="id"/>
<result column="strategy_id" property="strategyId"/>
<result column="award_id" property="awardId"/>
<result column="award_title" property="awardTitle"/>
<result column="award_subtitle" property="awardSubtitle"/>
<result column="award_count" property="awardCount"/>
<result column="award_count_surplus" property="awardCountSurplus"/>
<result column="award_rate" property="awardRate"/>
<result column="rule_models" property="ruleModels"/>
<result column="sort" property="sort"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<select id="queryStrategyAwardList" resultMap="dataMap">
select *
from strategy_award
limit 10
</select>
</mapper>
<?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="org.itxzw.infrastructure.persistent.dao.Xxx">
<mapper namespace="org.itxzw.infrastructure.persistent.dao.IStrategyDao">
<resultMap id="CaseMap" type="org.itxzw.infrastructure.persistent.po.A">
<resultMap id="dataMap" type="org.itxzw.infrastructure.persistent.po.Strategy">
<id column="id" property="id"/>
<result column="strategy_id" property="strategyId"/>
<result column="strategy_desc" property="strategyDesc"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<insert id="insert" parameterType="org.itxzw.infrastructure.persistent.po.A">
INSERT INTO table(a,b,c) VALUES(#{a}, #{b}, #{c})
</insert>
<update id="update" parameterType="org.itxzw.infrastructure.persistent.po.A">
UPDATE table SET a = #{a} WHERE b = #{b}
</update>
<select id="queryEmployeeByEmployNumber" parameterType="java.lang.String" resultMap="CaseMap">
SELECT a, b, c
FROM table
WHERE a = #{a}
<select id="queryStrategyList" resultMap="dataMap">
select *
from strategy
limit 10
</select>
</mapper>
<?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="org.itxzw.infrastructure.persistent.dao.IStrategyRuleDao">
<resultMap id="dataMap" type="org.itxzw.infrastructure.persistent.po.StrategyRule">
<id column="id" property="id"/>
<result column="strategy_id" property="strategyId"/>
<result column="award_id" property="awardId"/>
<result column="rule_type" property="ruleType"/>
<result column="rule_model" property="ruleModel"/>
<result column="rule_value" property="ruleValue"/>
<result column="rule_desc" property="ruleDesc"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<select id="queryStrategyRuleList" resultMap="dataMap">
select *
from strategy_rule limit 10
</select>
</mapper>
package org.itxzw.test.infrastructure;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.itxzw.infrastructure.persistent.dao.IAwardDao;
import org.itxzw.infrastructure.persistent.dao.IStrategyAwardDao;
import org.itxzw.infrastructure.persistent.dao.IStrategyDao;
import org.itxzw.infrastructure.persistent.dao.IStrategyRuleDao;
import org.itxzw.infrastructure.persistent.po.Award;
import org.itxzw.infrastructure.persistent.po.Strategy;
import org.itxzw.infrastructure.persistent.po.StrategyAward;
import org.itxzw.infrastructure.persistent.po.StrategyRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.util.List;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class AwardDaoTest {
@Autowired
private IAwardDao awardDao;
@Autowired
private IStrategyDao strategyDao;
@Autowired
private IStrategyAwardDao strategyAwardDao;
@Autowired
private IStrategyRuleDao strategyRuleDao;
@Test
public void test_queryAwardList() {
List<StrategyAward> strategyAwards = strategyAwardDao.queryStrategyAwardList();
log.info("测试结果:{}", JSON.toJSONString(strategyAwards));
List<StrategyRule> strategyRules = strategyRuleDao.queryStrategyRuleList();
log.info("测试结果:{}", JSON.toJSONString(strategyRules));
}
}
package org.itxzw.infrastructure.persistent.dao;
import org.apache.ibatis.annotations.Mapper;
import org.itxzw.infrastructure.persistent.po.Award;
import java.util.List;
/**
* 奖品表DAO
*/
@Mapper
public interface IAwardDao {
List<Award> queryAwardList();
}
package org.itxzw.infrastructure.persistent.dao;
import org.apache.ibatis.annotations.Mapper;
import org.itxzw.infrastructure.persistent.po.StrategyAward;
import java.util.List;
/**
* 抽奖策略奖品明细配置DAO
*/
@Mapper
public interface IStrategyAwardDao {
List<StrategyAward> queryStrategyAwardList();
}
package org.itxzw.infrastructure.persistent.dao;
import org.apache.ibatis.annotations.Mapper;
import org.itxzw.infrastructure.persistent.po.Strategy;
import java.util.List;
/**
* 抽奖策略DAO
*/
@Mapper
public interface IStrategyDao {
List<Strategy> queryStrategyList();
}
package org.itxzw.infrastructure.persistent.dao;
import org.apache.ibatis.annotations.Mapper;
import org.itxzw.infrastructure.persistent.po.StrategyRule;
import java.util.List;
/**
* 策略规则DAO
*/
@Mapper
public interface IStrategyRuleDao {
List<StrategyRule> queryStrategyRuleList();
}
package org.itxzw.infrastructure.persistent.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* 奖品表
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Award {
private Long id; // bigint unsigned -> Long
private Long awardId; // bigint -> Long
private String awardKey; // varchar(255) -> String
private String awardConfig; // varchar(255) -> String
private String awardDesc; // varchar(255) -> String
private Date createTime; // datetime -> Date
private Date updateTime; // datetime -> Date
}
package org.itxzw.infrastructure.persistent.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* 抽奖策略
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Strategy {
private Long id;
private Long strategyId;
private String strategyDesc;
private Date createTime;
private Date updateTime;
}
package org.itxzw.infrastructure.persistent.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.Date;
/**
* 抽奖策略奖品明细配置
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StrategyAward {
private Long id;
private Long strategyId;
private Integer awardId;
private String awardTitle;
private String awardSubtitle;
private Integer awardCount;
private Integer awardCountSurplus;
private BigDecimal awardRate;
private String ruleModels;
private Integer sort;
private Date createTime;
private Date updateTime;
}
package org.itxzw.infrastructure.persistent.po;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* 策略规则
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StrategyRule {
private Long id;
private Integer strategyId;
private Integer awardId;
private Byte ruleType;
private String ruleModel;
private String ruleValue;
private String ruleDesc;
private Date createTime;
private Date updateTime;
}
24-08-03.11:28:49.610 [main ] INFO Application - Starting Application using Java 1.8.0_131 on zhiwen-xiong-hz with PID 10712 (D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market\big-market-app\target\classes started by a1829 in D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market)
24-08-03.11:28:49.612 [main ] INFO Application - The following 1 profile is active: "dev"
24-08-03.11:28:50.103 [main ] WARN ClassPathMapperScanner - No MyBatis mapper was found in '[org.itxzw]' package. Please check your configuration.
24-08-03.11:28:50.362 [main ] INFO TomcatWebServer - Tomcat initialized with port(s): 8091 (http)
24-08-03.11:28:50.369 [main ] INFO Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8091"]
24-08-03.11:28:50.369 [main ] INFO StandardService - Starting service [Tomcat]
24-08-03.11:28:50.369 [main ] INFO StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.75]
24-08-03.11:28:50.555 [main ] INFO [/] - Initializing Spring embedded WebApplicationContext
24-08-03.11:28:50.556 [main ] INFO ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 915 ms
24-08-03.11:28:50.950 [main ] INFO Http11NioProtocol - Starting ProtocolHandler ["http-nio-8091"]
24-08-03.11:28:50.966 [main ] INFO TomcatWebServer - Tomcat started on port(s): 8091 (http) with context path ''
24-08-03.11:28:50.972 [main ] INFO Application - Started Application in 1.788 seconds (JVM running for 2.674)
24-08-19.21:30:58.065 [main ] INFO Application - Starting Application using Java 1.8.0_131 on zhiwen-xiong-hz with PID 15480 (D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market\big-market-app\target\classes started by a1829 in D:\Code\Java\xiangmu\dayingxiao\xfg-frame-archetype-lite\big-market)
24-08-19.21:30:58.067 [main ] INFO Application - The following 1 profile is active: "dev"
24-08-19.21:30:58.736 [main ] INFO TomcatWebServer - Tomcat initialized with port(s): 8091 (http)
24-08-19.21:30:58.742 [main ] INFO Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8091"]
24-08-19.21:30:58.743 [main ] INFO StandardService - Starting service [Tomcat]
24-08-19.21:30:58.743 [main ] INFO StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.75]
24-08-19.21:30:58.930 [main ] INFO [/] - Initializing Spring embedded WebApplicationContext
24-08-19.21:30:58.930 [main ] INFO ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 834 ms
24-08-19.21:30:59.426 [main ] INFO Http11NioProtocol - Starting ProtocolHandler ["http-nio-8091"]
24-08-19.21:30:59.443 [main ] INFO TomcatWebServer - Tomcat started on port(s): 8091 (http) with context path ''
24-08-19.21:30:59.448 [main ] INFO Application - Started Application in 1.666 seconds (JVM running for 2.272)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册