|
|
|
@ -130,12 +130,20 @@ public class TerminalPhotoController extends BaseController {
|
|
|
|
|
@RequestMapping("/getTakePicPhotoStatus")
|
|
|
|
|
@Log(title = "主动拍照下照片状态查询", type = "查询")
|
|
|
|
|
public ResponseReult<Boolean> getTakePicPhotoStatus( @Validated ReturnedPhotoVo vo) {
|
|
|
|
|
try {
|
|
|
|
|
if (workingMap.containsKey(vo.getRequestid())) {
|
|
|
|
|
throw new ApiException("相同请求正在处理中, 请刷新页面更新");
|
|
|
|
|
}
|
|
|
|
|
workingMap.put(vo.getRequestid(), "1");
|
|
|
|
|
ServiceBody<Boolean> serviceBody = terminalPhotoService.getTakePicPhotoStatus(vo);
|
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
|
} else {
|
|
|
|
|
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
|
|
|
|
|
}
|
|
|
|
|
} finally {
|
|
|
|
|
workingMap.remove(vo.getRequestid());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "拍照时间表查询触发", notes = "拍照时间表查询触发", httpMethod = "POST")
|
|
|
|
|