lin
2024-03-11 a9c3679355a14ff6f3dd7f72413f8d2414f5c488
src/main/java/org/springblade/modules/messageRecord/mapper/MessageUserMapper.xml
@@ -21,9 +21,27 @@
            <if test="vo.type != null and vo.type !=''">
                AND bmu.type LIKE CONCAT('%',#{vo.type},'%')
            </if>
        <if test="vo.title != null and vo.title !=''">
            AND bmr.title LIKE CONCAT('%',#{vo.title},'%')
        </if>
        <if test="vo.sendStatus != null and vo.sendStatus !=''">
            AND bmu.send_status  = #{vo.sendStatus}
        </if>
        <if test="vo.content != null and vo.content !=''">
            AND bmr.content LIKE CONCAT('%',#{vo.content},'%')
        </if>
            <if test="vo.sendUserId != null and vo.sendUserId !=''">
                AND bmr.create_user = #{vo.sendUserId}
            </if>
        <if test="vo.sendUserName != null and vo.sendUserName !=''">
            AND bu.real_name LIKE CONCAT('%',#{vo.sendUserName},'%')
        </if>
        <if test="vo.receiveUserName != null and vo.receiveUserName !=''">
            AND bu1.real_name LIKE CONCAT('%',#{vo.receiveUserName},'%')
        </if>
        ORDER BY bmu.create_time DESC
    </select>