Commit 07d50594 by dengwei

新增计算前先清除smartBi缓存

parent aaf10b50
......@@ -6,6 +6,7 @@ import java.util.List;
import java.util.Map;
import com.keymobile.indicators.model.entity.indicators.CompareUnitCalLog;
import com.keymobile.indicators.service.SystemAuthService;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -36,6 +37,8 @@ public class DriveIndCalResultCtrl {
private DriveIndCalResultService driveIndCalResultService;
@Autowired
private CompareUnitCalLogService compUnitCalLogService;
@Autowired
private SystemAuthService systemAuthService;
@ApiOperation(value = "对标结果批量新增,修改", notes = "对标结果批量新增,修改")
@PostMapping(value = "/batchSaveOrUpdate")
......@@ -71,6 +74,8 @@ public class DriveIndCalResultCtrl {
LogManager.logInfo(Constants.LOG_INDICATOR_UNIT_CAL_API,"执行对标单元id:{},日期:{} 的计算",
compUnitDefString.toString(),compareUnitList.get(0).getDate());
}
// 2023年3月9日10:38:41 -- 新增计算前先清除smartBi缓存
systemAuthService.clearAllPools();
driveIndCalResultService.compareUnitListCal(compareUnitList,code,isTest,path);
}
......
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