commit
eef2467a61
|
@ -77,19 +77,10 @@ public class MiddleController {
|
|||
@Operation(summary = "根据围栏组的id查询绑定的围栏的中间表",description = "根据围栏组的id查询绑定的围栏的中间表")
|
||||
public Result BoundFenceGroup(@RequestParam("groupId") Integer groupId){
|
||||
carFenceServiceMybaits.BoundFenceGroup(groupId);
|
||||
carFenceServiceMybaits.list(groupId);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 根据围栏组和车辆的id添加中间表
|
||||
// */
|
||||
// @PostMapping("/addFenceGroupAddCarMiddle")
|
||||
// @Operation(summary = "根据围栏组和车辆的id添加中间表",description = "根据围栏组和车辆的id添加中间表")
|
||||
// public Result addFenceGroupAddCarMiddle(@RequestParam("carId") Integer carId , @RequestBody List<FenceGroup> fenceGroups ){
|
||||
// boolean b = carFenceServiceMybaits.addFenceGroupAddCarMiddle(carId,fenceGroups);
|
||||
// return Result.success();
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 获取绑定的围栏组
|
||||
|
|
|
@ -46,12 +46,8 @@ public interface CarFenceServiceMybaits extends IService<CarMiddle> {
|
|||
* 根据围栏组的id查询绑定的围栏的中间表
|
||||
*/
|
||||
List<CarFence> BoundFenceGroup(Integer groupId);
|
||||
void list(Integer groupId);
|
||||
|
||||
// /**
|
||||
// * 根据围栏组和车辆的id添加中间表
|
||||
// */
|
||||
// boolean addFenceGroupAddCarMiddle(Integer id, List<FenceGroup> fenceGroups);
|
||||
|
||||
|
||||
/**
|
||||
* 获取绑定的围栏组
|
||||
|
|
|
@ -96,34 +96,9 @@ public class CarFenceServiceMybaitsImpl extends ServiceImpl<CarFenceServiceMybai
|
|||
return carFences;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void list(Integer groupId) {
|
||||
|
||||
CarMiddle carMiddle = carFenceServiceMybaitsMapper.selectById(groupId);
|
||||
|
||||
Integer carFenceId = carMiddle.getCarFenceId();
|
||||
|
||||
System.out.println(carFenceId);
|
||||
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 根据围栏组和车辆的id添加中间表
|
||||
// */
|
||||
// @Override
|
||||
// public boolean addFenceGroupAddCarMiddle(Integer id, List<FenceGroup> fenceGroups) {
|
||||
// //遍历集合
|
||||
// List<CarAndGroupMiddle> list = fenceGroups.stream().map(fenceGroup -> {
|
||||
// CarAndGroupMiddle carAndGroupMiddle = new CarAndGroupMiddle();
|
||||
// //获取围栏组的id
|
||||
// carAndGroupMiddle.setGroupId(fenceGroup.getGroupId());
|
||||
// carAndGroupMiddle.setCarId(id);
|
||||
// return carAndGroupMiddle;
|
||||
// }).toList();
|
||||
//
|
||||
//
|
||||
// return true;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取绑定的围栏组
|
||||
|
|
Loading…
Reference in New Issue