| | |
| | | list.add(professionType); |
| | | if (!StringUtils.isEmpty(userInfoCompleteDto.getMarriageTypeName())){ |
| | | marriageTyp.setTagName(userInfoCompleteDto.getMarriageTypeName().trim()); |
| | | list.add(marriageTyp); |
| | | } |
| | | list.add(marriageTyp); |
| | | |
| | | if (!StringUtils.isEmpty(userInfoCompleteDto.getGrowthTypeName())){ |
| | | growthType.setTagName(userInfoCompleteDto.getGrowthTypeName().trim()); |
| | | list.add(growthType); |
| | | } |
| | | list.add(growthType); |
| | | |
| | | userLabelAddDto.setUserLabelDtoList(list); |
| | | |
| | | List<UserLabelDcpDto> userLabelDtoLists = userLabelAddDto.getUserLabelDtoList(); |
| | | if (userLabelDtoLists == null) { |
| | | /* if (userLabelDtoLists == null) { |
| | | userLabelDtoLists = new ArrayList<>(); |
| | | } |
| | | for (UserLabelDcpDto userLabelDcpDto : userLabelDtoLists) { |
| | | if (StringUtils.isEmpty(userLabelDcpDto.getTagName())) { |
| | | throw new TipsException("标签名称为空!"); |
| | | } |
| | | if (userLabelDcpDto.getIsCustom() == null) { |
| | | throw new TipsException("请选择标签是否自定义!"); |
| | | } |
| | | } |
| | | |
| | | }*/ |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | data.put("userId", userLabelAddDto.getUserId()); |
| | | data.put("sourceType", "phis"); |
| | | |
| | | List<String> tagList = new ArrayList<>(); |
| | | List<UserLabelDcpDto> userLabelDtoList = userLabelAddDto.getUserLabelDtoList(); |
| | | if (userLabelDtoList != null && userLabelDtoList.size() > 0) { |
| | | if (null != userLabelDtoLists && userLabelDtoLists.size() > 0){ |
| | | for (UserLabelDcpDto userLabelDcpDto : userLabelDtoLists) { |
| | | if (StringUtils.isEmpty(userLabelDcpDto.getTagName())) { |
| | | throw new TipsException("标签名称为空!"); |
| | | } |
| | | if (userLabelDcpDto.getIsCustom() == null) { |
| | | throw new TipsException("请选择标签是否自定义!"); |
| | | } |
| | | } |
| | | List<Map<String, Object>> editUserTagInfoList = new ArrayList<>(); |
| | | Map<String, Object> editUserTagInfo; |
| | | for (UserLabelDcpDto userLabelDcpDto : userLabelDtoList) { |
| | | for (UserLabelDcpDto userLabelDcpDto : userLabelDtoLists) { |
| | | editUserTagInfo = new HashMap<>(); |
| | | editUserTagInfo.put("typeNo", userLabelDcpDto.getTypeNo()); |
| | | editUserTagInfo.put("tagName", userLabelDcpDto.getTagName().trim()); |
| | |
| | | data.put("editUserTagInfoList", editUserTagInfoList); |
| | | } |
| | | |
| | | //List<UserLabelDcpDto> userLabelDtoList = userLabelAddDto.getUserLabelDtoList(); |
| | | /* if (userLabelDtoLists != null && userLabelDtoLists.size() > 0) { |
| | | |
| | | }*/ |
| | | |
| | | //要删除的标签 固定 - 职位 生育 婚否 |
| | | SqlSentence sqlSentence = new SqlSentence(); |
| | | Map<String,Object> values = new HashMap<>(); |