|
@@ -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
|
}
|