|
@@ -35,6 +35,7 @@ import com.sooka.sponest.message.api.RemoteMonitorService;
|
|
|
import com.sooka.sponest.monitor.api.domain.CenterdataTAidevicedept;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -298,11 +299,6 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 删除事件目录
|
|
|
- */
|
|
|
- @RequiresPermissions("eventcatalogue:eventcatalogue:remove")
|
|
|
- @Log(title = "事件目录", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{eventCode}")
|
|
|
public AjaxResult remove(@PathVariable String eventCode) {
|
|
|
int result = centereventTEventcatalogueService.deleteCentereventTEventcatalogueByCode(eventCode);
|
|
@@ -310,6 +306,19 @@ public class CentereventTEventcatalogueController extends BaseController {
|
|
|
return toAjax(result);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/upatach")
|
|
|
+ public AjaxResult upatach() {
|
|
|
+ Map<String, String> paramMap = SpringUtils.getBean(RemoteConfigService.class).remotegetConfigMap(Arrays.asList(FILE_PREFIX_LOCAL, FILE_PREFIX_HIK1, FILE_PREFIX_HIK2, FILE_PREFIX_DH1, FILE_PREFIX_DH2)).getData();
|
|
|
+ paramMap.put("token", RemoteApiUtil.getInstance().getToken());// 大华token
|
|
|
+ List<Map<String, Object>> list = centereventTEventcatalogueService.selectFailUpattah();
|
|
|
+ for (Map map:list) {
|
|
|
+ paramMap.put("czlx", "AI");
|
|
|
+ paramMap.put("busId", MapUtils.getString(map,"busId"));
|
|
|
+ remoteDataService.updateAttach(paramMap);
|
|
|
+ }
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 手机端调用发送短信
|
|
|
*
|