| | |
| | | package com.java110.community.cmd.room; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.community.bmo.room.IQueryRoomStatisticsBMO; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.UnitDto; |
| | | import com.java110.dto.basePrivilege.BasePrivilegeDto; |
| | | import com.java110.dto.dataPrivilegeStaff.DataPrivilegeStaffDto; |
| | | import com.java110.dto.data.DataPrivilegeStaffDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.intf.community.*; |
| | | import com.java110.intf.user.IOwnerInnerServiceSMO; |
| | |
| | | url = "http://{ip}:{port}/app/room.queryRooms", |
| | | resource = "communityDoc", |
| | | author = "吴学文", |
| | | serviceCode = "room.queryRooms" |
| | | serviceCode = "room.queryRooms", |
| | | seq = 16 |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | |
| | | @Autowired |
| | | private IMenuInnerServiceSMO menuInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IQueryRoomStatisticsBMO queryRoomStatisticsBMOImpl; |
| | | |
| | | protected static final int MAX_ROW = 10000; |
| | | |
| | | @Override |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | RoomDto roomDto = BeanConvertUtil.covertBean(reqJson, RoomDto.class); |
| | | |
| | | //导致业务受理搜索查询 |
| | | // if (reqJson.containsKey("flag") && reqJson.getString("flag").equals("1")) { |
| | | // if (reqJson.containsKey("roomNumLike") && !StringUtil.isEmpty(reqJson.getString("roomNumLike"))) { |
| | | // String[] roomNumLikes = reqJson.getString("roomNumLike").split("-"); |
| | | // roomDto.setFloorNum(roomNumLikes[0]); |
| | | // roomDto.setUnitNum(roomNumLikes[1]); |
| | | // roomDto.setRoomNum(roomNumLikes[2]); |
| | | // roomDto.setRoomNumLike(""); |
| | | // } |
| | | // } |
| | | |
| | | |
| | | //员工数据权限 |
| | | String staffId = cmdDataFlowContext.getReqHeaders().get("user-id"); |
| | |
| | | if (total > 0) { |
| | | roomDtoList = roomInnerServiceSMOImpl.queryRooms(roomDto); |
| | | refreshRoomOwners(reqJson.getString("loginUserId"), reqJson.getString("communityId"), roomDtoList); |
| | | |
| | | // 查询房屋统计数据 |
| | | roomDtoList = queryRoomStatisticsBMOImpl.query(roomDtoList); |
| | | } else { |
| | | roomDtoList = new ArrayList<>(); |
| | | } |
| | |
| | | } |
| | | //对业主手机号隐藏处理 |
| | | String link = tmpOwnerDto.getLink(); |
| | | roomDto.setOwnerTel(link); //程序用 主要用以查询 报修等统计信息 |
| | | if (mark.size() == 0 && link != null && !link.equals("") && link.length() > 10) { |
| | | link = link.substring(0, 3) + "****" + link.substring(7); |
| | | } |