代码提交

This commit is contained in:
liang.chao 2025-08-24 15:59:32 +08:00
parent e78a42de1f
commit e58a0cebd3
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) mtm ON mt3.parent_id = mtm.type_id ) mtm ON mt3.parent_id = mtm.type_id
WHERE WHERE
1=1 1=1
<if test="externalId != null and externalId != '' ">
and bp.external_id = #{externalId}
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
and bai.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59') and bai.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
</if> </if>