ProjectAudit.php 445 B

12345678910111213141516171819
  1. <?php
  2. namespace app\admin\model;
  3. use think\facade\Db;
  4. use think\model;
  5. class ProjectAudit extends model
  6. {
  7. public function getProjectAuditById($id)
  8. {
  9. $info = self::where('project_id', $id)->find();
  10. // if(!empty($info)){
  11. // $unit_type = Db::name("department")->where("id",get_login_admin("unit_name"))->value("type");
  12. // $info["unit_type"] = $unit_type;
  13. // }
  14. return $info;
  15. }
  16. }