|
@@ -9,6 +9,8 @@ import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.transaction.UserTransaction;
|
|
import javax.transaction.UserTransaction;
|
|
|
|
|
|
|
|
+import org.apache.commons.lang.StringEscapeUtils;
|
|
|
|
+
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -299,11 +301,12 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
}//异常时事务回滚
|
|
}//异常时事务回滚
|
|
JSONArray errMessage = new JSONArray();
|
|
JSONArray errMessage = new JSONArray();
|
|
JSONObject returnobj = new JSONObject();
|
|
JSONObject returnobj = new JSONObject();
|
|
|
|
+ String emsg = e.getMessage().replace("\"", "\'");
|
|
errMessage.add(formatRSJsonData("失败",
|
|
errMessage.add(formatRSJsonData("失败",
|
|
- e.getMessage(),"").toString());
|
|
|
|
|
|
+ emsg,""));
|
|
returnobj.put("info", "失败");
|
|
returnobj.put("info", "失败");
|
|
- returnobj.put("errMessage", e.getMessage());
|
|
|
|
- returnobj.put("result", errMessage);
|
|
|
|
|
|
+ returnobj.put("errMessage", emsg);
|
|
|
|
+ returnobj.put("result", errMessage);
|
|
resp.getWriter().write(returnobj.toString());
|
|
resp.getWriter().write(returnobj.toString());
|
|
NcLog.info(returnobj.toString());
|
|
NcLog.info(returnobj.toString());
|
|
return;
|
|
return;
|