深基坑

This commit is contained in:
guo 2023-09-19 18:45:10 +08:00
parent c2a744f57c
commit 9971fb096b
7 changed files with 0 additions and 395 deletions

View File

@ -73,17 +73,5 @@ public class DeepExcavationCurrentDataController {
return Result.success(deepExcavationCurrentDataService.selectDeepExcavationCurrentDataPage(map));
}
/**
* 添加
*
* @param deepExcavationCurrentData
* @return
*/
@ApiOperation(value = "添加深基坑-监测实时数据信息", notes = "添加深基坑-监测实时数据信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result<DeepExcavationCurrentData> add(@RequestBody DeepExcavationCurrentData deepExcavationCurrentData) {
deepExcavationCurrentDataService.saveDeepExcavationCurrentData(deepExcavationCurrentData);
return Result.success(deepExcavationCurrentData);
}
}

View File

@ -67,45 +67,6 @@ public class DeepExcavationEngineeringController {
return Result.success(deepExcavationEngineeringService.selectDeepExcavationList(map));
}
/**
* 添加
*
* @param deepExcavationEngineering
* @return
*/
@ApiOperation(value = "添加深基坑-工程信息", notes = "添加深基坑-工程信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result<DeepExcavationEngineering> add(@RequestBody DeepExcavationEngineering deepExcavationEngineering) {
deepExcavationEngineeringService.saveDeepExcavationEngineering(deepExcavationEngineering);
return Result.ok();
}
/**
* 编辑
*
* @param deepExcavationEngineering
* @return
*/
@ApiOperation(value = "编辑深基坑-工程信息", notes = "编辑深基坑-工程信息", httpMethod = "POST")
@PostMapping(value = "/edit")
public Result<DeepExcavationEngineering> edit(@RequestBody DeepExcavationEngineering deepExcavationEngineering) {
return Result.success(deepExcavationEngineeringService.edit(deepExcavationEngineering));
}
/**
* 通过id删除
*
* @param
* @return
*/
@ApiOperation(value = "删除深基坑-工程信息", notes = "删除深基坑-工程信息", httpMethod = "POST")
@ApiImplicitParam(name = "id", value = "深基坑-工程ID", paramType = "query", required = true, dataType = "Integer")
@PostMapping(value = "/delete")
public Result<DeepExcavationEngineering> delete(@RequestBody Map<String, Object> map) {
deepExcavationEngineeringService.deleteDeepExcavationEngineering(MapUtils.getLong(map, "id"));
return Result.ok();
}
/**
* 通过id查询

View File

@ -74,47 +74,6 @@ public class DeepExcavationMeasurePointController {
return Result.success(deepExcavationMeasurePointService.selectDeepExcavationAllMeasurePointList(map));
}
/**
* 添加
*
* @param deepExcavationMeasurePoint
* @return
*/
@ApiOperation(value = "添加深基坑-测点信息", notes = "添加深基坑-测点信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result<DeepExcavationMeasurePoint> add(@RequestBody DeepExcavationMeasurePoint deepExcavationMeasurePoint) {
deepExcavationMeasurePointService.saveMeasurePoint(deepExcavationMeasurePoint);
return Result.ok();
}
/**
* 编辑
*
* @param deepExcavationMeasurePoint
* @return
*/
@ApiOperation(value = "编辑测点", notes = "编辑测点", httpMethod = "POST")
@PostMapping(value = "/edit")
public Result<DeepExcavationMeasurePoint> edit(@RequestBody DeepExcavationMeasurePoint deepExcavationMeasurePoint) {
deepExcavationMeasurePointService.editMeasurePoint(deepExcavationMeasurePoint);
return Result.ok();
}
/**
* 通过id删除
*
* @param
* @return
*/
@ApiOperation(value = "删除深基坑-测点信息", notes = "删除深基坑-测点信息")
@ApiImplicitParam(name = "measurePointNumber", value = "深基坑-测点编号", paramType = "query", required = true, dataType = "Integer")
@PostMapping(value = "/delete")
public Result<DeepExcavationMeasurePoint> delete(@RequestBody Map<String, Object> map) {
deepExcavationMeasurePointService.deleteByMeasurePointNumber(MapUtils.getString(map, "measurePointNumber"));
return Result.ok();
}
/**
* 通过id查询
*

View File

@ -18,128 +18,6 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Api("DeepExcavationMeasurePointThresholdController相关Api")
public class DeepExcavationMeasurePointThresholdController {
//
//
// /**
// * 分页列表查询
// *
// * @param deepExcavationMeasurePointThreshold
// * @param pageNo
// * @param pageSize
// * @param req
// * @return
// */
// @ApiOperation(value = "分页列表查询深基坑-测点警情设置信息", notes = "分页列表查询深基坑-测点警情设置信息", httpMethod = "GET")
// @GetMapping(value = "/list")
//
// public Result<IPage<DeepExcavationMeasurePointThreshold>> queryPageList(DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThreshold,
// @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
// @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
// HttpServletRequest req) {
// // TODO 问题
// Result<IPage<DeepExcavationMeasurePointThreshold>> result = new Result<IPage<DeepExcavationMeasurePointThreshold>>();
// QueryWrapper<DeepExcavationMeasurePointThreshold> queryWrapper = QueryGenerator.initQueryWrapper(deepExcavationMeasurePointThreshold, req.getParameterMap());
// Page<DeepExcavationMeasurePointThreshold> page = new Page<DeepExcavationMeasurePointThreshold>(pageNo, pageSize);
// IPage<DeepExcavationMeasurePointThreshold> pageList = deepExcavationMeasurePointThresholdService.page(page, queryWrapper);
// result.setSuccess(true);
// result.setResult(pageList);
// return null;
// }
//
// /**
// * 添加
// *
// * @param deepExcavationMeasurePointThreshold
// * @return
// */
// @ApiOperation(value = "添加深基坑-测点警情设置信息", notes = "添加深基坑-测点警情设置信息", httpMethod = "POST")
// @PostMapping(value = "/add")
// public Result<DeepExcavationMeasurePointThreshold> add(@RequestBody DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThreshold) {
// Result<DeepExcavationMeasurePointThreshold> result = new Result<DeepExcavationMeasurePointThreshold>();
// try {
// // TODO 问题
//// deepExcavationMeasurePointThresholdService.save(deepExcavationMeasurePointThreshold);
// result.success("添加成功!");
// } catch (Exception e) {
// e.printStackTrace();
// log.info(e.getMessage());
// result.error500("操作失败");
// }
// return result;
// }
//
// /**
// * 编辑
// *
// * @param deepExcavationMeasurePointThreshold
// * @return
// */
// @ApiOperation(value = "编辑深基坑-测点警情设置信息", notes = "编辑深基坑-测点警情设置信息", httpMethod = "PUT")
// @PutMapping(value = "/edit")
// public Result<DeepExcavationMeasurePointThreshold> edit(@RequestBody DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThreshold) {
//// Result<DeepExcavationMeasurePointThreshold> result = new Result<DeepExcavationMeasurePointThreshold>();
//// DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThresholdEntity = deepExcavationMeasurePointThresholdService.getById(deepExcavationMeasurePointThreshold.getId());
//// if (deepExcavationMeasurePointThresholdEntity == null) {
//// result.error500("未找到对应实体");
//// } else {
//// boolean ok = deepExcavationMeasurePointThresholdService.updateById(deepExcavationMeasurePointThreshold);
//// //TODO 返回false说明什么
//// if (ok) {
//// result.success("修改成功!");
//// }
//// }
////
//// return result;
// return null;
// }
//
// /**
// * 通过id删除
// *
// * @param id
// * @return
// */
// @ApiOperation(value = "删除深基坑-测点警情设置信息", notes = "删除深基坑-测点警情设置信息", httpMethod = "DELETE")
// @ApiImplicitParam(name = "id", value = "深基坑-测点警情设置ID", paramType = "query", required = true, dataType = "Integer")
// @DeleteMapping(value = "/delete")
// public Result<DeepExcavationMeasurePointThreshold> delete(@RequestParam(name = "id", required = true) String id) {
//// Result<DeepExcavationMeasurePointThreshold> result = new Result<DeepExcavationMeasurePointThreshold>();
//// DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThreshold = deepExcavationMeasurePointThresholdService.getById(id);
//// if (deepExcavationMeasurePointThreshold == null) {
//// result.error500("未找到对应实体");
//// } else {
//// boolean ok = deepExcavationMeasurePointThresholdService.removeById(id);
//// if (ok) {
//// result.success("删除成功!");
//// }
//// }
////
//// return result;
// return null;
// }
//
//
// /**
// * 通过id查询
// *
// * @param id
// * @return
// */
// @ApiOperation(value = "通过id查询深基坑-测点警情设置信息", notes = "通过id查询深基坑-测点警情设置信息", httpMethod = "GET")
// @ApiImplicitParam(name = "id", value = "深基坑-测点警情设置ID", paramType = "query", required = true, dataType = "Integer")
// @GetMapping(value = "/queryById")
// public Result<DeepExcavationMeasurePointThreshold> queryById(@RequestParam(name = "id", required = true) String id) {
//// Result<DeepExcavationMeasurePointThreshold> result = new Result<DeepExcavationMeasurePointThreshold>();
//// DeepExcavationMeasurePointThreshold deepExcavationMeasurePointThreshold = deepExcavationMeasurePointThresholdService.getById(id);
//// if (deepExcavationMeasurePointThreshold == null) {
//// result.error500("未找到对应实体");
//// } else {
//// result.setResult(deepExcavationMeasurePointThreshold);
//// result.setSuccess(true);
//// }
//// return result;
// return null;
// }
}

View File

@ -69,47 +69,6 @@ public class DeepExcavationPlaneFigureController {
return Result.success(list);
}
/**
* 添加
*
* @param deepExcavationPlaneFigure
* @return
*/
@ApiOperation(value = "添加深基坑-平面图配置信息", notes = "添加深基坑-平面图配置信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result<DeepExcavationPlaneFigure> add(@RequestBody DeepExcavationPlaneFigure deepExcavationPlaneFigure) {
deepExcavationPlaneFigureService.savedeepExcavationPlaneFigure(deepExcavationPlaneFigure);
return Result.ok();
}
/**
* 编辑
*
* @param deepExcavationPlaneFigure
* @return
*/
@ApiOperation(value = "编辑深基坑-平面图配置信息", notes = "编辑深基坑-平面图配置信息", httpMethod = "POST")
@PostMapping(value = "/edit")
public Result<DeepExcavationPlaneFigure> edit(@RequestBody DeepExcavationPlaneFigure deepExcavationPlaneFigure) {
deepExcavationPlaneFigureService.editdeepExcavationPlaneFigure(deepExcavationPlaneFigure);
return Result.success(deepExcavationPlaneFigure);
}
/**
* 通过id删除
*
* @param
* @return
*/
@ApiOperation(value = "删除深基坑-平面图配置信息", notes = "删除深基坑-平面图配置信息", httpMethod = "POST")
@ApiImplicitParam(name = "id", value = "深基坑-平面图配置ID", paramType = "query", required = true, dataType = "Integer")
@PostMapping(value = "/delete")
public Result<DeepExcavationPlaneFigure> delete(@RequestBody Map<String, Object> map) {
deepExcavationPlaneFigureService.deleteDeepExcavationPlaneFigure(MapUtils.getString(map, "id"));
return Result.ok();
}
/**
* 通过id查询
*

View File

@ -52,74 +52,4 @@ public class DeepExcavationPlaneFigureCoordinateController {
return Result.success(deepExcavationPlaneFigureCoordinateService.selectPlaneFigureCoordinateList(map));
}
/**
* 编辑
*
* @param
* @return
*/
@ApiOperation(value = "编辑深基坑-平面图设备坐标信息", notes = "编辑深基坑-平面图设备坐标信息", httpMethod = "POST")
@PostMapping(value = "/edit")
public Result<DeepExcavationPlaneFigureCoordinate> edit(@RequestBody DeepExcavationPlaneFigureCoordinate deepExcavationPlaneFigureCoordinate) {
deepExcavationPlaneFigureCoordinateService.editPlaneFigureCoordinate(deepExcavationPlaneFigureCoordinate);
return Result.ok();
}
@ApiOperation(value = "编辑深基坑-平面图设备坐标信息", notes = "编辑深基坑-平面图设备坐标信息", httpMethod = "POST")
@PostMapping(value = "/updateFigureCoordinate")
public Result<DeepExcavationPlaneFigureCoordinate> updateFigureCoordinate(@RequestBody List<DeepExcavationPlaneFigureCoordinate> list) {
deepExcavationPlaneFigureCoordinateService.updateFigureCoordinate(list);
return Result.ok();
}
@ApiOperation(value = "删除-通过设备和平面图ID删除深基坑-平面图设备坐标信息", notes = "删除-通过设备和平面图ID删除深基坑-平面图设备坐标信息", httpMethod = "POST")
@ApiImplicitParams({
@ApiImplicitParam(name = "planeFigureId", value = "平面图ID", paramType = "query", required = true, dataType = "String"),
@ApiImplicitParam(name = "pointId", value = "地图点位对应的设备表ID", paramType = "query", required = true, dataType = "String"),
})
@PostMapping(value = "/deletePlaneFigureCoordinate")
public Result<DeepExcavationPlaneFigureCoordinate> deleteDeepExcavationPlaneFigureCoordinate(@RequestBody Map<String, Object> map) {
deepExcavationPlaneFigureCoordinateService.deleteDeepExcavationPlaneFigureCoordinate(map);
return Result.ok();
}
/**
* 通过id删除
*
* @param
* @return
*/
@ApiOperation(value = "删除深基坑-平面图设备坐标信息", notes = "删除深基坑-平面图设备坐标信息", httpMethod = "POST")
@ApiImplicitParam(name = "id", value = "深基坑-平面图设备坐标ID", paramType = "query", required = true, dataType = "Integer")
@PostMapping(value = "/delete")
public Result<DeepExcavationPlaneFigureCoordinate> delete(@RequestBody Map<String, Object> map) {
Result<DeepExcavationPlaneFigureCoordinate> result = new Result<DeepExcavationPlaneFigureCoordinate>();
DeepExcavationPlaneFigureCoordinate deepExcavationPlaneFigureCoordinate = deepExcavationPlaneFigureCoordinateService.getById(MapUtils.getString(map, "id"));
if (deepExcavationPlaneFigureCoordinate == null) {
result.error500(MessageUtil.get("notFindErr"));
} else {
boolean ok = deepExcavationPlaneFigureCoordinateService.removeById(MapUtils.getString(map, "id"));
if (ok) {
result.successMsg(MessageUtil.get("deleteSucess"));
}
}
return result;
}
@ApiOperation(value = "添加深基坑-平面图设备坐标信息", notes = "添加深基坑-平面图设备坐标信息", httpMethod = "POST")
@PostMapping(value = "/adds")
public Result<DeepExcavationPlaneFigureCoordinate> adds(@RequestBody DeepExcavationPlaneFigureCoordinate deepExcavationPlaneFigureCoordinate) {
Result<DeepExcavationPlaneFigureCoordinate> result = new Result<DeepExcavationPlaneFigureCoordinate>();
try {
deepExcavationPlaneFigureCoordinateService.save(deepExcavationPlaneFigureCoordinate);
result.successMsg("添加成功");
} catch (Exception e) {
e.printStackTrace();
log.info(e.getMessage());
result.error500("添加失败");
}
return result;
}
}

View File

@ -44,76 +44,6 @@ public class DeepExcavationSensorTypeController {
return Result.success(list);
}
/**
* 添加
*
* @param deepExcavationSensorType
* @return
*/
@ApiOperation(value = "添加深基坑-传感器类型信息", notes = "添加深基坑-传感器类型信息", httpMethod = "POST")
@PostMapping(value = "/add")
public Result<DeepExcavationSensorType> add(@RequestBody DeepExcavationSensorType deepExcavationSensorType) {
Result<DeepExcavationSensorType> result = new Result<DeepExcavationSensorType>();
try {
deepExcavationSensorTypeService.save(deepExcavationSensorType);
result.successMsg(MessageUtil.get("addSucess"));
} catch (Exception e) {
e.printStackTrace();
log.info(e.getMessage());
result.error500(MessageUtil.get("failErr"));
}
return result;
}
/**
* 编辑
*
* @param deepExcavationSensorType
* @return
*/
@ApiOperation(value = "编辑深基坑-传感器类型信息", notes = "编辑深基坑-传感器类型信息", httpMethod = "POST")
@PostMapping(value = "/edit")
public Result<DeepExcavationSensorType> edit(@RequestBody DeepExcavationSensorType deepExcavationSensorType) {
Result<DeepExcavationSensorType> result = new Result<DeepExcavationSensorType>();
DeepExcavationSensorType deepExcavationSensorTypeEntity = deepExcavationSensorTypeService.getById(deepExcavationSensorType.getId());
if (deepExcavationSensorTypeEntity == null) {
result.error500(MessageUtil.get("notFindErr"));
} else {
boolean ok = deepExcavationSensorTypeService.updateById(deepExcavationSensorType);
//TODO 返回false说明什么
if (ok) {
result.successMsg(MessageUtil.get("editSucess"));
}
}
return result;
}
/**
* 通过id删除
*
* @param
* @return
*/
@ApiOperation(value = "删除深基坑-传感器类型信息", notes = "删除深基坑-传感器类型信息", httpMethod = "POST")
@ApiImplicitParam(name = "id", value = "深基坑-传感器类型ID", paramType = "query", required = true, dataType = "Integer")
@PostMapping(value = "/delete")
public Result<DeepExcavationSensorType> delete(@RequestBody Map<String, Object> map) {
Result<DeepExcavationSensorType> result = new Result<DeepExcavationSensorType>();
DeepExcavationSensorType deepExcavationSensorType = deepExcavationSensorTypeService.getById(MapUtils.getString(map, "id"));
if (deepExcavationSensorType == null) {
result.error500(MessageUtil.get("notFindErr"));
} else {
boolean ok = deepExcavationSensorTypeService.removeById(MapUtils.getString(map, "id"));
if (ok) {
result.successMsg(MessageUtil.get("deleteSucess"));
}
}
return result;
}
/**
* 通过id查询
*