feat(system): 新增代理租户续费功能及多级代理支持

This commit is contained in:
2025-11-26 13:38:53 +08:00
parent d99bb17419
commit 42ec325815
12 changed files with 251 additions and 6 deletions

View File

@@ -16,4 +16,67 @@
select * from system_users where tenant_id=#{tenantId,jdbcType=BIGINT}
</select>
<select id="selectByUsernameAndTenantIdWithAgencyRenewal"
resultType="cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO">
select * from system_users
where username=#{initialUser,jdbcType=VARCHAR} and tenant_id=#{targetTenantId,jdbcType=BIGINT}
</select>
<update id="updateByIdWithRenwal">
update system_users set
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="deptId != null">
dept_id = #{deptId,jdbcType=BIGINT},
</if>
<if test="postIds != null">
post_ids = #{postIds,jdbcType=VARCHAR,typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
<if test="mobile != null">
mobile = #{mobile,jdbcType=VARCHAR},
</if>
<if test="sex != null">
sex = #{sex,jdbcType=INTEGER},
</if>
<if test="avatar != null">
avatar = #{avatar,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="loginIp != null">
login_ip = #{loginIp,jdbcType=VARCHAR},
</if>
<if test="loginDate != null">
login_date = #{loginDate,jdbcType=TIMESTAMP},
</if>
<if test="crawl != null">
crawl = #{crawl,jdbcType=TINYINT},
</if>
<if test="bigBrother != null">
big_brother = #{bigBrother,jdbcType=TINYINT},
</if>
<if test="aiChat != null">
ai_chat = #{aiChat,jdbcType=TINYINT},
</if>
<if test="aiReplay != null">
ai_replay = #{aiReplay,jdbcType=TINYINT},
</if>
update_time = NOW()
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>