Commit a527e635 authored by Quxl's avatar Quxl

x

parent 18ed69ef
...@@ -104,15 +104,14 @@ public class CommonController { ...@@ -104,15 +104,14 @@ public class CommonController {
@RequestMapping(value = "/getRegionList",method=RequestMethod.GET) @RequestMapping(value = "/getRegionList",method=RequestMethod.GET)
public Object getCommonValue(String appId) { public Object getCommonValue(String appId) {
Map<String, Object> map = jdbcTemplate.queryForMap("select sOrgNO, sOrgDesc from tOrg where sAppID = ?", appId); Map<String, Object> map = jdbcTemplate.queryForMap("select sOrgNO, sOrgDesc from tOrg where sAppID = ?", appId);
String ossSql = "" String ossSql = "" +
+ "declare @ChoiceOssKEY varchar(20) " + " declare @ChoiceOssKEY varchar(20) " +
"select @ChoiceOssKEY=sValue1 from tSystemCtrl " + " select @ChoiceOssKEY=sValue1 from tSystemCtrl " +
"where sCode = 'ChoiceOssKEY' " + " where sCode = 'ChoiceOssKEY' " +
" " + " select sChoiceOssKEY=@ChoiceOssKEY,sDesc,sValue1,sValue2,Value3=sValue3,sValue4,sValue5,sMemo " +
"select sChoiceOssKEY=@ChoiceOssKEY,sDesc,sValue1,sValue2,Value3=sValue3,sValue4,sValue5,sMemo " + " from tSystemCtrl " +
"from tSystemCtrl " + " where sCode = @ChoiceOssKEY";
"where sCode = @ChoiceOssKEY"; Map<String, Object> omap = jdbcTemplate.queryForMap(ossSql.replaceAll("\\s+", " "));
Map<String, Object> omap = jdbcTemplate.queryForMap(ossSql);
Map<String, Object> cmap = jdbcTemplate.queryForMap("select sDesc,sValue1 from tSystemCtrl where sCode = 'ExemptCheck'"); Map<String, Object> cmap = jdbcTemplate.queryForMap("select sDesc,sValue1 from tSystemCtrl where sCode = 'ExemptCheck'");
return Rjx.jsonOk().set("OrgInfo", map).set("PicInfo", omap).set("ExemptCheck", cmap).toJson(); return Rjx.jsonOk().set("OrgInfo", map).set("PicInfo", omap).set("ExemptCheck", cmap).toJson();
......
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