KKSU
2024-06-21 5519fb3a19df1bb839d29d23abc3f320c5c77baa
src/main/resources/mapper/dapp/DbMemberNodeMapper.xml
@@ -8,23 +8,19 @@
        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}
        <where>
            1=1
            <if test="code != null and code != ''">
                and code = #{code}
            </if>
            <if test="type != null and type != ''">
                and type = #{type}
            </if>
        </where>
    </update>
</mapper>