1 жил өмнө
parent
commit
1b35cef124

+ 2 - 2
platform-dao/src/main/resources/mapper/longyanpurchaseorder/LongYanPurchaseDetailMapper.xml

@@ -89,10 +89,10 @@
              resultType="com.platform.dao.vo.report.SpareChartsFifityVO">
              resultType="com.platform.dao.vo.report.SpareChartsFifityVO">
         SELECT spare_name,SUM(num) AS totalNum FROM t_long_yan_purchase_detail menu
         SELECT spare_name,SUM(num) AS totalNum FROM t_long_yan_purchase_detail menu
         <where>
         <where>
-            <if test="createdTimeStart != null">
+            <if test="startTime != null">
                 and menu.created_time <![CDATA[>=]]> #{startTime}
                 and menu.created_time <![CDATA[>=]]> #{startTime}
             </if>
             </if>
-            <if test="createdTimeEnd != null">
+            <if test="endTime != null">
                 and menu.created_time <![CDATA[<=]]> #{endTime}
                 and menu.created_time <![CDATA[<=]]> #{endTime}
             </if>
             </if>
         </where>
         </where>