Commit b06b0dba authored by Quxl's avatar Quxl

x

parent 8eddd11b
...@@ -250,4 +250,19 @@ public class BrandController { ...@@ -250,4 +250,19 @@ public class BrandController {
return brandService.saveAuthorizationIP(params); return brandService.saveAuthorizationIP(params);
} }
@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 = ""),
})
@RequestMapping(value = "/authorizationIPList",method=RequestMethod.POST)
public Object authorizationIP(String custNo, String orgNo) {
List<Map<String, Object>> list = brandService.queryAuthorizationIPList(custNo, orgNo);
return Rjx.jsonOk().set("list", list).toJson();
}
} }
...@@ -19,4 +19,6 @@ public interface BrandService { ...@@ -19,4 +19,6 @@ public interface BrandService {
public Map<String, Object> hotIPDetail(Map<String, Object> params); public Map<String, Object> hotIPDetail(Map<String, Object> params);
public String saveAuthorizationIP(Map<String, Object> params); public String saveAuthorizationIP(Map<String, Object> params);
public List<Map<String, Object>> queryAuthorizationIPList(String custNo, String orgNo);
} }
...@@ -207,4 +207,10 @@ public class BrandServiceImpl implements BrandService { ...@@ -207,4 +207,10 @@ public class BrandServiceImpl implements BrandService {
} }
@Override
public List<Map<String, Object>> queryAuthorizationIPList(String custNo, String orgNo) {
String sql = "select * from tIPBrandAuthorize where sOrgNO = ? and sCustNO = ? and nTag&1 = 0";
return jdbcTemplate.queryForList(sql, orgNo, custNo);
}
} }
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