Commit 4ab3f245 authored by Quxl's avatar Quxl

x

parent 15175ca6
...@@ -288,7 +288,6 @@ public class UserController { ...@@ -288,7 +288,6 @@ public class UserController {
@ApiOperation("查询认证信息") @ApiOperation("查询认证信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", name = "shopId", value = "店铺ID", required=true), @ApiImplicitParam(paramType = "query", dataType = "int", name = "shopId", value = "店铺ID", required=true),
@ApiImplicitParam(paramType = "query", dataType = "string", name = "custNo", value = "客户编号", required=true),
/*=======================================================分界线=================================================================*/ /*=======================================================分界线=================================================================*/
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"), @ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"), @ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = true, value = "终端标识", defaultValue = "wechat"),
...@@ -296,8 +295,8 @@ public class UserController { ...@@ -296,8 +295,8 @@ public class UserController {
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "") @ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
}) })
@RequestMapping(value = "/queryShopAuthInfo",method=RequestMethod.GET) @RequestMapping(value = "/queryShopAuthInfo",method=RequestMethod.GET)
public String queryShopAuthInfo(String custNo, Integer shopId, String langID) { public String queryShopAuthInfo(Integer shopId, String langID) {
return userService.queryShopAuthInfo(custNo, shopId, langID); return userService.queryShopAuthInfo(shopId, langID);
} }
@ApiOperation("根据OPENID获取用户信息") @ApiOperation("根据OPENID获取用户信息")
......
...@@ -39,6 +39,6 @@ public interface UserService { ...@@ -39,6 +39,6 @@ public interface UserService {
public void saveOpenId(String string, String openId); public void saveOpenId(String string, String openId);
public String queryShopAuthInfo(String custNo, Integer shopId, String langID); public String queryShopAuthInfo(Integer shopId, String langID);
} }
...@@ -412,15 +412,15 @@ public class UserServiceImpl implements UserService { ...@@ -412,15 +412,15 @@ public class UserServiceImpl implements UserService {
} }
@Override @Override
public String queryShopAuthInfo(String custNo, Integer shopId, String langID) { public String queryShopAuthInfo(Integer shopId, String langID) {
String sCertifTypeID = "A"; String sCertifTypeID = "A";
String sCertifType = "营业执照"; String sCertifType = "营业执照";
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
Map<String, Object> shopMap = jdbcTemplate.queryForMap("select * from tShop where nShopID = ?", shopId);
String custNo = (String) shopMap.get("sCustNO");
Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo); Map<String, Object> custMap = jdbcTemplate.queryForMap("select * from tCustomer where sCustNO = ?", custNo);
map.put("sCustName", custMap.get("sCustName")); map.put("sCustName", custMap.get("sCustName"));
map.put("sCustNO", custMap.get("sCustNO")); map.put("sCustNO", custMap.get("sCustNO"));
Map<String, Object> shopMap = jdbcTemplate.queryForMap("select * from tShop where nShopID = ?", shopId);
map.put("sShopNO", shopMap.get("sShopNO")); map.put("sShopNO", shopMap.get("sShopNO"));
map.put("nShopID", shopMap.get("nShopID")); map.put("nShopID", shopMap.get("nShopID"));
map.put("sShopName", shopMap.get("sShopName")); map.put("sShopName", shopMap.get("sShopName"));
......
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