Commit 34c7ce10 authored by Quxl's avatar Quxl

x

parent b06b0dba
......@@ -260,9 +260,24 @@ public class BrandController {
@ApiImplicitParam(paramType = "query", name = "custNo", dataType = "String", required = true, value = "用户编号", defaultValue = ""),
})
@RequestMapping(value = "/authorizationIPList",method=RequestMethod.POST)
public Object authorizationIP(String custNo, String orgNo) {
public Object authorizationIPList(String custNo, String orgNo) {
List<Map<String, Object>> list = brandService.queryAuthorizationIPList(custNo, orgNo);
return Rjx.jsonOk().set("list", list).toJson();
}
@ApiOperation("获取IP授权详情")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "LangID", dataType = "String", required = true, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "orgNo", dataType = "String", required = true, value = "组织机构", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "custNo", dataType = "String", required = true, value = "用户编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "brandId", dataType = "String", required = true, value = "品牌ID", defaultValue = ""),
})
@RequestMapping(value = "/authorizationIPDetail",method=RequestMethod.POST)
public Object authorizationIPDetail(String custNo, String brandId, String orgNo) {
Map<String, Object> map = brandService.queryAuthorizationIPDetail(custNo, brandId, orgNo);
return Rjx.jsonOk().set("data", map).toJson();
}
}
......@@ -21,4 +21,6 @@ public interface BrandService {
public String saveAuthorizationIP(Map<String, Object> params);
public List<Map<String, Object>> queryAuthorizationIPList(String custNo, String orgNo);
public Map<String, Object> queryAuthorizationIPDetail(String custNo, String brandId, String orgNo);
}
......@@ -213,4 +213,10 @@ public class BrandServiceImpl implements BrandService {
String sql = "select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and nTag&1 = 0";
return jdbcTemplate.queryForList(sql, orgNo, custNo);
}
@Override
public Map<String, Object> queryAuthorizationIPDetail(String custNo, String brandId, String orgNo) {
String sql = "select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and sBrandID = ?";
return jdbcTemplate.queryForMap(sql, orgNo, custNo, brandId);
}
}
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