Commit 394245b5 authored by Quxl's avatar Quxl

x

parent dded9168
......@@ -6,6 +6,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
......@@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import com.egolm.common.StringUtil;
import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.shop.config.XException;
import com.egolm.shop.service.CommonService;
import io.swagger.annotations.Api;
......@@ -103,7 +105,12 @@ public class CommonController {
})
@RequestMapping(value = "/getConfig",method=RequestMethod.GET)
public Object getConfig(String appId) {
Map<String, Object> map = jdbcTemplate.queryForMap("select sOrgNO, sOrgDesc from tOrg where sAppID = ? and nTag&1 = 0", appId);
Map<String, Object> map = null;
try {
map = jdbcTemplate.queryForMap("select sOrgNO, sOrgDesc from tOrg where sAppID = ? and nTag&1 = 0", appId);
} catch (EmptyResultDataAccessException e) {
throw new XException("配置不存在", e);
}
String ossSql = "" +
" declare @ChoiceOssKEY varchar(20) " +
" select @ChoiceOssKEY=sValue1 from tSystemCtrl " +
......
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