Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -259,6 +259,9 @@ class ProjectLogic extends BaseLogic | @@ -259,6 +259,9 @@ class ProjectLogic extends BaseLogic | ||
| 259 | * @time :2023/9/12 11:20 | 259 | * @time :2023/9/12 11:20 |
| 260 | */ | 260 | */ |
| 261 | public function setTypeSevenEdit($param){ | 261 | public function setTypeSevenEdit($param){ |
| 262 | + $info = $this->model->read(['id'=>$param['id']]); | ||
| 263 | + | ||
| 264 | + if($info['delete_status'] == 0){ | ||
| 262 | //删除原始项目 | 265 | //删除原始项目 |
| 263 | $this->edit(['delete_status' => 1], ['id' => $param['id']]); | 266 | $this->edit(['delete_status' => 1], ['id' => $param['id']]); |
| 264 | 267 | ||
| @@ -281,6 +284,7 @@ class ProjectLogic extends BaseLogic | @@ -281,6 +284,7 @@ class ProjectLogic extends BaseLogic | ||
| 281 | ]; | 284 | ]; |
| 282 | $renewModel = new ProjectRenew(); | 285 | $renewModel = new ProjectRenew(); |
| 283 | $renewModel->add($data); | 286 | $renewModel->add($data); |
| 287 | + } | ||
| 284 | 288 | ||
| 285 | return $this->success(); | 289 | return $this->success(); |
| 286 | } | 290 | } |
-
请 注册 或 登录 后发表评论