0
This commit is contained in:
1 parent
549333858c
commit
3d0626ea3a
3 files changed
+9
-9
No files matched your search
@@ -115,13 +115,13 @@ class Banji extends BaseController
|
||||
$paixumax = bjmod::where('school_id', $list['school_id'])
|
||||
->where('ruxuenian', $list['ruxuenian'])
|
||||
->max('paixu');
|
||||
if($paixumax + $list['bjsum'] > 25) # 如果增加班级数超过2个,则少加班级
|
||||
{
|
||||
$list['bjsum'] = 25 - $paixumax;
|
||||
if($list['bjsum'] == 0){
|
||||
return json(['msg' => '已经超过同年级班级数的上线啦。', 'val' => 0]);
|
||||
}
|
||||
}
|
||||
// if($paixumax + $list['bjsum'] > 25) # 如果增加班级数超过2个,则少加班级
|
||||
// {
|
||||
// $list['bjsum'] = 25 - $paixumax;
|
||||
// if($list['bjsum'] == 0){
|
||||
// return json(['msg' => '已经超过同年级班级数的上线啦。', 'val' => 0]);
|
||||
// }
|
||||
// }
|
||||
$i = 1;
|
||||
while($i <= $list['bjsum'])
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ class Xueqi extends BaseModel
|
||||
{
|
||||
$src['enddate'] = $srcfrom['enddate'];
|
||||
}else{
|
||||
$src['enddate'] = date("Y-m-d", strtotime("+10 year"));
|
||||
$src['enddate'] = date("Y-m-d", strtotime('now'));
|
||||
}
|
||||
|
||||
// 查询数据
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="layui-form-item">
|
||||
<label for="school" class="layui-form-label"><span class="x-red">*</span>学校</label>
|
||||
<div class="layui-input-block">
|
||||
{php} $schoollist = schoolList('校级','校级');{/php}
|
||||
{php} $schoollist = schoolXueduan('小学','初中');{/php}
|
||||
<select name="school_id" lay-verify="required">
|
||||
<option value=""></option>
|
||||
{volist name="schoollist" id="vo"}
|
||||
|
||||
Reference in new issue
Block a user