...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace app\common\model;
|
|
|
|
|
|
use app\admin\model\Time;
|
|
|
use app\common\controller\Resource;
|
|
|
use think\Model;
|
|
|
|
...
|
...
|
@@ -38,7 +39,9 @@ class SeverSku extends Model |
|
|
$time1 = strtotime("$yue $time");
|
|
|
$endTime = $time1 + ($mins * 60);
|
|
|
$end_time = date('H:i',$endTime);
|
|
|
if ($end_time > '22:15'){
|
|
|
$maxId = (new Time)->max('id');
|
|
|
$maxTime = (new Time)->where('id',$maxId)->value('time');
|
|
|
if ($end_time > $maxTime){
|
|
|
return false;
|
|
|
}
|
|
|
$status = db('tech_status')->where(['date' => $date, 'tech_id' => $tech_id, 'time' => ['between',[$time,$end_time]]])->column('status');
|
...
|
...
|
|