|
|
@@ -814,6 +814,7 @@ int dev_search_power_info(sqlite3 *db,
|
|
|
/// @return
|
|
|
int dev_insert_power_manage_info(sqlite3 *db,int product_id,int product_ch_id,GlobalPowerManger* _globalPowerChnManger)
|
|
|
{
|
|
|
+#if 0
|
|
|
int res ;
|
|
|
char select_sql[512] = {0};
|
|
|
char *errorMsg = NULL;
|
|
|
@@ -858,6 +859,10 @@ int dev_insert_power_manage_info(sqlite3 *db,int product_id,int product_ch_id,Gl
|
|
|
if(res != SQLITE_OK)
|
|
|
return -1 ;
|
|
|
sqlite3_free_table(pResult);
|
|
|
+#else
|
|
|
+ return paras_power_set(product_ch_id, _globalPowerChnManger);
|
|
|
+#endif
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -869,6 +874,7 @@ int dev_insert_power_manage_info(sqlite3 *db,int product_id,int product_ch_id,Gl
|
|
|
/// @return
|
|
|
int dev_get_power_manage_info(sqlite3 *db,int product_id,int product_addr,int product_ch_id,GlobalPowerManger* _globalPowerChnManger)
|
|
|
{
|
|
|
+#if 0
|
|
|
int res = 0 ;
|
|
|
int rowIndex = 1 ;
|
|
|
char *errorMsg = NULL;
|
|
|
@@ -947,6 +953,10 @@ int dev_get_power_manage_info(sqlite3 *db,int product_id,int product_addr,int pr
|
|
|
//获取板TYPE
|
|
|
_globalPowerChnManger->product_ch_addr = atoi(pResult[rowIndex*ncolumn+28]);
|
|
|
sqlite3_free_table(pResult);
|
|
|
+#else
|
|
|
+ return paras_power_get(product_addr, product_ch_id, _globalPowerChnManger);
|
|
|
+#endif
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|