| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.api.smo.DefaultAbstractComponentSMO; |
| | | import com.java110.core.component.BaseComponentSMO; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.entity.assetImport.ImportFloor; |
| | | import com.java110.entity.assetImport.ImportOwner; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.entity.meterImport.ImportMeter; |
| | | import com.java110.dto.importData.ImportFloor; |
| | | import com.java110.dto.importData.ImportOwner; |
| | | import com.java110.dto.system.ComponentValidateResult; |
| | | import com.java110.dto.meter.ImportMeter; |
| | | import com.java110.api.smo.meterWaterImport.IMeterWaterImportSMO; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ImportExcelUtils; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | 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; |
| | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>("成功", HttpStatus.OK); |
| | | for (ImportMeter meter : meters) { |
| | | paramIn = new JSONObject(); |
| | | apiUrl = ServiceConstant.SERVICE_API_URL + "/api/meterWater.saveMeterWater"; |
| | | apiUrl = "meterWater.saveMeterWater"; |
| | | paramIn.put("communityId", communityId); |
| | | paramIn.put("meterType", meterType); |
| | | paramIn.put("objType",meter.getObjType()); |
| | |
| | | private JSONObject getExistsOwner(IPageData pd, ComponentValidateResult result, ImportOwner importOwner) { |
| | | String apiUrl = ""; |
| | | ResponseEntity<String> responseEntity = null; |
| | | apiUrl = ServiceConstant.SERVICE_API_URL + "/api/owner.queryOwners?page=1&row=1&communityId=" + result.getCommunityId() |
| | | apiUrl = "owner.queryOwners?page=1&row=1&communityId=" + result.getCommunityId() |
| | | + "&ownerTypeCd=1001&name=" + importOwner.getOwnerName() + "&link=" + importOwner.getTel(); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", apiUrl, HttpMethod.GET); |
| | | |