黄远 5 سال پیش
والد
کامیت
a7510db55f
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      lift-batch-service/src/main/resources/mapper/LiftDataMapper.xml

+ 3 - 2
lift-batch-service/src/main/resources/mapper/LiftDataMapper.xml

@@ -31,9 +31,10 @@
         on
             p.region_id = r.id
         where
-            true
-        and
             pclr.mt_company_id = #{mtCompanyId}
+        <if test = "endTimeDateStr != null and endTimeDateStr != ''">
+            and p.create_date <![CDATA[ <= ]]> #{endTimeDateStr}
+        </if>
     </select>
 
 </mapper>