|
|
|
@ -23,6 +23,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.net.ConnectException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.Map;
|
|
|
|
@ -171,8 +172,12 @@ public class YbClient {
|
|
|
|
|
.last("limit 1")
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ResultVOUtils.error(500, "第三方医保签到失败!!"+e.getMessage());
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
if(e.getMessage().contains("Connection timed ou")){
|
|
|
|
|
return ResultVOUtils.error(500, "第三方医保签到失败==="+"连接超时");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.error(500, "第三方医保签到失败==="+e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// .eq("","")
|
|
|
|
@ -191,7 +196,11 @@ public class YbClient {
|
|
|
|
|
return ResultVOUtils.success("上传医保结果===" + json);
|
|
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return ResultVOUtils.error(500, "上传医保失败!!"+e.getMessage());
|
|
|
|
|
if(e.getMessage().contains("Connection timed ou")){
|
|
|
|
|
return ResultVOUtils.error(500, "上传医保失败==="+"连接超时");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.error(500, "上传医保失败==="+e.getMessage());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|