Commit b4c77cc2 authored by Quxl's avatar Quxl

x

parent 780a6c72
...@@ -696,7 +696,7 @@ public class UserServiceImpl implements UserService { ...@@ -696,7 +696,7 @@ 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 or sm.sSalesmanNO = s.sSalesmanNO2 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); return jdbcTemplate.queryForMap(sql, shopNo);
} }
......
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