|
|
@@ -48,7 +48,7 @@ class DischargeTaskService
|
|
|
unset($param['owner'],$param['income_at']);
|
|
|
if ($param['id']) unset($param['id']);
|
|
|
if ($dischargeTask->status >= 1) return ['success' => false, 'message' => '当前任务状态不可修改'];
|
|
|
- if (empty($param['expenditure_total_cost'])) $param['expenditure_total_cost'] = $param['expenditure_unit_price'] * $param['expenditure_amount'];
|
|
|
+ $param['expenditure_total_cost'] = $param['expenditure_unit_price'] * $param['expenditure_amount'];
|
|
|
if (empty($param['expenditure_at'])) $param['expenditure_at'] = now();
|
|
|
if (empty($param['status'])) $param['status'] = 1;
|
|
|
$bool = $dischargeTask->update($param);
|