Commit 8836389b authored by hongguangwu's avatar hongguangwu

MVP1.7.15-招行卡

parent 672dd516
...@@ -149,9 +149,10 @@ public class ZhaoHangServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSoc ...@@ -149,9 +149,10 @@ public class ZhaoHangServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSoc
JSONObject jsonObject = JSON.parseObject(dataResultList); JSONObject jsonObject = JSON.parseObject(dataResultList);
String success = jsonObject.getString("success"); String success = jsonObject.getString("success");
String message = jsonObject.getString("message"); String message = jsonObject.getString("message");
String msgCode = jsonObject.getString("msgCode");
String sumPage = jsonObject.getString("sumPage"); String sumPage = jsonObject.getString("sumPage");
JSONArray dataArray = jsonObject.getJSONArray("object"); JSONArray dataArray = jsonObject.getJSONArray("object");
if (!"true".equals(success)) { if (!"true".equals(success) || !"0000".equals(msgCode)) {
return R.failed(message); return R.failed(message);
} }
int sumPageNum = 1; int sumPageNum = 1;
...@@ -195,10 +196,13 @@ public class ZhaoHangServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSoc ...@@ -195,10 +196,13 @@ public class ZhaoHangServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSoc
jsonObject = JSON.parseObject(dataResultList); jsonObject = JSON.parseObject(dataResultList);
success = jsonObject.getString("success"); success = jsonObject.getString("success");
if ("true".equals(success)) { message = jsonObject.getString("message");
dataArray = jsonObject.getJSONArray("object"); msgCode = jsonObject.getString("msgCode");
this.doSetZhaoHangInfoCore(dataArray, ekpId); if (!"true".equals(success) || !"0000".equals(msgCode)) {
return R.failed(message);
} }
dataArray = jsonObject.getJSONArray("object");
this.doSetZhaoHangInfoCore(dataArray, ekpId);
} }
} }
return R.ok(); return R.ok();
......
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