select sac.id, sac.cfg_type, sac.cfg_id, sac.app_id, sac.public_key, sac.private_key, sac.project_id, sp.project_name, sac.dept_id, sd.dept_name, sac.is_del, sac.create_by, sac.create_time, sac.update_by, sac.update_time, sac.remark from sys_apply_config sac left join pro_project_info sp on sac.project_id = sp.id left join sys_dept sd on sac.dept_id = sd.dept_id insert into sys_apply_config id, cfg_type, cfg_id, app_id, public_key, private_key, project_id, dept_id, is_del, create_by, create_time, update_by, update_time, remark, #{id}, #{cfgType}, #{cfgId}, #{appId}, #{publicKey}, #{privateKey}, #{projectId}, #{deptId}, #{isDel}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update sys_apply_config cfg_type = #{cfgType}, cfg_id = #{cfgId}, app_id = #{appId}, public_key = #{publicKey}, private_key = #{privateKey}, project_id = #{projectId}, dept_id = #{deptId}, is_del = #{isDel}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from sys_apply_config where id = #{id} delete from sys_apply_config where id in #{id}