作者 lyh

gx

@@ -35,4 +35,15 @@ class HrController extends BaseController @@ -35,4 +35,15 @@ class HrController extends BaseController
35 return $this->success($data); 35 return $this->success($data);
36 } 36 }
37 37
  38 + /**
  39 + * @remark :获取组织部门
  40 + * @name :deptList
  41 + * @author :lyh
  42 + * @method :post
  43 + * @time :2023/7/22 17:17
  44 + */
  45 + public function deptList(HrLogic $hrLogic){
  46 + $list = $hrLogic->deptList();
  47 + $this->response('success',Code::SUCCESS,$list);
  48 + }
38 } 49 }
@@ -35,6 +35,8 @@ class LoginLogic extends BaseLogic @@ -35,6 +35,8 @@ class LoginLogic extends BaseLogic
35 $this->fail('帐号已被禁用'); 35 $this->fail('帐号已被禁用');
36 } 36 }
37 if (!Hash::check($this->requestAll['password'], $manage->password)) { 37 if (!Hash::check($this->requestAll['password'], $manage->password)) {
  38 + var_dump($this->requestAll['password']);
  39 + die();
38 $this->fail('登录密码不正确'); 40 $this->fail('登录密码不正确');
39 } 41 }
40 if(!empty($manage['token'])){ 42 if(!empty($manage['token'])){
@@ -56,4 +56,6 @@ class HrLogic extends BaseLogic @@ -56,4 +56,6 @@ class HrLogic extends BaseLogic
56 $data['dangzhibu'] = $this->model::dangzhibu(); 56 $data['dangzhibu'] = $this->model::dangzhibu();
57 return $data; 57 return $data;
58 } 58 }
  59 +
  60 +
59 } 61 }
@@ -53,7 +53,7 @@ class KeywordsLogic extends BaseLogic @@ -53,7 +53,7 @@ class KeywordsLogic extends BaseLogic
53 * @time :2023/7/22 16:46 53 * @time :2023/7/22 16:46
54 */ 54 */
55 public function searchRouteMap($map,&$data){ 55 public function searchRouteMap($map,&$data){
56 - $keyList = $this->routeMapModel->list($map,'created_at'); 56 + $keyList = $this->routeMapModel->list(['route'=>$map['search']],'created_at');
57 foreach ($keyList as $v){ 57 foreach ($keyList as $v){
58 $data[] = $v['project_id']; 58 $data[] = $v['project_id'];
59 } 59 }
@@ -68,7 +68,7 @@ class KeywordsLogic extends BaseLogic @@ -68,7 +68,7 @@ class KeywordsLogic extends BaseLogic
68 * @time :2023/7/22 16:52 68 * @time :2023/7/22 16:52
69 */ 69 */
70 public function searchProductKeyword($map,&$data){ 70 public function searchProductKeyword($map,&$data){
71 - $keyList = $this->productKeywordModel->list($map); 71 + $keyList = $this->productKeywordModel->list(['title'=>$map['search']]);
72 foreach ($keyList as $v){ 72 foreach ($keyList as $v){
73 $data[] = $v['project_id']; 73 $data[] = $v['project_id'];
74 } 74 }