update 小组团第任务-其他任务可重复创建
This commit is contained in:
parent
6ee37ae389
commit
96ce4310e4
@ -47,11 +47,15 @@ class TaskTemplateLogic extends BaseLogic
|
|||||||
try {
|
try {
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
|
|
||||||
$find=TaskTemplate::where('task_scheduling', $params['task_scheduling'])->where('company_id',$params['company_id'])->where('type',$params['type'])->field('id,types,type')->find();
|
// 其他任务可重复创建
|
||||||
if($find&&$params['type']==$find['type']){
|
if ($params['type'] != 34) {
|
||||||
self::setError('已经有同一种任务类型了');
|
$find=TaskTemplate::where('task_scheduling', $params['task_scheduling'])->where('company_id',$params['company_id'])->where('type',$params['type'])->field('id,types,type')->find();
|
||||||
return false;
|
if($find&&$params['type']==$find['type']){
|
||||||
|
self::setError('已经有同一种任务类型了');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($params['type']==33){
|
if($params['type']==33){
|
||||||
$count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count();
|
$count=UserInformationg::where('company_id',$params['company_id'])->where('status',1)->count();
|
||||||
if($count<300){
|
if($count<300){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user