黄远 5 vuotta sitten
vanhempi
commit
a7510db55f

+ 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>