|
@@ -111,10 +111,12 @@ public class CustomTfPdaSignServiceImpl implements CustomTfPdaSignService {
|
|
|
} else {
|
|
|
esPdaDeviceUpload.setWorkState(new BigDecimal(2));
|
|
|
}
|
|
|
- tfPdaSignService.save(addSign);
|
|
|
- if(dyrqGpsService.save(esPdaDeviceUpload).getCode() != 1){
|
|
|
- throw new ToflyDeniedException("es存储设备上传信息失败");
|
|
|
- };
|
|
|
+ try {
|
|
|
+ tfPdaSignService.save(addSign);
|
|
|
+ if (dyrqGpsService.save(esPdaDeviceUpload).getCode() != 1) throw new ToflyDeniedException("es存储设备上传信息失败");
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new ToflyDeniedException("签到人数过多,服务器繁忙,请稍后再试");
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|