Commit 4507adc9 authored by Quxl's avatar Quxl

x

parent 5c1c8007
...@@ -322,7 +322,9 @@ public class UserController { ...@@ -322,7 +322,9 @@ public class UserController {
if(customerMap == null) { if(customerMap == null) {
return Rjx.jsonErr().setCode(201).setMessage(I18NUtils.getMessage(langID, "Msg_OpenID_notExist")).toJson(); return Rjx.jsonErr().setCode(201).setMessage(I18NUtils.getMessage(langID, "Msg_OpenID_notExist")).toJson();
} }
List<Map<String, Object>> shopList = userService.queryShopList((String)customerMap.get("sCustNO")); String sCustNO = (String)customerMap.get("sCustNO");
List<Map<String, Object>> bankList = userService.queryBankList(sCustNO);
List<Map<String, Object>> shopList = userService.queryShopList(sCustNO);
customerMap.put("sShopNO", shopList.get(0).get("sShopNO")); customerMap.put("sShopNO", shopList.get(0).get("sShopNO"));
customerMap.put("nShopID", shopList.get(0).get("nShopID")); customerMap.put("nShopID", shopList.get(0).get("nShopID"));
customerMap.put("sEmail", shopList.get(0).get("sEmail")); customerMap.put("sEmail", shopList.get(0).get("sEmail"));
......
...@@ -47,4 +47,6 @@ public interface UserService { ...@@ -47,4 +47,6 @@ public interface UserService {
public void updateCustomerEmail(String custNo, String email); public void updateCustomerEmail(String custNo, String email);
public List<Map<String, Object>> queryBankList(String sCustNO);
} }
...@@ -723,4 +723,10 @@ public class UserServiceImpl implements UserService { ...@@ -723,4 +723,10 @@ public class UserServiceImpl implements UserService {
} }
@Override
public List<Map<String, Object>> queryBankList(String sCustNO) {
String sql = "SELECT * FROM tCustBank where sCustNO = ? and nTag&1 = 0";
return jdbcTemplate.queryForList(sql, sCustNO);
}
} }
\ No newline at end of file
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