Przeglądaj źródła

修复改时间类型时job中的bug

云殇忆 1 rok temu
rodzic
commit
15a2a7bb4d

+ 14 - 14
ruoyi-demo/src/main/resources/mapper/demo/StatisticsMapper.xml

@@ -37,20 +37,6 @@
             equipment_code = #{equipmentCode}
           AND behavior = 1;
     </select>
-    <select id="selectTotalPriceByEquipmentCode" resultType="java.lang.Float">
-        SELECT
-            SUM(
-                CONVERT (
-                    deal_tool_price,
-                    DECIMAL (16, 2)
-                    )
-                )
-        FROM
-            `dl_statistics`
-        WHERE
-            equipment_code = #{equipmentCode}
-          AND behavior = 1;
-    </select>
     <select id="selectTimeDisByMonth" resultType="java.lang.Integer">
         SELECT
 	        COUNT(*) count
@@ -81,4 +67,18 @@
             AND DATE_FORMAT(`time`,'%Y') = #{year}
         </if>;
     </select>
+    <select id="selectTotalPriceByEquipmentCode" resultType="java.math.BigDecimal">
+        SELECT
+            SUM(
+                CONVERT (
+                    deal_tool_price,
+                    DECIMAL (16, 2)
+                    )
+                )
+        FROM
+            `dl_statistics`
+        WHERE
+            equipment_code = #{equipmentCode}
+          AND behavior = 1;
+    </select>
 </mapper>