Bladeren bron

修复扫码时间分布接口bug

云殇忆 1 jaar geleden
bovenliggende
commit
0620b24e08
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      ruoyi-demo/src/main/resources/mapper/demo/StatisticsMapper.xml

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

@@ -57,7 +57,7 @@
             `dl_statistics`
         <where>
             <if test="month != null">
-                DATE_FORMAT(`time`,'%Y-%m') = DATE_FORMAT(#{month},'%Y-%m')
+                DATE_FORMAT(`time`,'%Y-%m') = #{month}
             </if>
         </where>;
     </select>
@@ -68,7 +68,7 @@
             `dl_statistics`
         <where>
             <if test="day != null">
-                DATE_FORMAT(`time`,'%Y-%m-%d') = DATE_FORMAT(#{day},'%Y-%m-%d')
+                DATE_FORMAT(`time`,'%Y-%m-%d') = #{day}
             </if>
         </where>;
     </select>
@@ -79,7 +79,7 @@
             `dl_statistics`
         <where>
             <if test="year != null">
-                DATE_FORMAT(`time`,'%Y') = DATE_FORMAT(#{year},'%Y')
+                DATE_FORMAT(`time`,'%Y') = #{year}
             </if>
         </where>;
     </select>