42 lines
927 B
PHP
42 lines
927 B
PHP
<?php
|
||
/*
|
||
* description:
|
||
* author:wh
|
||
* email:
|
||
* createTime:{2025/3/25} {10:00}
|
||
*/
|
||
|
||
namespace app\api\controller;
|
||
|
||
|
||
use think\Controller;
|
||
use think\Db;
|
||
use wanghua\general_utility_tools_php\Mmodel;
|
||
use wanghua\general_utility_tools_php\tool\Tools;
|
||
|
||
class Worker extends BaseApiAuthController
|
||
{
|
||
|
||
/**
|
||
* desc:获取工作人员列表
|
||
*
|
||
* author:wh
|
||
*/
|
||
function getList(){
|
||
return Mmodel::catchJson(function (){
|
||
$firm_sign = input('firm_sign');//企业标识
|
||
if(empty($firm_sign)){
|
||
return Tools::set_fail('企业标识不能为空');
|
||
}
|
||
|
||
$info = Db::table('fa_admin')
|
||
->where('role','firm')
|
||
->where('firm_id',$firm_sign)
|
||
->select();
|
||
|
||
return Tools::set_ok('ok',[
|
||
'staff_list'=>array_column($info,'rel_wxid')
|
||
]);
|
||
});
|
||
}
|
||
} |