Commit 24631e97 by Huang Linyu

新建社员时如果电话已存在,则提交页面出错

parent d2d8c366
...@@ -119,6 +119,8 @@ public class CommuneExtConttroller { ...@@ -119,6 +119,8 @@ public class CommuneExtConttroller {
// 处理数据 // 处理数据
handleDate(dto, query, bindingResult); handleDate(dto, query, bindingResult);
List<CommuneLabelBean> labelsList = communeAdmService.findAllLabels();
model.put("labelsList", labelsList);
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
model.put("action", "/communeExt/create"); model.put("action", "/communeExt/create");
model.put("page", request.getParameter("page")); model.put("page", request.getParameter("page"));
...@@ -173,6 +175,8 @@ public class CommuneExtConttroller { ...@@ -173,6 +175,8 @@ public class CommuneExtConttroller {
handleDate(dto, query, bindingResult); handleDate(dto, query, bindingResult);
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
List<CommuneLabelBean> labelsList = communeAdmService.findAllLabels();
model.put("labelsList", labelsList);
model.put("action", "/communeExt/update"); model.put("action", "/communeExt/update");
model.put("page", request.getParameter("page")); model.put("page", request.getParameter("page"));
return "market/communeExt/form"; return "market/communeExt/form";
......
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 sign in to comment