| | |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | paramObj.put("memberTypeCd", "390001200002"); |
| | | paramObj.put("page", 1); |
| | | paramObj.put("row", 1); |
| | | String url = ServiceConstant.SERVICE_API_URL + "/api/store.listStoresByCommunity" + mapToUrlParam(paramObj); |
| | | String url = "store.listStoresByCommunity" + mapToUrlParam(paramObj); |
| | | ResponseEntity<String> responseEntity = super.callCenterService(restTemplate, pd, "", url, HttpMethod.GET); |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | return responseEntity; |
| | |
| | | JSONArray stores = storeObj.getJSONArray("stores"); |
| | | String storeId = stores.getJSONObject(0).getString("storeId"); |
| | | paramIn.put("storeId", storeId); |
| | | url = ServiceConstant.SERVICE_API_URL + "/api/complaint.saveComplaint"; |
| | | url = "complaint.saveComplaint"; |
| | | responseEntity = super.callCenterService(restTemplate, pd, paramIn.toJSONString(), url, HttpMethod.POST); |
| | | |
| | | return responseEntity; |