Просмотр исходного кода

标签测试

release_toaliyun_real
xhxu 5 лет назад
Родитель
Сommit
396be72d5d
1 измененных файлов: 2 добавлений и 4 удалений
  1. +2
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java

+ 2
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java Просмотреть файл

@@ -653,12 +653,10 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
List<EnumTag> tags = new ArrayList<>(); List<EnumTag> tags = new ArrayList<>();
for (WxCUserBasicChild child:list) { for (WxCUserBasicChild child:list) {
if(child.getBirthdate() != null){ if(child.getBirthdate() != null){
Calendar cal = Calendar.getInstance();
logger.info("--------"+child.getBirthdate()); logger.info("--------"+child.getBirthdate());
logger.info("--------"+cal.after(child.getBirthdate()));
if (cal.after(child.getBirthdate())) {
if (new Date().after(child.getBirthdate())) {
int age = DateUtils.getAge(child.getBirthdate()); int age = DateUtils.getAge(child.getBirthdate());
logger.info("--------"+child.getBirthdate());
logger.info("--------"+age);
if(age < 1){ if(age < 1){
if(!tags.contains(EnumTag.ID_166)){ if(!tags.contains(EnumTag.ID_166)){
tags.add(EnumTag.ID_166); tags.add(EnumTag.ID_166);


Загрузка…
Отмена
Сохранить