| | |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | super.validateProperty(cmdDataFlowContext); |
| | | Assert.jsonObjectHaveKey(reqJson, "page", "请求中未包含page信息"); |
| | | Assert.jsonObjectHaveKey(reqJson, "row", "请求中未包含row信息"); |
| | | Assert.jsonObjectHaveKey(reqJson, "communityId", "请求中未包含communityId信息"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求中未包含communityId信息"); |
| | | Assert.isInteger(reqJson.getString("page"), "不是有效数字"); |
| | | Assert.isInteger(reqJson.getString("row"), "不是有效数字"); |
| | | } |
| | |
| | | tmpOwnerDto.setLink(link); |
| | | } |
| | | } |
| | | }else{ |
| | | } else { |
| | | ownerDtos = new ArrayList<>(); |
| | | } |
| | | ResponseEntity<String> responseEntity = ResultVo.createResponseEntity((int) Math.ceil((double) total / (double) row), total, ownerDtos); |
| | |
| | | Assert.listOnlyOne(roomDtos, "未查询到房屋下业主信息"); |
| | | reqJson.put("roomId", roomDtos.get(0).getRoomId()); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |