| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.ownerCarOpenUser.OwnerCarOpenUserDto; |
| | | import com.java110.dto.parking.ParkingAreaDto; |
| | | import com.java110.dto.smallWeChat.SmallWeChatDto; |
| | | import com.java110.dto.tempCarFeeConfig.TempCarPayOrderDto; |
| | | import com.java110.intf.community.IParkingAreaV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerCarOpenUserV1InnerServiceSMO; |
| | | import com.java110.po.ownerCarOpenUser.OwnerCarOpenUserPo; |
| | | import com.java110.utils.cache.CommonCache; |
| | |
| | | return super.businessProcess(pd); |
| | | } |
| | | |
| | | @Autowired |
| | | private IParkingAreaV1InnerServiceSMO parkingAreaV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Override |
| | | protected void validate(IPageData pd, JSONObject paramIn) { |
| | |
| | | |
| | | ResponseEntity responseEntity = null; |
| | | |
| | | //根据paId 查询communityId |
| | | ParkingAreaDto parkingAreaDto = new ParkingAreaDto(); |
| | | parkingAreaDto.setPaId(paramIn.getString("paId")); |
| | | List<ParkingAreaDto> parkingAreaDtos = parkingAreaV1InnerServiceSMOImpl.queryParkingAreas(parkingAreaDto); |
| | | |
| | | Assert.listOnlyOne(parkingAreaDtos,"停车场不存在"); |
| | | paramIn.put("communityId",parkingAreaDtos.get(0).getCommunityId()); |
| | | SmallWeChatDto smallWeChatDto = getSmallWechat(pd, paramIn); |
| | | |
| | | if (smallWeChatDto == null) { //从配置文件中获取 小程序配置信息 |
| | |
| | | } |
| | | //查询用户ID |
| | | paramIn.put("userId", pd.getUserId()); |
| | | String url = "tempCarFee.queryTempCarFeeOrder?paId=" + paramIn.getString("paId") + "&carNum=" + paramIn.getString("carNum")+"&couponIds="+StringUtils.join(couponIds,","); |
| | | String url = "tempCarFee.queryTempCarFeeOrder?paId=" + paramIn.getString("paId") |
| | | + "&carNum=" + paramIn.getString("carNum") |
| | | + "&machineId=" + paramIn.getString("machineId") |
| | | +"&couponIds="+StringUtils.join(couponIds,","); |
| | | responseEntity = super.callCenterService(restTemplate, pd, "", url, HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | |
| | | if (money <= 0) { |
| | | JSONObject paramOut = new JSONObject(); |
| | | paramOut.put("oId", orderId); |
| | | paramIn.put("payType", TempCarPayOrderDto.PAY_TYPE_WECHAT); |
| | | String urlOut = "tempCarFee.notifyTempCarFeeOrder"; |
| | | responseEntity = this.callCenterService(getHeaders("-1", pd.getAppId()), paramOut.toJSONString(), urlOut, HttpMethod.POST); |
| | | JSONObject param = new JSONObject(); |