|
@@ -58,6 +58,10 @@ class resumelogic extends baselogic
|
|
|
'getallinfobyid' => [
|
|
|
['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
|
|
|
],
|
|
|
+ 'updatesendstatusbyid' => [
|
|
|
+ ['name' => 'sendid', 'title' => 'sendid', 'require' => true, 'type' => 'numeric'],
|
|
|
+ ['name' => 'status', 'title' => 'status', 'require' => true, 'type' => 'numeric', 'regex' => '/[0|1|2]{1}/'],
|
|
|
+ ],
|
|
|
];
|
|
|
return $list;
|
|
|
}
|
|
@@ -368,4 +372,26 @@ class resumelogic extends baselogic
|
|
|
$list = $m_s->getList($where, '*', $page, $size);
|
|
|
return backarr(1, "查询成功", $list);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 修改投递状态 根据投递的id
|
|
|
+ * 20220127
|
|
|
+ * wj
|
|
|
+ * */
|
|
|
+ public function updatesendstatusbyid($arr)
|
|
|
+ {
|
|
|
+ $result = $this->checkparam(__FUNCTION__, $arr);
|
|
|
+ if (1 != $result['status']) {
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+ $sendid = $arr['sendid'];
|
|
|
+ $status = $arr['status'];
|
|
|
+ $m_s = new sendrecordmodel();
|
|
|
+ $info = $m_s->getinfobyid($sendid);
|
|
|
+ if (empty($info)) {
|
|
|
+ return backarr(0, "无数据");
|
|
|
+ }
|
|
|
+ $row = $m_s->updatestatusbyid($info['id'], $status);
|
|
|
+ return backarr(1, "修改成功", ['id' => $info['id']]);
|
|
|
+ }
|
|
|
+
|
|
|
}
|