Commit ec9a53b9 authored by suhuiguang's avatar suhuiguang

1.删除多余代码

parent e4af6fbc
...@@ -86,7 +86,6 @@ public class RiskModelController extends BaseController { ...@@ -86,7 +86,6 @@ public class RiskModelController extends BaseController {
* 风险模型删除 * 风险模型删除
*/ */
@ApiOperation(httpMethod = "POST", value = "风险模型删除", notes = "风险模型删除") @ApiOperation(httpMethod = "POST", value = "风险模型删除", notes = "风险模型删除")
//@Authorization(ingore = true)
@RequestMapping(value = "/riskSource/deleteRiskSource", produces = "application/json;charset=UTF-8", method = RequestMethod.POST) @RequestMapping(value = "/riskSource/deleteRiskSource", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
public CommonResponse deleteRiskSource(@ApiParam(value = "风险模型id", required = true) @RequestBody Long[] riskSourceId) { public CommonResponse deleteRiskSource(@ApiParam(value = "风险模型id", required = true) @RequestBody Long[] riskSourceId) {
try { try {
......
...@@ -541,14 +541,12 @@ public class RiskSourceController extends BaseController { ...@@ -541,14 +541,12 @@ public class RiskSourceController extends BaseController {
return CommonResponseUtil.success(riskSourceService.listEquipmentPointById(fmeaId, importantEquipId, equimentId, equipmentPointName)); return CommonResponseUtil.success(riskSourceService.listEquipmentPointById(fmeaId, importantEquipId, equimentId, equipmentPointName));
} }
// @Authorization(ingore = true)
@ApiOperation(httpMethod = "PUT", value = "上传消防设备数据", notes = "上传消防设备数据") @ApiOperation(httpMethod = "PUT", value = "上传消防设备数据", notes = "上传消防设备数据")
@RequestMapping(value = "/data/fireqeuiment", produces = "application/json;charset=UTF-8", method = RequestMethod.PUT) @RequestMapping(value = "/data/fireqeuiment", produces = "application/json;charset=UTF-8", method = RequestMethod.PUT)
public CommonResponse postFireEqumentData(@RequestBody FireEquimentDataRo deviceData) throws Exception { public CommonResponse postFireEqumentData(@RequestBody FireEquimentDataRo deviceData) throws Exception {
return CommonResponseUtil.success(riskSourceService.processFireEqumtData(deviceData)); return CommonResponseUtil.success(riskSourceService.processFireEqumtData(deviceData));
} }
// @Authorization(ingore = true)
@ApiOperation(httpMethod = "POST", value = "上传消防设备数据", notes = "上传消防设备数据") @ApiOperation(httpMethod = "POST", value = "上传消防设备数据", notes = "上传消防设备数据")
@RequestMapping(value = "/data/fireqeuiment/soe", produces = "application/json;charset=UTF-8", method = RequestMethod.POST) @RequestMapping(value = "/data/fireqeuiment/soe", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
public CommonResponse postFireEqumentData(@RequestBody AlarmParam alarm) throws Exception { public CommonResponse postFireEqumentData(@RequestBody AlarmParam alarm) throws Exception {
...@@ -557,7 +555,6 @@ public class RiskSourceController extends BaseController { ...@@ -557,7 +555,6 @@ public class RiskSourceController extends BaseController {
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
// @Authorization(ingore = true)
@ApiOperation(httpMethod = "POST", value = "上传消防设备数据", notes = "上传消防设备数据") @ApiOperation(httpMethod = "POST", value = "上传消防设备数据", notes = "上传消防设备数据")
@RequestMapping(value = "/data/fireqeuiment/all", produces = "application/json;charset=UTF-8", method = RequestMethod.POST) @RequestMapping(value = "/data/fireqeuiment/all", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
public CommonResponse postFireEqumentData(@RequestBody List<AlarmParam> deviceDatas) throws Exception { public CommonResponse postFireEqumentData(@RequestBody List<AlarmParam> deviceDatas) throws Exception {
...@@ -574,7 +571,6 @@ public class RiskSourceController extends BaseController { ...@@ -574,7 +571,6 @@ public class RiskSourceController extends BaseController {
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
//@Authorization(ingore = true)
@ApiOperation(httpMethod = "PUT", value = "上传巡检任务数据", notes = "上传巡检任务数据") @ApiOperation(httpMethod = "PUT", value = "上传巡检任务数据", notes = "上传巡检任务数据")
@RequestMapping(value = "/data/task", produces = "application/json;charset=UTF-8", method = RequestMethod.PUT) @RequestMapping(value = "/data/task", produces = "application/json;charset=UTF-8", method = RequestMethod.PUT)
public CommonResponse postTaskData(@RequestBody ProtalDataRo taskData) throws Exception { public CommonResponse postTaskData(@RequestBody ProtalDataRo taskData) throws Exception {
...@@ -582,19 +578,6 @@ public class RiskSourceController extends BaseController { ...@@ -582,19 +578,6 @@ public class RiskSourceController extends BaseController {
return CommonResponseUtil.success(riskSourceService.processTaskData(taskData)); return CommonResponseUtil.success(riskSourceService.processTaskData(taskData));
} }
// @ApiOperation(httpMethod = "POST", value = "删除风险点巡检点检查项", notes = "删除风险点巡检点检查项")
// @RequestMapping(value = "/removeByRSIdAndPId", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
// @Authorization(ingore = true)
// public CommonResponse removeByRSIdAndPId(@RequestBody List<HashMap<String, String>> list) throws Exception {
// try {
// riskSourceService.removeByRSIdAndPId(list);
// return CommonResponseUtil.success();
// } catch (Exception e) {
// log.error(e.getMessage(), e);
// return CommonResponseUtil.failure("删除失败");
// }
// }
/** /**
* 查询风险点明细 * 查询风险点明细
* *
...@@ -639,7 +622,6 @@ public class RiskSourceController extends BaseController { ...@@ -639,7 +622,6 @@ public class RiskSourceController extends BaseController {
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
//@Authorization(ingore = true)
@ApiOperation(httpMethod = "GET", value = "初始化預案水資源", notes = "初始化預案水資源") @ApiOperation(httpMethod = "GET", value = "初始化預案水資源", notes = "初始化預案水資源")
@RequestMapping(value = "/contingency/water", produces = "application/json;charset=UTF-8", method = RequestMethod.GET) @RequestMapping(value = "/contingency/water", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
public CommonResponse queryContingencyWater() { public CommonResponse queryContingencyWater() {
......
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