Commit ac9de840 authored by 廖旭伟's avatar 廖旭伟

修改测试bug

parent 99d5ffb2
...@@ -111,4 +111,36 @@ public class UserMatterApplyController extends BaseCRUDJsonBodyMappingController ...@@ -111,4 +111,36 @@ public class UserMatterApplyController extends BaseCRUDJsonBodyMappingController
ret.put("data", model); ret.put("data", model);
return ret.toJSONString(); return ret.toJSONString();
} }
@RequestMapping(
value = {"delete"},
method = {RequestMethod.POST, RequestMethod.GET}
)
@UnAuth
public String delete(Long[] id) {
Context context = this.getContext();
if (id == null) {
return this.createFailJsonResp("请至少选择一条记录");
} else {
Map<String, Object> model = new HashMap();
int code = 1;
String busiDesc = "删除" + this.getModuleDesc();
try {
this.deleteBefore(id, context);
int iRet = this.service.remove(id, context);
model.put("message_info", this.getModuleDesc() + "删除成功!删除条数:" + iRet);
this.recordSysLog(this.request, busiDesc + " 【成功】 [id:" + StringUtils.converArray2Str(id) + "]");
} catch (Exception var7) {
code = -1;
this.doException(this.request, busiDesc, model, var7);
}
JSONObject ret = new JSONObject();
ret.put("code", Integer.valueOf(code));
ret.put("msg", model.remove("message_info"));
ret.put("data", model);
return ret.toJSONString();
}
}
} }
\ No newline at end of file
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