Commit 07dd3671 authored by Quxl's avatar Quxl

x

parent 04438f9d
...@@ -814,14 +814,17 @@ public class UserServiceImpl implements UserService { ...@@ -814,14 +814,17 @@ public class UserServiceImpl implements UserService {
String sql = "exec up_B2BUserRegisterLogin ?, ?, ?, ?"; String sql = "exec up_B2BUserRegisterLogin ?, ?, ?, ?";
ResultMutil result = jdbcTemplate.executeMutil(sql, orgNo, openId, mobile, name); ResultMutil result = jdbcTemplate.executeMutil(sql, orgNo, openId, mobile, name);
List<List<Map<String, Object>>> datas = result.getDatas(); List<List<Map<String, Object>>> datas = result.getDatas();
List<Map<String, Object>> sList = datas.get(0); List<Map<String, Object>> uList = datas.get(0);
List<Map<String, Object>> shopList = datas.get(3); List<Map<String, Object>> shopList = datas.get(3);
if(StringUtil.isBlank(mobile) && uList.size() == 0) {
throw new XException("账户不存在", 201);
}
if(shopList.size() == 0) { if(shopList.size() == 0) {
throw new XException("该账号暂未绑定门店"); throw new XException("该账号暂未绑定门店");
} }
Map<String, Object> sMap = sList.get(0); Map<String, Object> uMap = uList.get(0);
Object Status = sMap.get("Status"); Object Status = uMap.get("Status");
Object ErrorMsg = sMap.get("ErrorMsg"); Object ErrorMsg = uMap.get("ErrorMsg");
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
...@@ -830,7 +833,7 @@ public class UserServiceImpl implements UserService { ...@@ -830,7 +833,7 @@ public class UserServiceImpl implements UserService {
if(code != 0) { if(code != 0) {
throw throwLoginError(ErrorMsg); throw throwLoginError(ErrorMsg);
} else { } else {
map.put("userinfo", sMap); map.put("userinfo", uMap);
map.put("customer", datas.get(1).get(0)); map.put("customer", datas.get(1).get(0));
map.put("bankList", datas.get(2)); map.put("bankList", datas.get(2));
map.put("shopList", datas.get(3)); map.put("shopList", datas.get(3));
......
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