| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @RequestMapping(value="/user/tenant", method=RequestMethod.GET,produces="application/json;charset=UTF-8") |
| | | @RequestMapping(value="/user/tenant", method=RequestMethod.POST,produces="application/json;charset=UTF-8") |
| | | @ResponseBody |
| | | public Object getTenant(String openId) throws Exception { |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | for (PageData t: tenantList) { |
| | | Map<String, Object> tenant = new HashMap<>(); |
| | | tenant.put("code", String.valueOf(t.get("TENANT_ID"))); |
| | | tenant.put("id", String.valueOf(t.get("TENANT_ID"))); |
| | | tenant.put("id", "100000001"); |
| | | tenant.put("name", String.valueOf(t.get("TENANT_NAME"))); |
| | | tenant.put("orgCode", "999999999"); |
| | | |
| | |
| | | Map<String, Object> company = new HashMap<>(); |
| | | company.put("code", String.valueOf(t.get("TENANT_ID"))); |
| | | company.put("hotInfoCompanyId", String.valueOf(t.get("TENANT_ID"))); |
| | | company.put("id", String.valueOf(t.get("TENANT_ID"))); |
| | | company.put("id", "7"); |
| | | company.put("name", String.valueOf(t.get("TENANT_NAME"))); |
| | | company.put("orgCode", "999999999"); |
| | | company.put("tenantId", String.valueOf(t.get("TENANT_ID"))); |
| | |
| | | tenants.add(tenant); |
| | | } |
| | | } |
| | | data.put("companys", tenants); |
| | | data.put("tenants", tenants); |
| | | map.put("data", data); |
| | | map.put(RSP_CODE, Const.C0000); |
| | | map.put(RSP_MSG, Const.M0000); |