|
|
@@ -98,11 +98,11 @@ class ServeProcess extends \common\components\ActiveRecord
|
|
|
'TASK_TYPE' => 'serve',
|
|
|
'TASK_DESCRIBE' => '统计业务系统数据信息',
|
|
|
'START_AT' => $time,
|
|
|
- 'CALC_USER_TOTAL' => $userCount,
|
|
|
- 'CALC_PERF_TOTAL' => $perfSum,
|
|
|
- 'CALC_USERINFO_TOTAL' => $infoCount,
|
|
|
- 'CALC_NETWORK_TOTAL' => $networkConut,
|
|
|
- 'CALC_RELATION_TOTAL' => $relationCount
|
|
|
+ 'CALC_USER_TOTAL' => $userCount > 0 ? $userCount : 0,
|
|
|
+ 'CALC_PERF_TOTAL' => $perfSum > 0 ? $perfSum : 0,
|
|
|
+ 'CALC_USERINFO_TOTAL' => $infoCount > 0 ? $infoCount : 0,
|
|
|
+ 'CALC_NETWORK_TOTAL' => $networkConut > 0 ? $networkConut : 0,
|
|
|
+ 'CALC_RELATION_TOTAL' => $relationCount > 0 ? $relationCount :0
|
|
|
];
|
|
|
|
|
|
ServeProcess::batchInsert($logData);
|