kongdeqiang
2025-02-24 7ab1fcfdd4facfdafac50dc06804408e4559dba7
src/main/resources/mapper/OutParkMapper.xml
@@ -39,6 +39,9 @@
                <if test="parkId != null and parkId != ''">
                      and park_id = #{parkId}
                </if>
                <if test="status != null and status != ''">
                      and status = #{status}
                </if>
                <if test="date != null and date != ''">
                      and DATE_FORMAT(create_time,'%Y-%m-%d') &gt;= DATE_FORMAT(#{date},'%Y-%m-%d')
                      and DATE_FORMAT(create_time,'%Y-%m-%d') &lt;= DATE_FORMAT(#{date},'%Y-%m-%d')
@@ -60,6 +63,9 @@
                  <if test="parkId != null and parkId != ''">
                        and park_id = #{parkId}
                  </if>
                  <if test="status != null and status != ''">
                        and status = #{status}
                  </if>
                  <if test="date != null and date != ''">
                        and DATE_FORMAT(create_time,'%Y-%m-%d') &gt;= DATE_FORMAT(#{date},'%Y-%m-%d')
                        and DATE_FORMAT(create_time,'%Y-%m-%d') &lt;= DATE_FORMAT(#{date},'%Y-%m-%d')