KKSU
2024-06-24 159c4ae136e14f9bbfb28eef799b42fe59d9fd9e
src/main/resources/mapper/dapp/DbMemberNodeMapper.xml
@@ -8,23 +8,34 @@
        from
             db_member_node
        where work_state = #{workState}
          and type = #{type}
            and (left_node is null or right_node is null)
        ORDER BY create_time ASC
            limit 1
    </select>
    <select id="selectListByDate" resultType="cc.mrbird.febs.dapp.entity.DbMemberNode">
        select
               *
        from
            db_member_node
        where date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
    </select>
    <update id="updateDicValueByTypeAndCode">
        update data_dictionary_custom
        set value=#{value}
    <select id="selectListInPage" resultType="cc.mrbird.febs.dapp.entity.DbMemberNode">
        select
        a.*,
               b.address address
        from
        db_member_node a
        left join dapp_member b on a.member_id = b.id
        <where>
            1=1
            <if test="code != null and code != ''">
                and code = #{code}
            </if>
            <if test="type != null and type != ''">
                and type = #{type}
            <if test="record.address != '' and record.address != null">
                and b.address = #{record.address}
            </if>
        </where>
    </update>
        order by a.create_time desc
    </select>
</mapper>