作者 lyh

ggx

... ... @@ -74,8 +74,14 @@ class ProjectLogic extends BaseLogic
* @time :2023/8/30 11:57
*/
public function projectSave(){
DB::beginTransaction();
try {
if($this->param['type'] == Project::TYPE_SEVEN){
//错误单直接返回,单独处理
$this->setTypeStatusEdit($this->param);
}else{
//初始化项目
$this->createProjectData($this->param);
//保存项目信息
$this->saveProject($this->param);
... ... @@ -87,6 +93,7 @@ class ProjectLogic extends BaseLogic
$this->saveProjectDeployOptimize($this->param['deploy_optimize']);
//保存售后信息
$this->saveProjectAfter($this->param['project_after']);
}
DB::commit();
}catch (\Exception $e){
DB::rollBack();
... ... @@ -242,6 +249,18 @@ class ProjectLogic extends BaseLogic
return $this->success();
}
/**
* @remark :根据类型状态设置
* @name :setTypeStatusEdit
* @author :lyh
* @method :post
* @time :2023/9/12 11:20
*/
public function setTypeStatusEdit($param){
//TODO::删除项目并添加到续费单
return true;
}
/**
* @remark :初始化数据库
... ... @@ -410,7 +429,7 @@ class ProjectLogic extends BaseLogic
}
/**
* @remark :
* @remark :删除
* @name :projectDel
* @author :lyh
* @method :post
... ...
... ... @@ -27,6 +27,7 @@ class Project extends Base
const TYPE_FIVE = 5;//未续费网站
const TYPE_SIX = 6;//特殊推广项目
const TYPE_SEVEN = 7;//错误单
const MYSQL_ID = 2;//默认数据库id
/**
* 星级客户
... ...