Commit 40847a6b authored by hujun's avatar hujun

保存周报日报四个字段-搜索条件修改

parent ae5d653d
......@@ -116,12 +116,13 @@ class Statement extends Basic
* @throws \think\exception\DbException
*/
public function setReportContent() {
header('Access-Control-Allow-Origin:*');
$code = 200;
$msg = '';
$data = [];
$note = new RAgentNote();
if ($this->request->isGet()) {
$data = $note->get($this->agentId);
$data = $note->get(['agent_id'=>$this->agentId]);
} else {
$save_data['agent_id'] = $this->agentId;
$save_data['content'] = $this->params['content'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment