Commit ff0d6683 by s_guodong

update

parent a354cd10
...@@ -55,7 +55,7 @@ public class ResponseSet<T> { ...@@ -55,7 +55,7 @@ public class ResponseSet<T> {
public ResponseSet(String errCode, String errMsg) { public ResponseSet(String errCode, String errMsg) {
if (CODE_SUCCESS.equals(errCode)) { if (CODE_SUCCESS.equals(errCode)) {
this.retcod = CODE_SUCCESS; this.retcod = CODE_SUCCESS;
this.retmsg = CODE_SUCCESS; this.retmsg = errMsg;
} else { } else {
this.retcod = CODE_FAILURE; this.retcod = CODE_FAILURE;
this.retmsg = errMsg; this.retmsg = errMsg;
......
...@@ -240,8 +240,9 @@ public abstract class AbstractRouteService<V extends BaseVO> { ...@@ -240,8 +240,9 @@ public abstract class AbstractRouteService<V extends BaseVO> {
//return new ResponseSet<V>(ctx.getErrorNo(), ctx.getErrorMessage(), ctx.getFieldErrors()); //return new ResponseSet<V>(ctx.getErrorNo(), ctx.getErrorMessage(), ctx.getFieldErrors());
} }
} catch (Exception e) { } catch (Exception e) {
throw new RuleExecuteException(e.getMessage(), e); // throw new RuleExecuteException(e.getMessage(), e);
// return new ResponseSet<V>() IContext ctx = MdaEnv.getContext();
return new ResponseSet<V>(ctx.getErrorNo(), ctx.getErrorMessage());
} finally { } finally {
DCR.emptyDefaultQueue(); DCR.emptyDefaultQueue();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment