This commit is contained in:
mkm 2023-08-18 21:13:51 +08:00
parent 42e20bc12f
commit 9611b15b16
2 changed files with 25 additions and 1 deletions

View File

@ -58,6 +58,30 @@ class TaskTemplateLogic extends BaseLogic
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($moeny+$params['money_two']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($money_two+$params['money_two']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($money_three+$params['money_two']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($moeny+$params['money_three']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($money_two+$params['money_three']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
if($money_three+$params['money_three']>$SchedulingMoney){
self::setError('任务模板合计金额不能大于任务调度金额');
return false;
}
TaskTemplate::create([
'title' => $params['title'],
'admin_id' => $params['admin_id'],

@ -1 +1 @@
Subproject commit 9acc82cd23d807280ddd29df2117e7890094d049
Subproject commit 1294ea49ff9ecc4532821f8798304816cbf8dd74