Commit d7ec3f23 authored by Quxl's avatar Quxl

x

parent b9c1ce33
......@@ -294,16 +294,15 @@ public class UserController {
@ApiOperation("查询认证信息")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", dataType = "int", name = "shopId", value = "店铺ID", required=true),
/*=======================================================分界线=================================================================*/
@ApiImplicitParam(paramType = "query", dataType = "int", name = "shopNo", required=true),
@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 = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
@RequestMapping(value = "/queryShopAuthInfo",method=RequestMethod.GET)
public String queryShopAuthInfo(Integer shopId, String langID) {
return userService.queryShopAuthInfo(shopId, langID);
public String queryShopAuthInfo(String shopNo, String langID) {
return userService.queryShopAuthInfo(shopNo, langID);
}
@ApiOperation("根据OPENID获取用户信息")
......
......@@ -39,7 +39,7 @@ public interface UserService {
public void saveOpenId(String string, String openId);
public String queryShopAuthInfo(Integer shopId, String langID);
public String queryShopAuthInfo(String shopNo, String langID);
public Map<String, Object> getSalesmanByShopNo(String shopNo);
......
......@@ -412,11 +412,11 @@ public class UserServiceImpl implements UserService {
}
@Override
public String queryShopAuthInfo(Integer shopId, String langID) {
public String queryShopAuthInfo(String shopNo, String langID) {
String sCertifTypeID = "A";
String sCertifType = "营业执照";
Map<String, Object> map = new HashMap<String, Object>();
Map<String, Object> shopMap = jdbcTemplate.queryForMap("select * from tShop where nShopID = ?", shopId);
Map<String, Object> shopMap = jdbcTemplate.queryForMap("select * from tShop where sShopNO = ?", shopNo);
String sProvinceID = (String)shopMap.get("sProvinceID");
String sCityID = (String)shopMap.get("sCityID");
......@@ -468,7 +468,6 @@ public class UserServiceImpl implements UserService {
map.put("sMemo", shopMap.get("sMemo"));
map.put("sSalesmanNO1", shopMap.get("sSalesmanNO1"));
map.put("sMainBusiness", shopMap.get("sMainBusiness"));
String shopNo = (String)shopMap.get("sShopNO");
List<Map<String, Object>> certifList = jdbcTemplate.queryForList("select * from tShopCertif where sShopNO = ? and sCertifTypeID = ?", shopNo, sCertifTypeID);
if(certifList.size() > 0) {
Map<String, Object> certifMap = certifList.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