Browse Source

fix: 去除缓存机制

master
pengwei 6 months ago
parent
commit
3085715137
  1. 2
      src/main/java/com/biutag/supervision/controller/subdatav/SubOneCaseVerifController.java
  2. 4
      src/main/java/com/biutag/supervision/controller/subdatav/SubOneGlobalController.java
  3. 2
      src/main/java/com/biutag/supervision/controller/subdatav/SubOneMailViewController.java

2
src/main/java/com/biutag/supervision/controller/subdatav/SubOneCaseVerifController.java

@ -115,7 +115,7 @@ public class SubOneCaseVerifController {
*/
@Operation(summary = "地图Icon数据")
@GetMapping("/getSubOneCaseVerificationMap")
@Cacheable(cacheNames = "Supervision:Screen:SubOneCaseVerificationMap", key = "#departId+'_'+#beginTime.getTime() + '_' +#endTime.getTime()")
// @Cacheable(cacheNames = "Supervision:Screen:SubOneCaseVerificationMap", key = "#departId+'_'+#beginTime.getTime() + '_' +#endTime.getTime()")
public Result<JSONObject> getSubOneCaseVerificationMap(@RequestParam Integer departId,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {

4
src/main/java/com/biutag/supervision/controller/subdatav/SubOneGlobalController.java

@ -47,7 +47,7 @@ public class SubOneGlobalController {
*/
@Operation(summary = "获取二级大屏地图JSON")
@GetMapping("/getSubOneStreetMap")
@Cacheable(cacheNames = "subOneStreetMap", key = "'p_'+ #departId")
// @Cacheable(cacheNames = "subOneStreetMap", key = "'p_'+ #departId")
public Result<JSONObject> getSubOneStreetMap(@RequestParam Integer departId) {
JSONObject res = countyStreetDeptService.getSubOneStreetMap(departId);
return Result.success(res);
@ -132,7 +132,7 @@ public class SubOneGlobalController {
*/
@Operation(summary = "首页大屏地图数据")
@GetMapping("/getSubOneGlobalMap")
@Cacheable(cacheNames = "Supervision:Screen:SubOneGlobalMap", key = "#departId+'_'+#beginTime.getTime()+'_'+#endTime.getTime()")
// @Cacheable(cacheNames = "Supervision:Screen:SubOneGlobalMap", key = "#departId+'_'+#beginTime.getTime()+'_'+#endTime.getTime()")
public Result<JSONObject> getSubOneMap(@RequestParam Integer departId,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {

2
src/main/java/com/biutag/supervision/controller/subdatav/SubOneMailViewController.java

@ -113,7 +113,7 @@ public class SubOneMailViewController {
*/
@Operation(summary = "信访数据中央地图小图标数据")
@GetMapping("/getSubOneMailMapIcon")
@Cacheable(cacheNames = "Supervision:Screen:SubOneMailMap", key = "#departId+'_'+#beginTime.getTime() + '_' +#endTime.getTime()")
// @Cacheable(cacheNames = "Supervision:Screen:SubOneMailMap", key = "#departId+'_'+#beginTime.getTime() + '_' +#endTime.getTime()")
public Result<JSONObject> getSubOneMailMapIcon(@RequestParam Integer departId,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {

Loading…
Cancel
Save