diff --git a/app/common/logic/task_template/TaskTemplateLogic.php b/app/common/logic/task_template/TaskTemplateLogic.php index 50c532f9b..3b23a7b33 100644 --- a/app/common/logic/task_template/TaskTemplateLogic.php +++ b/app/common/logic/task_template/TaskTemplateLogic.php @@ -57,13 +57,13 @@ class TaskTemplateLogic extends BaseLogic } } - if($params['type']==33){ - $count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count(); - if($count<300){ - self::setError('用户档案数量300不足,无法创建任务模板'); - return false; - } - } +// if($params['type']==33){ +// $count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count(); +// if($count<300){ +// self::setError('用户档案数量300不足,无法创建任务模板'); +// return false; +// } +// } $moeny=TaskTemplate::where('company_id', $params['company_id'])->sum('money'); if($moeny+$params['money']>200){ @@ -148,13 +148,13 @@ class TaskTemplateLogic extends BaseLogic self::setError('已经有同一种任务类型了'); return false; } - if($params['type']==33){ - $count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count(); - if($count<300){ - self::setError('用户档案数量300不足,无法创建任务模板'); - return false; - } - } +// if($params['type']==33){ +// $count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count(); +// if($count<300){ +// self::setError('用户档案数量300不足,无法创建任务模板'); +// return false; +// } +// } $moeny=TaskTemplate::where('company_id', $params['company_id'])->sum('money'); if($moeny+$params['money']-$find['money']>$taskScheduleAmount){ self::setError('任务模板一阶段合计金额不能大于任务调度金额');