Commit a527e635 authored by Quxl's avatar Quxl

x

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