liumiao
2021-01-29 c0886671aa302d3ac29e8edbb961664c445c1af4
根据学员获取课次
1 files modified
5 ■■■■■ changed files
app/Http/Controllers/Api/v1/ClassScheduleController.php 5 ●●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/ClassScheduleController.php
@@ -345,6 +345,7 @@
        $orgId = $request->post("orgId");
        $roleIdArr = $request->post("roleIdArr");
        $courseTableId = $request->post("courseTableId");
        $contentTime = $request->post("contentTime");
        $teacherId = $this->getAndCheckTeacherId(); //236523
        if(empty($date))
        {
@@ -356,9 +357,9 @@
        //获取开始结束日期
        $dateInfo = $this->getthemonth($date);
        $where = " and ct.startTime between '{$dateInfo[0]}' and  '{$dateInfo[1]}'";
        if(is_numeric($courseTableId) && $courseTableId > 0)
        if(is_numeric($courseTableId) && $courseTableId > 0 && !empty($contentTime))
        {
            $where .= " and ct.id =" . $courseTableId;
            $where .= " and ct.id = {$courseTableId} and ctt.contentTime  = {$contentTime} ";
        }
        switch ($roleId)
        {