风险预警提前处置
This commit is contained in:
parent
77e2b17c85
commit
e75fe276f1
|
|
@ -4,7 +4,9 @@ import com.github.pagehelper.PageHelper;
|
|||
import com.github.pagehelper.PageInfo;
|
||||
import com.securityControl.common.core.web.domain.AjaxResult;
|
||||
import com.securityControl.common.log.annotation.Log;
|
||||
import com.securityControl.common.log.annotation.SysLog;
|
||||
import com.securityControl.common.log.enums.BusinessType;
|
||||
import com.securityControl.common.log.enums.OperaType;
|
||||
import com.securityControl.common.log.enums.OperationType;
|
||||
import com.sercurityControl.proteam.dutyTask.domain.BadWeatherEntity;
|
||||
import com.sercurityControl.proteam.dutyTask.service.BadWeatherService;
|
||||
|
|
@ -48,7 +50,7 @@ public class BadWeatherController extends BaseController {
|
|||
* @Param limit
|
||||
*/
|
||||
@PostMapping(value = "getList")
|
||||
@Log(title = "纠察处罚管理", menu = "值班任务->纠察处罚管理", businessType = BusinessType.QUERY, details = "纠察处罚管理列表")
|
||||
@SysLog(title = "恶劣天气通知预警列表", model = "值班任务->恶劣天气通知预警", operaType = OperaType.QUERY, details = "列表查询",logType = 1)
|
||||
public Map<String, Object> getList(BadWeatherEntity bean) {
|
||||
PageHelper.startPage(Integer.parseInt(bean.getPage()), Integer.parseInt(bean.getLimit()));
|
||||
Map<String, Object> map = new HashMap<String, Object>(6);
|
||||
|
|
@ -81,7 +83,7 @@ public class BadWeatherController extends BaseController {
|
|||
*/
|
||||
@PostMapping("delDataById")
|
||||
@ResponseBody
|
||||
@Log(title = "远程人脸抽查", menu = "值班任务->远程人脸抽查", businessType = BusinessType.DELETE, details = "删除远程人脸抽查", grade = OperationType.DELETE_BUSINESS)
|
||||
@SysLog(title = "恶劣天气通知预警删除", model = "值班任务->恶劣天气通知预警", operaType = OperaType.DELETE, details = "删除",logType = 1)
|
||||
public AjaxResult delRemoteFaceById(BadWeatherEntity bean) {
|
||||
try {
|
||||
service.delRemoteFaceById(bean.getId());
|
||||
|
|
@ -101,7 +103,7 @@ public class BadWeatherController extends BaseController {
|
|||
*/
|
||||
@PostMapping("updateStatus")
|
||||
@ResponseBody
|
||||
@Log(title = "恶劣天气通知预警", menu = "值班任务->恶劣天气通知预警", businessType = BusinessType.DELETE, details = "下发通知", grade = OperationType.DELETE_BUSINESS)
|
||||
@SysLog(title = "恶劣天气通知预警通知下发", model = "值班任务->恶劣天气通知预警", operaType = OperaType.UPDATE, details = "通知下发",logType = 1)
|
||||
public AjaxResult updateStatus(BadWeatherEntity bean) {
|
||||
try {
|
||||
service.updateStatus(bean.getId());
|
||||
|
|
@ -121,7 +123,7 @@ public class BadWeatherController extends BaseController {
|
|||
* @Param params
|
||||
*/
|
||||
@PostMapping(value = "addData")
|
||||
@Log(title = "远程人脸抽查", menu = "值班任务->远程人脸抽查", businessType = BusinessType.QUERY, details = "新增远程人脸抽查", grade = OperationType.ADD_BUSINESS)
|
||||
@SysLog(title = "恶劣天气通知预警通知新增", model = "值班任务->恶劣天气通知预警", operaType = OperaType.INSERT, details = "新增",logType = 1)
|
||||
public AjaxResult addData(BadWeatherEntity bean) {
|
||||
try {
|
||||
service.addRemoteFace(bean);
|
||||
|
|
@ -132,4 +134,19 @@ public class BadWeatherController extends BaseController {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取恶劣天气通知--今日
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("getBadWeatherData")
|
||||
public AjaxResult getBadWeatherData(String orgId){
|
||||
try{
|
||||
String content= service.getBadWeatherData();
|
||||
return AjaxResult.success(content);
|
||||
}catch (Exception e){
|
||||
log.error(e.toString(), e);
|
||||
}
|
||||
return AjaxResult.success(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue