| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.FloorDto; |
| | | import com.java110.dto.RoomAttrDto; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.UnitDto; |
| | | import com.java110.dto.room.RoomAttrDto; |
| | | import com.java110.dto.community.CommunityAttrDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.floorAttr.FloorAttrDto; |
| | | import com.java110.dto.owner.OwnerAttrDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.dto.owner.OwnerRoomRelDto; |
| | | import com.java110.entity.order.Business; |
| | | import com.java110.dto.system.Business; |
| | | import com.java110.intf.community.*; |
| | | import com.java110.intf.user.IOwnerAttrInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerInnerServiceSMO; |
| | |
| | | import com.java110.job.adapt.hcGov.asyn.BaseHcGovSendAsyn; |
| | | import com.java110.po.owner.OwnerPo; |
| | | import com.java110.po.owner.OwnerRoomRelPo; |
| | | import com.java110.po.room.RoomPo; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.DateUtil; |
| | |
| | | @Override |
| | | public void execute(Business business, List<Business> businesses) { |
| | | JSONObject data = business.getData(); |
| | | JSONArray businessOwnerRoomRelPo = new JSONArray(); |
| | | if (data.containsKey(OwnerRoomRelPo.class.getSimpleName())) { |
| | | Object bObj = data.get(OwnerRoomRelPo.class.getSimpleName()); |
| | | JSONArray businessOwnerRoomRelPo = null; |
| | | if (bObj instanceof JSONObject) { |
| | | businessOwnerRoomRelPo = new JSONArray(); |
| | | businessOwnerRoomRelPo.add(bObj); |
| | | } else if (bObj instanceof List) { |
| | | businessOwnerRoomRelPo = JSONArray.parseArray(JSONObject.toJSONString(bObj)); |
| | | } else { |
| | | businessOwnerRoomRelPo = (JSONArray) bObj; |
| | | } |
| | | //JSONObject businessOwnerCar = data.getJSONObject("businessOwnerCar"); |
| | | for (int bOwnerIndex = 0; bOwnerIndex < businessOwnerRoomRelPo.size(); bOwnerIndex++) { |
| | | JSONObject businessOwnerCar = businessOwnerRoomRelPo.getJSONObject(bOwnerIndex); |
| | | doAddOwner(business, businessOwnerCar); |
| | | |
| | | }else { |
| | | if (data instanceof JSONObject) { |
| | | businessOwnerRoomRelPo.add(data); |
| | | } |
| | | } |
| | | //JSONObject businessOwnerCar = data.getJSONObject("businessOwnerCar"); |
| | | for (int bOwnerIndex = 0; bOwnerIndex < businessOwnerRoomRelPo.size(); bOwnerIndex++) { |
| | | JSONObject businessOwnerCar = businessOwnerRoomRelPo.getJSONObject(bOwnerIndex); |
| | | doAddOwner(business, businessOwnerCar); |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | body.put("maritalStatus", "N"); |
| | | body.put("religiousBelief", "无"); |
| | | body.put("ramark", ownerPo.getRemark()); |
| | | body.put("extRoomId", extRoomId.toJSONString()); |
| | | body.put("extRoomId", extRoomId != null ? extRoomId.toJSONString():""); |
| | | body.put("ownerType", "2002"); |
| | | body.put("ownerAddress", "无"); |
| | | body.put("ownerTypeCd", ownerPo.getOwnerTypeCd()); |