Commit 2187d2b6 authored by Quxl's avatar Quxl

x

parent 84487b4c
...@@ -203,7 +203,7 @@ public class UserController { ...@@ -203,7 +203,7 @@ public class UserController {
XException.assertNotBlank(openId, "OpenID不能为空"); XException.assertNotBlank(openId, "OpenID不能为空");
mobile = StringUtil.isBlank(mobile) ? "" : mobile; mobile = StringUtil.isBlank(mobile) ? "" : mobile;
name = StringUtil.isBlank(name) ? "" : name; name = StringUtil.isBlank(name) ? "" : name;
Map<String, Object> map = userService.loginByOpenId(orgNo, openId, mobile, name); Map<String, Object> map = userService.loginByOpenId(orgNo, openId, mobile, unionId, name);
Rjx rjx = Rjx.jsonOk(); Rjx rjx = Rjx.jsonOk();
rjx.putAll(map); rjx.putAll(map);
return rjx.toJson(); return rjx.toJson();
......
...@@ -49,7 +49,7 @@ public interface UserService { ...@@ -49,7 +49,7 @@ public interface UserService {
public List<Map<String, Object>> queryBankList(String sCustNO); public List<Map<String, Object>> queryBankList(String sCustNO);
public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String name); public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String unionId, String name);
public void updateB2BUnionID(String UserNO, String UnionID); public void updateB2BUnionID(String UserNO, String UnionID);
......
...@@ -810,10 +810,10 @@ public class UserServiceImpl implements UserService { ...@@ -810,10 +810,10 @@ public class UserServiceImpl implements UserService {
} }
@Override @Override
public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String name) { public Map<String, Object> loginByOpenId(String orgNo, String openId, String mobile, String unionId, String name) {
mobile = StringUtil.isBlank(mobile) ? null : mobile; mobile = StringUtil.isBlank(mobile) ? null : mobile;
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, unionId, name);
List<List<Map<String, Object>>> datas = result.getDatas(); List<List<Map<String, Object>>> datas = result.getDatas();
List<Map<String, Object>> uList = datas.get(0); List<Map<String, Object>> uList = datas.get(0);
Map<String, Object> uMap = uList.get(0); Map<String, Object> uMap = uList.get(0);
......
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