Commit b7790b56 authored by Quxl's avatar Quxl

x

parent 4662b70c
......@@ -56,6 +56,7 @@ public class CommonController {
@ApiOperation("获取共同参数")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "commonNo", dataType = "String", required = false, value = "参数名"),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = false, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = false, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
......@@ -64,8 +65,8 @@ public class CommonController {
@RequestMapping(value = "/getCommonArgs",method=RequestMethod.GET)
public String getCommonArgs(HttpServletRequest request) {
String langID = request.getParameter("langID");
String commonNO = request.getParameter("commonNO");
List<Map<String, Object>> list = commonService.getCommonArgs(langID, commonNO);
String commonNo = request.getParameter("commonNo");
List<Map<String, Object>> list = commonService.getCommonArgs(langID, commonNo);
return Rjx.jsonOk().set("list", list).toJson();
}
......
......@@ -22,5 +22,5 @@ public interface CommonService {
public String getOpenCity(String langID) ;
public List<Map<String, Object>> getCommonArgs(String langID, String commonNO);
public List<Map<String, Object>> getCommonArgs(String langID, String commonNo);
}
......@@ -171,7 +171,7 @@ public class CommonServiceImpl implements CommonService{
}
@Override
public List<Map<String, Object>> getCommonArgs(String langID, String commonNO) {
public List<Map<String, Object>> getCommonArgs(String langID, String commonNo) {
String sql = ""
+ "SELECT "
+ "DISTINCT "
......@@ -195,7 +195,7 @@ public class CommonServiceImpl implements CommonService{
+ "AND a.nTag& 1 = 0 "
+ "ORDER BY "
+ "a.sComID";
return jdbcTemplate.queryForList(sql, langID, commonNO);
return jdbcTemplate.queryForList(sql, langID, commonNo);
}
}
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