Commit a1680e46 by 邓实川 Committed by chenzg

电子合同优化,错误信息提示

parent 433f3c21
...@@ -355,6 +355,8 @@ public class DzhtController { ...@@ -355,6 +355,8 @@ public class DzhtController {
} else { } else {
DzhtController2 d = new DzhtController2(); DzhtController2 d = new DzhtController2();
accountId = d.grzc(userBean, empNum); accountId = d.grzc(userBean, empNum);
if (accountId.equals("IDCARD-ERROR"))
return ResultUtil.error("请先完善身份证信息!");
} }
grrz.setAccountId(accountId); grrz.setAccountId(accountId);
...@@ -623,7 +625,7 @@ public class DzhtController { ...@@ -623,7 +625,7 @@ public class DzhtController {
code = a.getBody().get("code").toString(); code = a.getBody().get("code").toString();
returnList.add(a.getBody()); returnList.add(a.getBody());
} }
if (code.equals("0")) { if (code != null && code.equals("0")) {
return ResultUtil.data(returnList); return ResultUtil.data(returnList);
} else { } else {
return ResultUtil.data(returnList, "查询失败"); return ResultUtil.data(returnList, "查询失败");
......
...@@ -112,6 +112,8 @@ public class DzhtController2 { ...@@ -112,6 +112,8 @@ public class DzhtController2 {
String name = yg.getName(); String name = yg.getName();
Integer type = yg.getZjType(); Integer type = yg.getZjType();
String idType = null; String idType = null;
if (type == null)
return "IDCARD-ERROR";
if (type == 0) { if (type == 0) {
idType = "CRED_PSN_CH_IDCARD";// 大陆身份证 idType = "CRED_PSN_CH_IDCARD";// 大陆身份证
} else if (type == 1) { } else if (type == 1) {
......
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