无关风月
2025-11-06 547209172a4decd10345190702bf4dcbda3f0d21
ruoyi-system/src/main/resources/mapper/system/THelpNeedsMapper.xml
@@ -21,5 +21,18 @@
    <sql id="Base_Column_List">
        id, app_user_id, nick_name, contact_number, requirement_description, pictures, create_time, update_time, create_by, update_by, disabled
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.model.THelpNeeds">
        select t1.* from t_help_needs
        where 1=1
        <if test="query.nickName != null and query.nickName != ''">
            and t1.nick_name like concat('%',#{query.nickName},'%')
        </if>
        <if test="query.contactNumber != null and query.contactNumber != ''">
            and t1.contact_number like concat('%',#{query.contactNumber},'%')
        </if>
        <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''">
            and t1.create_time between #{query.startTime} and #{query.endTime}
        </if>
    </select>
</mapper>