Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
SchoolCMS
提交
ac3054e7
S
SchoolCMS
项目概览
纵之格
/
SchoolCMS
通知
11
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SchoolCMS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ac3054e7
编写于
4月 11, 2017
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
学生导入bug
上级
3e3953f8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
18 deletion
+11
-18
Application/Admin/Controller/FractionController.class.php
Application/Admin/Controller/FractionController.class.php
+4
-11
Application/Admin/Controller/StudentController.class.php
Application/Admin/Controller/StudentController.class.php
+7
-7
未找到文件。
Application/Admin/Controller/FractionController.class.php
浏览文件 @
ac3054e7
...
...
@@ -186,35 +186,28 @@ class FractionController extends CommonController
}
// 科目
if
(
isset
(
$data
[
'subject_name'
]))
if
(
!
empty
(
$data
[
'subject_name'
]))
{
$data
[
'subject_id'
]
=
$subject
->
where
(
array
(
'name'
=>
$data
[
'subject_name'
]))
->
getField
(
'id'
);
unset
(
$data
[
'subject_name'
]);
}
// 期号
if
(
isset
(
$data
[
'score_name'
]))
{
$data
[
'score_id'
]
=
$score
->
where
(
array
(
'name'
=>
$data
[
'score_name'
]))
->
getField
(
'id'
);
unset
(
$data
[
'score_name'
]);
}
// 期号
if
(
isset
(
$data
[
'score_name'
]))
if
(
!
empty
(
$data
[
'score_name'
]))
{
$data
[
'score_id'
]
=
$score
->
where
(
array
(
'name'
=>
$data
[
'score_name'
]))
->
getField
(
'id'
);
unset
(
$data
[
'score_name'
]);
}
// 学生
if
(
isset
(
$data
[
'username'
])
&&
isset
(
$data
[
'number'
])
&&
isset
(
$data
[
'id_card'
]))
if
(
!
empty
(
$data
[
'username'
])
&&
isset
(
$data
[
'number'
])
&&
isset
(
$data
[
'id_card'
]))
{
$data
[
'student_id'
]
=
$student
->
where
(
array
(
'username'
=>
$data
[
'username'
],
'number'
=>
$data
[
'number'
],
'id_card'
=>
$data
[
'id_card'
],
'semester_id'
=>
$data
[
'semester_id'
]))
->
getField
(
'id'
);
unset
(
$data
[
'number'
],
$data
[
'id_card'
]);
}
// 添加时间
if
(
isset
(
$data
[
'add_time'
]))
if
(
!
empty
(
$data
[
'add_time'
]))
{
$data
[
'add_time'
]
=
strtotime
(
$data
[
'add_time'
]);
}
else
{
...
...
Application/Admin/Controller/StudentController.class.php
浏览文件 @
ac3054e7
...
...
@@ -213,33 +213,33 @@ class StudentController extends CommonController
}
// 性别
if
(
isset
(
$data
[
'gender'
]))
if
(
!
empty
(
$data
[
'gender'
]))
{
// 性别
$data
[
'gender'
]
=
isset
(
$gender_list
[
$data
[
'gender'
]])
?
$gender_list
[
$data
[
'gender'
]]
:
$gender_list
[
'default'
];
}
// 学生状态
if
(
isset
(
$data
[
'state'
]))
if
(
!
empty
(
$data
[
'state'
]))
{
$data
[
'state'
]
=
isset
(
$student_state_list
[
$data
[
'state'
]])
?
$student_state_list
[
$data
[
'state'
]]
:
$student_state_list
[
'default'
];
}
// 缴费状态
if
(
isset
(
$data
[
'tuition_state'
]))
if
(
!
empty
(
$data
[
'tuition_state'
]))
{
$data
[
'tuition_state'
]
=
isset
(
$tuition_state_list
[
$data
[
'tuition_state'
]])
?
$tuition_state_list
[
$
v
[
'tuition_state'
]]
:
$tuition_state_list
[
'default'
];
$data
[
'tuition_state'
]
=
isset
(
$tuition_state_list
[
$data
[
'tuition_state'
]])
?
$tuition_state_list
[
$
data
[
'tuition_state'
]]
:
$tuition_state_list
[
'default'
];
}
// 地区
if
(
isset
(
$data
[
'region_name'
]))
if
(
!
empty
(
$data
[
'region_name'
]))
{
$data
[
'region_id'
]
=
$r
->
where
(
array
(
'name'
=>
$data
[
'region_name'
]))
->
getField
(
'id'
);
unset
(
$data
[
'region_name'
]);
}
// 班级
if
(
isset
(
$data
[
'class_name'
]))
if
(
!
empty
(
$data
[
'class_name'
]))
{
if
(
strpos
(
$data
[
'class_name'
],
'-'
)
===
false
)
{
...
...
@@ -253,7 +253,7 @@ class StudentController extends CommonController
}
// 添加时间
if
(
isset
(
$data
[
'add_time'
]))
if
(
!
empty
(
$data
[
'add_time'
]))
{
$data
[
'add_time'
]
=
strtotime
(
$data
[
'add_time'
]);
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录