11
zhanghua
2024-09-05 a77cd2572fae653df15a202bdcd692a8e9c44a04
ycl-platform/src/main/resources/mapper/resources/ImageResourcesMapper.xml
@@ -21,7 +21,7 @@
        SELECT
        t2.category,
        t2.event_source,
        t2.id as baseId,
        t2.code as code,
        t1.id,
        t3.region_name,
        t1.create_time,
@@ -31,8 +31,8 @@
        LEFT JOIN ums_base_case t2 ON t1.belong_to_id = t2.id
        LEFT JOIN ums_sccg_region t3 on t3.id=t2.community_id
        <where>
            <if test="type != '' and type != null">
                t1.type=#{type}
            <if test="type != null and type !='' ">
                t1.type = #{type}
            </if>
            <if test="startTime != '' and endTime != '' and startTime != null and endTime != null">
                and t1.create_time between #{startTime} and #{endTime}