liusuyi
2025-12-23 c7fa563f9a951c647725c3d0e02b7bce366d23ea
ard-work/src/main/resources/mapper/ArdFlightTaskPartMapper.xml
@@ -15,14 +15,17 @@
    <select id="selectByTaskStartTime" resultType="ArdFlightTaskPart">
        SELECT *
        FROM ard_flight_task_part u
        WHERE u.box_sn = #{boxSn}
        <if test="params.beginTime != null"><!-- 开始时间检索 -->
        <where>
            u.box_sn = #{boxSn}
            <if test="params.beginTime != null">
            AND u.create_time &gt;= #{params.beginTime}
        </if>
        <if test="params.endTime != null"><!-- 结束时间检索 -->
            <if test="params.endTime != null">
            AND u.create_time &lt;= #{params.endTime}
        </if>
        ORDER BY u.create_time asc
        </where>
        ORDER BY u.create_time ASC
    </select>
</mapper>