Commit 6e7dbdd5 authored by 赵啸非's avatar 赵啸非

修复窗口业务更新后缓存未更新问题

parent 2856bb21
......@@ -26,10 +26,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.*;
import static com.mortals.framework.ap.SysConstains.MESSAGE_INFO;
import static com.mortals.framework.ap.SysConstains.PAGEINFO_KEY;
......@@ -89,7 +86,10 @@ public class WindowController extends BaseCRUDJsonBodyMappingController<WindowSe
try {
this.service.addBusinessToWindow(businessIds, windowId, getContext());
//更新完窗口业务,删除缓存列表
cacheService.del(KEY_SEARCH_HALL_BUSINESS_CACHE);
Set<String> scanSet = cacheService.scan(KEY_SEARCH_HALL_BUSINESS_CACHE);
for (String delKey : scanSet) {
cacheService.del(delKey);
}
jsonObject.put(KEY_RESULT_DATA, model);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
jsonObject.put(KEY_RESULT_MSG, "添加业务到窗口成功!");
......
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