Commit 91fa395d authored by Quxl's avatar Quxl

x

parent 425babfc
...@@ -611,6 +611,9 @@ public class UserServiceImpl implements UserService { ...@@ -611,6 +611,9 @@ public class UserServiceImpl implements UserService {
public Map<String, Object> queryCustomerByOpenId(String openId) { public Map<String, Object> queryCustomerByOpenId(String openId) {
String sql = "select c.*, m.sMobile sSalesmanMobile from tCustomer c left join tSalesman m on m.sSalesmanNO = c.sSalesmanNO1, tB2BUser u where c.sCustNO = u.sCustNO and u.sOpenID = ? and c.nTag&1 = 0 and u.nTag&1 = 0"; String sql = "select c.*, m.sMobile sSalesmanMobile from tCustomer c left join tSalesman m on m.sSalesmanNO = c.sSalesmanNO1, tB2BUser u where c.sCustNO = u.sCustNO and u.sOpenID = ? and c.nTag&1 = 0 and u.nTag&1 = 0";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, openId); List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, openId);
if(list.size() > 1) {
throw new XException("OpenID绑定异常");
}
return list.size() == 0 ? null : list.get(0); return list.size() == 0 ? null : list.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