Browse Source

打包xml加载到config下

mac 2 years ago
parent
commit
6d35140400

+ 14 - 0
kxs-product/kxs-product-biz/pom.xml

@@ -70,6 +70,20 @@
     </dependencies>
     </dependencies>
 
 
     <build>
     <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+            <!--打包java路径下的静态文件-->
+            <resource>
+                <directory>src/main/java</directory>
+                <filtering>false</filtering>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+            </resource>
+        </resources>
         <plugins>
         <plugins>
             <!--该插件的作用是打包spring-boot的jar包-->
             <!--该插件的作用是打包spring-boot的jar包-->
             <plugin>
             <plugin>

+ 1 - 1
kxs-store/kxs-store-api/src/main/java/com/kxs/store/api/model/KxsSendTotal.java

@@ -88,7 +88,7 @@ public class KxsSendTotal extends Model<KxsSendTotal> implements Serializable {
 
 
 
 
     /**
     /**
-     * 统计类型 0月 1天
+     * 统计类型 0天 1月
      */
      */
     @Schema(description = "统计类型 0天 1月")
     @Schema(description = "统计类型 0天 1月")
     private Integer totalType;
     private Integer totalType;

+ 14 - 0
kxs-store/kxs-store-biz/pom.xml

@@ -90,6 +90,20 @@
     </dependencies>
     </dependencies>
 
 
     <build>
     <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+            <!--打包java路径下的静态文件-->
+            <resource>
+                <directory>src/main/java</directory>
+                <filtering>false</filtering>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+            </resource>
+        </resources>
         <plugins>
         <plugins>
             <!--该插件的作用是打包spring-boot的jar包-->
             <!--该插件的作用是打包spring-boot的jar包-->
             <plugin>
             <plugin>

+ 14 - 0
kxs-system/kxs-system-biz/pom.xml

@@ -84,6 +84,20 @@
     </dependencies>
     </dependencies>
 
 
     <build>
     <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+            <!--打包java路径下的静态文件-->
+            <resource>
+                <directory>src/main/java</directory>
+                <filtering>false</filtering>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+            </resource>
+        </resources>
         <plugins>
         <plugins>
             <!--该插件的作用是打包spring-boot的jar包-->
             <!--该插件的作用是打包spring-boot的jar包-->
             <plugin>
             <plugin>

+ 1 - 2
kxs-user/kxs-user-biz/src/main/java/com/kxs/user/biz/service/impl/TradeDaySummaryServiceImpl.java

@@ -28,7 +28,6 @@ public class TradeDaySummaryServiceImpl extends ServiceImpl<TradeDaySummaryMappe
         Long userId = SecurityUtils.getUser().getId();
         Long userId = SecurityUtils.getUser().getId();
         String thisMonth = LocalDateTimeUtil.format(LocalDateTime.now(), DatePattern.SIMPLE_MONTH_PATTERN);
         String thisMonth = LocalDateTimeUtil.format(LocalDateTime.now(), DatePattern.SIMPLE_MONTH_PATTERN);
 
 
-        AmountDetailVO amountDetailVO = baseMapper.currentMonthsTotal(userId, thisMonth);
-        return amountDetailVO;
+        return baseMapper.currentMonthsTotal(userId, thisMonth);
     }
     }
 }
 }