|
@@ -2,6 +2,8 @@ package com.bizmatics.mhfire.controller.web;
|
|
|
|
|
|
import com.bizmatics.mhfire.model.Alert;
|
|
|
import com.bizmatics.mhfire.model.FireSite;
|
|
|
+import com.bizmatics.mhfire.model.WaterAj;
|
|
|
+import com.bizmatics.mhfire.service.WaterAjService;
|
|
|
import com.bizmatics.mhfire.service.api.AlertAndSiteApi;
|
|
|
import com.bizmatics.mhfire.service.job.AlertJob;
|
|
|
import com.bizmatics.mhfire.service.job.FireSiteJob;
|
|
@@ -11,6 +13,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -26,6 +29,8 @@ public class TestController {
|
|
|
|
|
|
@Autowired
|
|
|
private FireSiteJob fireSiteJob;
|
|
|
+ @Autowired
|
|
|
+ private WaterAjService waterAjService;
|
|
|
|
|
|
@GetMapping("login")
|
|
|
public String login(){
|
|
@@ -61,4 +66,21 @@ public class TestController {
|
|
|
fireSiteJob.execute();
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("waterAjTest")
|
|
|
+ public void waterAjTest(){
|
|
|
+ WaterAj waterAj = new WaterAj();
|
|
|
+ waterAj.setCreateTime(new Date());
|
|
|
+ waterAj.setAjType("消防案件");
|
|
|
+ waterAj.setStreet("闵行街道");
|
|
|
+ waterAj.setAddress("所属街道");
|
|
|
+ waterAj.setGrid("网格通道");
|
|
|
+ waterAj.setDescribe("这个就是描述了");
|
|
|
+ waterAj.setDutyGroup("上海永天");
|
|
|
+ waterAj.setAjFlag(0);
|
|
|
+ waterAj.setEndTime(new Date());
|
|
|
+ waterAj.setEnclosure("meid");
|
|
|
+ waterAj.setImage("图片");
|
|
|
+ waterAjService.save(waterAj);
|
|
|
+ }
|
|
|
+
|
|
|
}
|