|
|
@@ -15,6 +15,13 @@ class SalaryController extends BaseController
|
|
|
|
|
|
public function actionList()
|
|
|
{
|
|
|
+
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ $founder = $staff->founder ?? 2;
|
|
|
+ if ($founder != 1) {
|
|
|
+ util::fail('没有权限查看哦');
|
|
|
+ }
|
|
|
+
|
|
|
$where = [];
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
$list = SalaryClass::getSalaryList($where);
|
|
|
@@ -24,6 +31,13 @@ class SalaryController extends BaseController
|
|
|
//发工资 ssh 2022710
|
|
|
public function actionAddSalary()
|
|
|
{
|
|
|
+
|
|
|
+ $staff = $this->shopAdmin;
|
|
|
+ $founder = $staff->founder ?? 2;
|
|
|
+ if ($founder != 1) {
|
|
|
+ util::fail('没有权限操作哦');
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$data = $post['data'] ?? '';
|
|
|
if (empty($data)) {
|