Commit 425babfc authored by Quxl's avatar Quxl

x

parent 10bd9289
......@@ -609,7 +609,8 @@ public class UserServiceImpl implements UserService {
@Override
public Map<String, Object> queryCustomerByOpenId(String openId) {
List<Map<String, Object>> list = jdbcTemplate.queryForList("select c.*, m.sMobile sSalesmanMobile from tCustomer c left join tSalesman m on m.sSalesmanNO = c.sSalesmanNO1 where c.sOpenID = ? and c.nTag&1 = 0", 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";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, openId);
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