Commit 720bf242 by 陶光胜

回写修改

parent 4e389b89
...@@ -120,6 +120,16 @@ public class StoreController { ...@@ -120,6 +120,16 @@ public class StoreController {
storeWidgetDTO.setAuthSearchParam(storeWidgetQO.getAuthSearchParam()); storeWidgetDTO.setAuthSearchParam(storeWidgetQO.getAuthSearchParam());
storeWidgetDTO.setSearchParam(storeWidgetQO.getSearchParam()); storeWidgetDTO.setSearchParam(storeWidgetQO.getSearchParam());
storeWidgetDTO.setStoreWidgetId(storeWidgetQO.getStoreWidgetId()); storeWidgetDTO.setStoreWidgetId(storeWidgetQO.getStoreWidgetId());
if(storeWidgetQO.getStoreWidgetId()!= null){
StoreWidgetDTO old = this.storeWidgetApiService.getStoreWidget(storeWidgetQO.getStoreWidgetId()).getResult();
if(old != null){
if(StringUtils.isNotBlank(storeWidgetQO.getAuthSearchParam()) && !storeWidgetQO.getAuthSearchParam().equals(old.getAuthSearchParam())){
storeWidgetDTO.setStoreWidgetId(null);
} else if(StringUtils.isBlank(storeWidgetQO.getAuthSearchParam()) && StringUtils.isNotBlank(storeWidgetQO.getAuthSearchParam())){
storeWidgetDTO.setStoreWidgetId(null);
}
}
}
storeWidgetDTO.setWriteBackParam(storeWidgetQO.getWriteBackParam()); storeWidgetDTO.setWriteBackParam(storeWidgetQO.getWriteBackParam());
storeWidgetDTO.setAuthMode(storeWidgetQO.getAuthMode()); storeWidgetDTO.setAuthMode(storeWidgetQO.getAuthMode());
ServiceResponse<Integer> storeWidgetResponse = this.storeWidgetApiService.saveAuthStoreWidget(storeWidgetDTO); ServiceResponse<Integer> storeWidgetResponse = this.storeWidgetApiService.saveAuthStoreWidget(storeWidgetDTO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment