|
|
@@ -13,8 +13,6 @@ import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
/**
|
|
|
* 硬件调用接口
|
|
|
*
|
|
|
@@ -51,9 +49,9 @@ public class HardwareApiController extends BaseController
|
|
|
@ApiOperation("取出挂锁时更新数据")
|
|
|
@Log(title = "取出挂锁时更新数据", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateTicketLockTake")
|
|
|
- public CommonResult<Boolean> updateTicketLockTake(@RequestBody @Parameter(name = "list", description = "修改数据类,放到body") ParamDTO list)
|
|
|
+ public CommonResult<Boolean> updateTicketLockTake(@RequestBody @Parameter(name = "list", description = "修改数据类,放到body") ParamDTO dto)
|
|
|
{
|
|
|
- return CommonResult.success(hardwareApiService.updateTicketLockTake(list));
|
|
|
+ return CommonResult.success(hardwareApiService.updateTicketLockTake(dto.getList()));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("归还挂锁时更新数据")
|
|
|
@@ -83,9 +81,9 @@ public class HardwareApiController extends BaseController
|
|
|
@ApiOperation("批量更新作业票下隔离点的上锁状况")
|
|
|
@Log(title = "批量更新作业票下隔离点的上锁状况", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateLockPointBatch")
|
|
|
- public CommonResult<Boolean> updateLockPointBatch(@RequestBody @Parameter(name = "dtos", description = "修改数据类,放到body") List<LockPointBatchDTO> list)
|
|
|
+ public CommonResult<Boolean> updateLockPointBatch(@RequestBody @Parameter(name = "dtos", description = "修改数据类,放到body") LPBParamDTO dto)
|
|
|
{
|
|
|
- return CommonResult.success(hardwareApiService.updateLockPointBatch(list));
|
|
|
+ return CommonResult.success(hardwareApiService.updateLockPointBatch(dto.getList()));
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -93,9 +91,9 @@ public class HardwareApiController extends BaseController
|
|
|
@ApiOperation("取出辅件时更新数据")
|
|
|
@Log(title = "取出辅件时更新数据", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/updateLocksetTake")
|
|
|
- public CommonResult<Boolean> updateLocksetTake(@RequestBody @Parameter(name = "list", description = "修改数据类,放到body") List<TakeLocksetDTO> list)
|
|
|
+ public CommonResult<Boolean> updateLocksetTake(@RequestBody @Parameter(name = "list", description = "修改数据类,放到body") LTParamDTO dto)
|
|
|
{
|
|
|
- return CommonResult.success(hardwareApiService.updateLocksetTake(list));
|
|
|
+ return CommonResult.success(hardwareApiService.updateLocksetTake(dto.getList()));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("辅件绑定隔离点(辅件和给隔离点上锁时)")
|