master:修改启动指定的配置文件;

pull/1121/head
liujiang 2025-10-25 18:38:42 +08:00
parent 8fb29a2ed3
commit 0ce777a608
3 changed files with 27 additions and 2 deletions

24
pom.xml
View File

@ -320,6 +320,30 @@
</modules>
<packaging>pom</packaging>
<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spring.profiles.active>local</spring.profiles.active>
</properties>
</profile>
<profile>
<id>dev</id>
<properties>
<spring.profiles.active>dev</spring.profiles.active>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<spring.profiles.active>prod</spring.profiles.active>
</properties>
</profile>
</profiles>
<build>
<plugins>
<plugin>

View File

@ -1,4 +1,3 @@
spring:
profiles:
active: local
# active: prod
active: @spring.profiles.active@

View File

@ -98,6 +98,7 @@
<select id="prodSale1000List" resultType="com.ruoyi.xkt.dto.dailyStoreTag.DailyStoreTagDTO">
SELECT
store_id,
store_prod_id,
SUM(IFNULL( sale_num, 0 )) AS count
FROM
@ -105,6 +106,7 @@
WHERE
voucher_date BETWEEN #{oneMonthAgo} AND #{yesterday}
GROUP BY
store_id,
store_prod_id
HAVING
count >= 1000