Created by: baozhoutao
写入规则:如果根据api name 能找到记录,则不写 什么时候写库:启动软件包时。如果配置了tenant._id ,则使用此id,如果没有配置,则获取第一个space