海航数据导入

dev_local_2
daiao 6 years ago
parent 38ca342e4d
commit 36dccbdd41

@ -110,7 +110,7 @@ class InitializationDataController < ApplicationController
ActiveRecord::Base.establish_connection( ActiveRecord::Base.establish_connection(
adapter: "mysql2", adapter: "mysql2",
host: "rm-bp13v5020p7828r5r.mysql.rds.aliyuncs.com", host: "rm-bp13v5020p7828r5r.mysql.rds.aliyuncs.com",
username: "testeducoder", username: "preeducoderweb",
password: "TEST@123", password: "TEST@123",
database: "#{database}", database: "#{database}",
encoding: "utf8" encoding: "utf8"

@ -38,11 +38,11 @@ user_extension_params = [
id: 1, id: 1,
user_id: 1, user_id: 1,
gender: 0, gender: 0,
location: "湖南", location: "山东",
occupation: "中国移动通信集团", occupation: "海军航空大学",
technical_title: "副教授", technical_title: "副教授",
identity: 0, identity: 0,
location_city: "长沙", location_city: "烟台",
school_id: 1, school_id: 1,
department_id: 1 department_id: 1
}, },
@ -55,18 +55,18 @@ user_extension_params = [
] ]
school_params = { school_params = {
id: 1, id: 1,
name: "中国移动通信集团", name: "海军航空大学",
province: "湖南", province: "山东",
pinyin: 'zhongguoyidongtongxinjiduan', pinyin: 'zhongguoyidongtongxinjiduan',
school_type: 0, school_type: 0,
city: "长沙", city: "烟台",
address: "湖南省长沙市", address: "二马路",
auto_users_trial: 1, auto_users_trial: 1,
identifier: 'nudt' identifier: 'nudt'
} }
department_params = { department_params = {
id: 1, id: 1,
name: '湖南有限公司', name: '航空基础学院',
school_id: 1, school_id: 1,
is_auth: 1 is_auth: 1
} }

Loading…
Cancel
Save