123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- namespace app\index\controller;
- use app\common\library\UUIDs;
- use think\Controller;
- use think\Db;
- class Index extends Controller
- {
- public function index(){
- // 医生类别 1.临床医生2.报告医生3.审核医生4.确认医生5.登记医生6远程申请医生7.远程报告医生8.远程审核医生(可多选)
- $info = DB::table('doctors')->where('institution_id','73090001')->where('department_id','')->select();
- foreach($info as $k=>$v){
- $a = array();
- $a['id'] = UUIDs::uuid16();
- $a['doctor_id'] = $v['id'];
- $a['department_id'] = '';
- $a['doctor_class'] = '';
- DB::table('doctor_class')->insert($a);
- }
- // $menuIdArr = explode(",", $menuIds);
- // $menus = Db::table("menu")->whereIn("id", $menuIdArr)->select();
- // $menuIdArr = array();
- // foreach ($menus as $key => $val) {
- // array_push($menuIdArr, $val["id"]);
- // }
- // foreach ($info as $k => $v) {
- // Db::table("dr_cla_permission")->where("doctor_id", $v['id'])->where("type", "1")->delete();
- // foreach ($menuIdArr as $key => $val) {
- // $newRow = array();
- // $newRow["id"] = UUIDs::uuid16();
- // $newRow["type"] = "1";
- // $newRow["pass"] = $val;
- // $newRow["doctor_id"] = $v['id'];
- // Db::table("dr_cla_permission")->insert($newRow);
- // }
- // }
- echo "index";
- }
-
-
- }
|