|
@@ -26,6 +26,7 @@ import com.nb.common.cache.value.Value;
|
|
|
import com.nb.common.exception.CustomException;
|
|
import com.nb.common.exception.CustomException;
|
|
|
import com.nb.common.exception.ScriptException;
|
|
import com.nb.common.exception.ScriptException;
|
|
|
import com.nb.common.result.R;
|
|
import com.nb.common.result.R;
|
|
|
|
|
+import com.nb.common.util.ExceptionUtil;
|
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.util.Assert;
|
|
import org.springframework.util.Assert;
|
|
@@ -208,9 +209,9 @@ public class HisScriptSession {
|
|
|
sources= JSONUtil.toList(result.toString(), BusClinicEntity.class);
|
|
sources= JSONUtil.toList(result.toString(), BusClinicEntity.class);
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
if(exec.getException()==null){
|
|
if(exec.getException()==null){
|
|
|
- exec.setMessage(e.toString());
|
|
|
|
|
|
|
+ exec.setMessage(ExceptionUtil.getExceptionMsg(e));
|
|
|
}
|
|
}
|
|
|
- log.error("数据解析后转化为json失败,{},",text,e.getStackTrace());
|
|
|
|
|
|
|
+ log.error("数据解析后转化为json失败,",text,e);
|
|
|
if(StrUtil.isNotEmpty(text)){
|
|
if(StrUtil.isNotEmpty(text)){
|
|
|
throw new ScriptException("脚本解析失败");
|
|
throw new ScriptException("脚本解析失败");
|
|
|
}else {
|
|
}else {
|