old mode 100644
new mode 100755
| | |
| | | package com.java110.user.api; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.aliyuncs.utils.StringUtils; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.rentingConfig.RentingConfigDto; |
| | | import com.java110.dto.rentingPool.RentingPoolDto; |
| | | import com.java110.dto.rentingPoolAttr.RentingPoolAttrDto; |
| | | import com.java110.po.rentingConfig.RentingConfigPo; |
| | | import com.java110.po.rentingPool.RentingPoolPo; |
| | | import com.java110.po.rentingPoolAttr.RentingPoolAttrPo; |
| | | import com.java110.po.rentingPoolFlow.RentingPoolFlowPo; |
| | | import com.java110.dto.renting.RentingConfigDto; |
| | | import com.java110.dto.renting.RentingPoolDto; |
| | | import com.java110.dto.renting.RentingPoolAttrDto; |
| | | import com.java110.po.renting.RentingConfigPo; |
| | | import com.java110.po.renting.RentingPoolPo; |
| | | import com.java110.po.renting.RentingPoolAttrPo; |
| | | import com.java110.po.renting.RentingPoolFlowPo; |
| | | import com.java110.user.bmo.rentingConfig.IDeleteRentingConfigBMO; |
| | | import com.java110.user.bmo.rentingConfig.IGetRentingConfigBMO; |
| | | import com.java110.user.bmo.rentingConfig.ISaveRentingConfigBMO; |
| | |
| | | public ResponseEntity<String> queryRentingConfig( |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row, |
| | | @RequestParam(value = "rentingConfigId", required = false) String rentingConfigId) { |
| | | @RequestParam(value = "rentingConfigId", required = false) String rentingConfigId, |
| | | @RequestParam(value = "rentingType",required = false) String rentingType, |
| | | @RequestParam(value = "rentingFormula",required = false) String rentingFormula) { |
| | | RentingConfigDto rentingConfigDto = new RentingConfigDto(); |
| | | rentingConfigDto.setPage(page); |
| | | rentingConfigDto.setRow(row); |
| | | rentingConfigDto.setRentingConfigId(rentingConfigId); |
| | | rentingConfigDto.setRentingType(rentingType); |
| | | rentingConfigDto.setRentingFormula(rentingFormula); |
| | | return getRentingConfigBMOImpl.get(rentingConfigDto); |
| | | } |
| | | |
| | |
| | | Assert.hasKeyAndValue(reqJson, "rentingTitle", "请求报文中未包含rentingTitle"); |
| | | Assert.hasKeyAndValue(reqJson, "roomId", "请求报文中未包含roomId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityName", "请求报文中未包含communityName"); |
| | | Assert.hasKeyAndValue(reqJson, "price", "请求报文中未包含price"); |
| | | Assert.hasKeyAndValue(reqJson, "paymentType", "请求报文中未包含paymentType"); |
| | | Assert.hasKeyAndValue(reqJson, "checkIn", "请求报文中未包含checkIn"); |
| | | Assert.hasKeyAndValue(reqJson, "rentingConfigId", "请求报文中未包含rentingConfigId"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerName", "请求报文中未包含ownerName"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerTel", "请求报文中未包含ownerTel"); |
| | | JSONArray photos = null; |
| | | if (reqJson.containsKey("photos")) { |
| | | photos = reqJson.getJSONArray("photos"); |
| | | }else{ |
| | | photos = new JSONArray(); |
| | | } |
| | | |
| | | |
| | | RentingPoolPo rentingPoolPo = BeanConvertUtil.covertBean(reqJson, RentingPoolPo.class); |
| | | return saveRentingPoolBMOImpl.save(rentingPoolPo); |
| | | return saveRentingPoolBMOImpl.save(rentingPoolPo,photos); |
| | | } |
| | | |
| | | /** |
| | |
| | | Assert.hasKeyAndValue(reqJson, "roomId", "请求报文中未包含roomId"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "price", "请求报文中未包含price"); |
| | | Assert.hasKeyAndValue(reqJson, "paymentType", "请求报文中未包含paymentType"); |
| | | Assert.hasKeyAndValue(reqJson, "checkInDate", "请求报文中未包含checkInDate"); |
| | | Assert.hasKeyAndValue(reqJson, "checkIn", "请求报文中未包含checkInDate"); |
| | | Assert.hasKeyAndValue(reqJson, "rentingConfigId", "请求报文中未包含rentingConfigId"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerName", "请求报文中未包含ownerName"); |
| | | Assert.hasKeyAndValue(reqJson, "ownerTel", "请求报文中未包含ownerTel"); |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryRentingPool", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryRentingPool(@RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "communityName", required = false) String communityName, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row, |
| | | @RequestParam(value = "state", required = false) String state, |
| | |
| | | rentingPoolDto.setPage(page); |
| | | rentingPoolDto.setRow(row); |
| | | rentingPoolDto.setCommunityId(communityId); |
| | | rentingPoolDto.setCommunityName(communityName); |
| | | rentingPoolDto.setRentingId(rentingId); |
| | | rentingPoolDto.setRentingType(rentingType); |
| | | if (!StringUtils.isEmpty(state) && state.contains(",")) { |