| | |
| | | |
| | | JSONObject paramIn = JSONObject.parseObject(pd.getReqData()); |
| | | int page = Integer.parseInt(paramIn.getString("page")); |
| | | int rows = Integer.parseInt(paramIn.getString("rows")); |
| | | int row = Integer.parseInt(paramIn.getString("row")); |
| | | String communityId = paramIn.getString("communityId"); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | JSONObject resultObjs = JSONObject.parseObject(responseEntity.getBody().toString()); |
| | | resultObjs.put("row", rows); |
| | | resultObjs.put("row", row); |
| | | resultObjs.put("page", page); |
| | | return responseEntity; |
| | | } |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | paramIn.put("userId", pd.getUserId()); |
| | | paramIn.put("name", paramIn.getString("ownerName")); |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/owner.editOwner", |
| | | HttpMethod.POST); |
| | |
| | | private void validateEditOwner(IPageData pd) { |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "communityId", "未包含小区ID"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "ownerId", "未包含小区楼ID"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "ownerName", "未包含小区楼名称"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "ownerNum", "未包含小区楼编码"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "name", "请求报文中未包含name"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "age", "请求报文中未包含age"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "link", "请求报文中未包含link"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "sex", "请求报文中未包含sex"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "remark", "未包含小区楼备注"); |
| | | } |
| | | |
| | |
| | | */ |
| | | private void validateSaveOwner(IPageData pd) { |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "communityId", "未包含小区ID"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "name", "未包含小区楼名称"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "ownerNum", "未包含小区楼编码"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "age", "请求报文中未包含age"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "name", "请求报文中未包含name"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "link", "请求报文中未包含link"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "sex", "请求报文中未包含sex"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "remark", "未包含小区楼备注"); |
| | | } |
| | | |
| | |
| | | */ |
| | | private void validateListOwner(IPageData pd) { |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "page", "请求报文中未包含page节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "rows", "请求报文中未包含rows节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "row", "请求报文中未包含row节点"); |
| | | Assert.jsonObjectHaveKey(pd.getReqData(), "communityId", "请求报文中未包含communityId节点"); |
| | | JSONObject paramIn = JSONObject.parseObject(pd.getReqData()); |
| | | Assert.isInteger(paramIn.getString("page"), "page不是数字"); |
| | | Assert.isInteger(paramIn.getString("rows"), "rows不是数字"); |
| | | Assert.isInteger(paramIn.getString("row"), "rows不是数字"); |
| | | Assert.hasLength(paramIn.getString("communityId"), "小区ID不能为空"); |
| | | int rows = Integer.parseInt(paramIn.getString("rows")); |
| | | int row = Integer.parseInt(paramIn.getString("row")); |
| | | |
| | | |
| | | if (rows > MAX_ROW) { |
| | | throw new SMOException(ResponseConstant.RESULT_CODE_ERROR, "rows 数量不能大于50"); |
| | | if (row > MAX_ROW) { |
| | | throw new SMOException(ResponseConstant.RESULT_CODE_ERROR, "row 数量不能大于50"); |
| | | } |
| | | |
| | | } |