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; |
| | |
| | | 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"); |