|
@@ -46,7 +46,7 @@ public class WorkSpotController {
|
|
|
@ApiOperation(value = "获取作业点分页列表", notes = "必传参数:orgId")
|
|
@ApiOperation(value = "获取作业点分页列表", notes = "必传参数:orgId")
|
|
|
@PostMapping("/page_list")
|
|
@PostMapping("/page_list")
|
|
|
public Result list(@RequestBody PageParam<WorkSpot> pageParam) {
|
|
public Result list(@RequestBody PageParam<WorkSpot> pageParam) {
|
|
|
- log.info("获取运力部门管理分页列表,调用/tms/work_spot/page_list,参数:{}", JSON.toJSONString(pageParam));
|
|
|
|
|
|
|
+ log.info("获取作业点分页列表,调用/tms/work_spot/page_list,参数:{}", JSON.toJSONString(pageParam));
|
|
|
if (pageParam == null || pageParam.getParam() == null || pageParam.getParam().getOrgId() == null) {
|
|
if (pageParam == null || pageParam.getParam() == null || pageParam.getParam().getOrgId() == null) {
|
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
|
}
|
|
}
|
|
@@ -101,7 +101,7 @@ public class WorkSpotController {
|
|
|
return new Result<>(workSpotService.save(param));
|
|
return new Result<>(workSpotService.save(param));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "删除作业点", notes = "根据id删除作业点,参数:id")
|
|
|
|
|
|
|
+ @ApiOperation(value = "删除作业点", notes = "根据id删除作业点,参数:spotId")
|
|
|
@PostMapping("/delete")
|
|
@PostMapping("/delete")
|
|
|
public Result delete(@RequestBody WorkSpot param) {
|
|
public Result delete(@RequestBody WorkSpot param) {
|
|
|
log.info("删除作业点,调用/tms/work_spot/delete,参数:{}", JSON.toJSONString(param));
|
|
log.info("删除作业点,调用/tms/work_spot/delete,参数:{}", JSON.toJSONString(param));
|
|
@@ -111,7 +111,7 @@ public class WorkSpotController {
|
|
|
return new Result<>(workSpotService.removeById(param));
|
|
return new Result<>(workSpotService.removeById(param));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation(value = "根据id获取作业点详情", notes = "必传参数:id")
|
|
|
|
|
|
|
+ @ApiOperation(value = "根据id获取作业点详情", notes = "必传参数:spotId")
|
|
|
@PostMapping("/get_one")
|
|
@PostMapping("/get_one")
|
|
|
public Result getOne(@RequestBody WorkSpot param) {
|
|
public Result getOne(@RequestBody WorkSpot param) {
|
|
|
log.info("根据id获取作业点详情,调用/tms/work_spot/get_one,参数:{}", JSON.toJSONString(param));
|
|
log.info("根据id获取作业点详情,调用/tms/work_spot/get_one,参数:{}", JSON.toJSONString(param));
|