黄远 пре 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>