dataLists(new MasterWorkerRetentionMoneyLogLists()); } public function totalAmount() { $params = (new MasterWorkerRetentionMoneyLogValidate())->get()->goCheck('totalAmount'); $result = RetentionMoneyLogic::totalAmount($params); if (false === $result) { return $this->fail(RetentionMoneyLogic::getError()); } return $this->success('操作成功',$result, 1, 0); } public function add() { $params = (new MasterWorkerRetentionMoneyLogValidate())->post()->goCheck('add'); $result = RetentionMoneyLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(RetentionMoneyLogic::getError()); } }