更新
This commit is contained in:
parent
765f78cfaf
commit
5b10068312
@ -566,13 +566,16 @@ class Project extends BasicApi
|
||||
public function positioning(){
|
||||
$member_code=Request::post('member_code');
|
||||
$positioning=Request::post('positioning');
|
||||
$find=Db::name('positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
||||
if(!$find){
|
||||
// $find=Db::name('positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
||||
if($member_code && $positioning){
|
||||
Db::name('positioning')->insert(['member_code'=>$member_code,'positioning'=>$positioning,'date'=>date('Y-m-d H:i:s')]);
|
||||
}
|
||||
$this->success('');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取定位列表
|
||||
*/
|
||||
public function positioning_list($department_code=''){
|
||||
if($department_code){
|
||||
$select= MemberAccount::where('department_code',$department_code)->where('status',1)->field('name,avatar,member_code')->select();
|
||||
|
Loading…
x
Reference in New Issue
Block a user