old mode 100644
new mode 100755
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.parking.ParkingAreaDto; |
| | | import com.java110.dto.parkingAreaAttr.ParkingAreaAttrDto; |
| | | import com.java110.entity.order.Business; |
| | | import com.java110.intf.community.IParkingAreaAttrInnerServiceSMO; |
| | | import com.java110.intf.community.IParkingAreaInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerInnerServiceSMO; |
| | | import com.java110.job.adapt.DatabusAdaptImpl; |
| | |
| | | |
| | | @Autowired |
| | | private IParkingAreaInnerServiceSMO parkingAreaInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IParkingAreaAttrInnerServiceSMO parkingAreaAttrInnerServiceSMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private IOwnerInnerServiceSMO ownerInnerServiceSMOImpl; |
| | |
| | | |
| | | Assert.listOnlyOne(parkingAreaDtos, "未找到停车场"); |
| | | |
| | | //查询属性 |
| | | ParkingAreaAttrDto parkingAreaAttrDto = new ParkingAreaAttrDto(); |
| | | parkingAreaAttrDto.setPaId(parkingAreaDtos.get(0).getPaId()); |
| | | parkingAreaAttrDto.setCommunityId(parkingAreaDtos.get(0).getCommunityId()); |
| | | List<ParkingAreaAttrDto> parkingAreaAttrDtos = parkingAreaAttrInnerServiceSMOImpl.queryParkingAreaAttrs(parkingAreaAttrDto); |
| | | |
| | | JSONObject postParameters = new JSONObject(); |
| | | |
| | | postParameters.put("num", parkingAreaDtos.get(0).getNum()); |
| | | postParameters.put("extPaId", parkingAreaDtos.get(0).getPaId()); |
| | | postParameters.put("extCommunityId", parkingAreaDtos.get(0).getCommunityId()); |
| | | postParameters.put("attrs", parkingAreaAttrDtos); |
| | | hcParkingAreaAsynImpl.addParkingArea(postParameters); |
| | | } |
| | | } |