|
|
@@ -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); |
|
|
|