framework/src/main/resources/mapper/InformationNotificationMapper.xml
@@ -8,6 +8,7 @@ left join user u on i.sender_id = u.id left join user u2 on u2.id = i.consignee_id where i.consignee_id = #{userId} and DATE(i.create_time) BETWEEN CURDATE() - INTERVAL 7 DAY AND CURDATE() <if test="messageType != '' and messageType != null"> and i.message_type = #{messageType} </if>