| | |
| | | url = "http://{ip}:{port}/app/owner.editOwner", |
| | | resource = "userDoc", |
| | | author = "吴学文", |
| | | serviceCode = "owner.editOwner" |
| | | serviceCode = "owner.editOwner", |
| | | seq = 10 |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | |
| | | } |
| | | editOwner(reqJson); |
| | | JSONArray attrs = reqJson.getJSONArray("attrs"); |
| | | if (attrs.size() < 1) { |
| | | if (attrs == null && attrs.size() < 1) { |
| | | return; |
| | | } |
| | | JSONObject attr = null; |
| | |
| | | attr = attrs.getJSONObject(attrIndex); |
| | | attr.put("memberId", reqJson.getString("memberId")); |
| | | attr.put("communityId", reqJson.getString("communityId")); |
| | | if (!attr.containsKey("attrId") || attr.getString("attrId").startsWith("-") || StringUtil.isEmpty(attr.getString("attrId"))) { |
| | | if (!attr.containsKey("attrId") || StringUtil.isEmpty(attr.getString("attrId")) || attr.getString("attrId").startsWith("-")) { |
| | | attr.put("attrId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_attrId)); |
| | | OwnerAttrPo ownerAttrPo = BeanConvertUtil.covertBean(attr, OwnerAttrPo.class); |
| | | flag = ownerAttrInnerServiceSMOImpl.saveOwnerAttr(ownerAttrPo); |