|
@@ -4932,7 +4932,7 @@ char* service_ds_all_ack_to_json(char* pDate,char* strName,char* strchID,GlobalP
|
|
|
_powerDsManageTemp=NULL;
|
|
_powerDsManageTemp=NULL;
|
|
|
list_for_each_entry(_powerDsManageTemp, &_globalPowerMangerTemp->list_DS,list)
|
|
list_for_each_entry(_powerDsManageTemp, &_globalPowerMangerTemp->list_DS,list)
|
|
|
{
|
|
{
|
|
|
- if (!(pDate == NULL || *pDate == '\0'))
|
|
|
|
|
|
|
+ if (!(pDate == NULL || *pDate == '\0' || strcmp(pDate, "-1-1-1") == 0))
|
|
|
{
|
|
{
|
|
|
if (strcmp(_powerDsManageTemp->ds_date, pDate) != 0)
|
|
if (strcmp(_powerDsManageTemp->ds_date, pDate) != 0)
|
|
|
{
|
|
{
|
|
@@ -5604,6 +5604,7 @@ cJSON* json_to_service_manage(const char* str,_ServiceManageRequestInfo* _servic
|
|
|
cJSON* cjson_ds_dateE = cJSON_GetObjectItem(cjson,"endDate");
|
|
cJSON* cjson_ds_dateE = cJSON_GetObjectItem(cjson,"endDate");
|
|
|
cJSON* cjson_ds_time = cJSON_GetObjectItem(cjson,"channelTime");
|
|
cJSON* cjson_ds_time = cJSON_GetObjectItem(cjson,"channelTime");
|
|
|
cJSON* cjson_ds_sts = cJSON_GetObjectItem(cjson,"setStatus");
|
|
cJSON* cjson_ds_sts = cJSON_GetObjectItem(cjson,"setStatus");
|
|
|
|
|
+
|
|
|
if(cjson_ds_ch_name!=NULL)
|
|
if(cjson_ds_ch_name!=NULL)
|
|
|
_serviceManageRequestInfo->_ds_info.productChName = cjson_ds_ch_name->valuestring ;
|
|
_serviceManageRequestInfo->_ds_info.productChName = cjson_ds_ch_name->valuestring ;
|
|
|
if(cjson_ds_ch_id!=NULL)
|
|
if(cjson_ds_ch_id!=NULL)
|
|
@@ -5622,7 +5623,7 @@ cJSON* json_to_service_manage(const char* str,_ServiceManageRequestInfo* _servic
|
|
|
if (cjson_ds_time != NULL)
|
|
if (cjson_ds_time != NULL)
|
|
|
_serviceManageRequestInfo->_ds_info.channelTime = cjson_ds_time->valuestring;
|
|
_serviceManageRequestInfo->_ds_info.channelTime = cjson_ds_time->valuestring;
|
|
|
if (cjson_ds_sts != NULL)
|
|
if (cjson_ds_sts != NULL)
|
|
|
- _serviceManageRequestInfo->_ds_info.setStatus = cjson_ds_sts->valuestring ;
|
|
|
|
|
|
|
+ _serviceManageRequestInfo->_ds_info.setStatus = cjson_ds_sts->valuestring;
|
|
|
}
|
|
}
|
|
|
else if(strcmp(_serviceManageRequestInfo->type,"deleteDs")==0)
|
|
else if(strcmp(_serviceManageRequestInfo->type,"deleteDs")==0)
|
|
|
{
|
|
{
|