提交 05170ecd authored 作者: tykj's avatar tykj

fix(核查):修正检查管理中查看在库/非在库设备,状态为detail140/160不更新的问题

上级 b67def3d
...@@ -343,8 +343,8 @@ public class DeviceCheckController { ...@@ -343,8 +343,8 @@ public class DeviceCheckController {
@GetMapping("/detail/{id}") @GetMapping("/detail/{id}")
public ResponseEntity<ResultObj<CheckDetailVo>> findDetail(@PathVariable Integer id) { public ResponseEntity<ResultObj<CheckDetailVo>> findDetail(@PathVariable Integer id) {
DeviceCheckDetail detail = detailRepo.findById(id).orElseThrow(() -> new ApiException("给出的bill id 不存在")); Task task = taskRepo.findByBillIdAndBusinessType(id, 7).orElseThrow(() -> new ApiException("给出的bill id 不存在"));
if (CHECK_DETAIL_REGION_0.equals(detail.getCheckStatus()) || CHECK_DETAIL_CITY_0.equals((detail.getCheckStatus()))) { if (CHECK_DETAIL_REGION_0.equals(task.getBillStatus()) || CHECK_DETAIL_CITY_0.equals((task.getBillStatus()))) {
refreshDetail(id); refreshDetail(id);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论