|
@@ -3336,16 +3336,11 @@ int dev_get_power_ds(sqlite3 *db,GlobalPowerManger* _powerAll,char* dateSelect)
|
|
|
list_for_each_entry(_globalPowerMangerTemp,&_powerAll->list, list)
|
|
list_for_each_entry(_globalPowerMangerTemp,&_powerAll->list, list)
|
|
|
{
|
|
{
|
|
|
if (_globalPowerMangerTemp->product_ch_id==nProduct_chn)
|
|
if (_globalPowerMangerTemp->product_ch_id==nProduct_chn)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ list_add_tail(&new_data->list, &_globalPowerMangerTemp->list_DS);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- if (!_globalPowerMangerTemp)
|
|
|
|
|
- {
|
|
|
|
|
- continue;
|
|
|
|
|
- }
|
|
|
|
|
- list_add_tail(&new_data->list, &_globalPowerMangerTemp->list_DS);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
sqlite3_free_table(pResult);
|
|
sqlite3_free_table(pResult);
|