Commit 1ddd0647 authored by Quxl's avatar Quxl

x

parent b4c77cc2
...@@ -697,7 +697,8 @@ public class UserServiceImpl implements UserService { ...@@ -697,7 +697,8 @@ public class UserServiceImpl implements UserService {
@Override @Override
public Map<String, Object> getSalesmanByShopNo(String shopNo) { public Map<String, Object> getSalesmanByShopNo(String shopNo) {
String sql = "select top 1 sm.* from tSalesman sm, tShop s where sm.sSalesmanNO = s.sSalesmanNO1 and s.sShopNO = ?"; String sql = "select top 1 sm.* from tSalesman sm, tShop s where sm.sSalesmanNO = s.sSalesmanNO1 and s.sShopNO = ?";
return jdbcTemplate.queryForMap(sql, shopNo); List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, shopNo);
return list != null && list.size() > 0 ? list.get(0) : null;
} }
@Override @Override
......
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