更新排期

This commit is contained in:
yaooo 2023-11-14 14:26:23 +08:00
parent 2d82830a56
commit e788111ce7

View File

@ -2,7 +2,6 @@
namespace app\middleapi\controller;
use app\common\logic\ShopRequestLogic;
use app\common\logic\task_template\TaskTemplateLogic;
use app\adminapi\validate\task_template\TaskTemplateValidate;
use app\common\model\Company;
@ -71,7 +70,7 @@ class TaskTemplateController extends BaseLikeAdminController
public function add()
{
$params = (new TaskTemplateValidate())->post()->goCheck('add');
$params['admin_id'] = $this->adminId;
$params['admin_id'] = 1;
$company = Company::find($params['company_id']);
if ($company->company_type == 41) {
// 创建 镇农科公司 任务模板
@ -132,24 +131,9 @@ class TaskTemplateController extends BaseLikeAdminController
*/
public function detail()
{
$params = (new TaskTemplateValidate())->goCheck('detail');
$params = (new TaskTemplateValidate())->post()->goCheck('detail');
$result = TaskTemplateLogic::detail($params);
return $this->data($result);
}
public function getProductList()
{
$param = $this->request->param(); // page keyword
$p['page'] = $param['page_no'] ?? 1;
$p['keyword'] = $param['keyword'] ??'';
$result = ShopRequestLogic::getProductList($p);;
// $result['data']['count'] = 1000;
$data = [
'lists' => $result['data']['data'],
'count' => $result['data']['count'],
'page_no' => $result['data']['page'],
'page_size' => 10,
];
return $this->data($data);
}
}