|
|
|
|
@ -7,6 +7,7 @@ import io.swagger.annotations.*; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.cache.DeptCache; |
|
|
|
|
import org.springblade.common.cache.DictBizCache; |
|
|
|
|
import org.springblade.common.constant.BusinessConstant; |
|
|
|
|
import org.springblade.common.constant.CommonConstant; |
|
|
|
|
import org.springblade.common.enums.ApmRecordStatusEnum; |
|
|
|
|
@ -207,7 +208,10 @@ public class ApmRecordController extends BladeController { |
|
|
|
|
String checkMsg = recordService.checkApmRecordSave(apmRecordList); |
|
|
|
|
if (Func.isBlank(checkMsg)) { |
|
|
|
|
recordService.saveBatch(apmRecordList); |
|
|
|
|
return R.status(true); |
|
|
|
|
int blacklistOutdate = DictBizCache.getDictValueWithOffset(BusinessConstant.DICT_KEY_BLACKLIST_OUTDATE); |
|
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
|
result.put("blacklistOutDate", blacklistOutdate); |
|
|
|
|
return R.data(result); |
|
|
|
|
} |
|
|
|
|
return R.fail(checkMsg); |
|
|
|
|
} |
|
|
|
|
|