Quellcode durchsuchen

Merge branch 'lcy' of http://47.107.53.207:3000/traineeCoder001/Digital-Investment

JensionDzero vor 1 Jahr
Ursprung
Commit
ed2242a84b
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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>