| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | // record.setPhone(SensitiveUtil.desensitizedPhoneNumber(record.getPhone())); |
| | | record.setIdCard(SensitiveUtil.desensitizedIdNumber(record.getIdCard())); |
| | | |
| | | // StringBuilder sb = new StringBuilder(); |
| | | if (record.getIsPartymember().equals(1)) { |
| | | record.setTags(record.getTags()+ "党员,"); |
| | | } |
| | | if (record.getIsVolunteer().equals(1)) { |
| | | record.setTags(record.getTags()+ "志愿者,"); |
| | | } |
| | | if (record.getTags().length() > 0) { |
| | | record.setTags(record.getTags().substring(0, record.getTags().length() - 1)); |
| | | } else { |
| | | record.setTags("无"); |
| | | String tags = record.getTags(); |
| | | if (StringUtils.isNotEmpty(tags)) { |
| | | if (record.getIsPartymember().equals(1)) { |
| | | tags = tags + "党员,"; |
| | | } |
| | | if (record.getIsVolunteer().equals(1)) { |
| | | tags = tags + "志愿者,"; |
| | | } |
| | | if (tags.length() > 0) { |
| | | record.setTags(tags.substring(0, tags.length() - 1)); |
| | | } else { |
| | | record.setTags("无"); |
| | | } |
| | | } |
| | | }); |
| | | return R.ok(iPage); |