|
|
@@ -293,7 +293,11 @@ class PackagingCountDocument extends Api
|
|
|
}else{
|
|
|
$this->error('参数错误');
|
|
|
}
|
|
|
- $rs = db()->table('人事_基本资料')->field('rtrim(员工姓名) as ygxm')->where(['员工编号'=>$sczl_bh,'在职状态'=>'在职'])->find();
|
|
|
+ $rs = db()->table('人事_基本资料')->field('员工编号, rtrim(员工姓名) as ygxm')->where(['pycode'=>$sczl_bh,'在职状态'=>'在职'])->find();
|
|
|
+ if($rs){
|
|
|
+ $this->success('成功',$rs);
|
|
|
+ }
|
|
|
+ $rs = db()->table('人事_基本资料')->field('员工编号, rtrim(员工姓名) as ygxm')->where(['员工编号'=>$sczl_bh,'在职状态'=>'在职'])->find();
|
|
|
if(!$rs){
|
|
|
$this->error('员工编号错误');
|
|
|
}
|