|
|
@@ -12,6 +12,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -23,6 +24,7 @@ import com.goafanti.common.bo.fieldGlossoryBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.dao.DistrictGlossoryMapper;
|
|
|
import com.goafanti.common.dao.IndustryCategoryMapper;
|
|
|
+import com.goafanti.common.dao.JtCollectSearchMapper;
|
|
|
import com.goafanti.common.dao.NoticeMapper;
|
|
|
import com.goafanti.common.dao.UserIdentityMapper;
|
|
|
import com.goafanti.common.dao.UserInterestMapper;
|
|
|
@@ -33,7 +35,10 @@ import com.goafanti.common.enums.CertifySubmitType;
|
|
|
import com.goafanti.common.enums.IdentityAuditStatus;
|
|
|
import com.goafanti.common.enums.NoticeReadStatus;
|
|
|
import com.goafanti.common.enums.NoticeStatus;
|
|
|
+import com.goafanti.common.enums.SocietyTagStatus;
|
|
|
import com.goafanti.common.enums.UserLevel;
|
|
|
+import com.goafanti.common.enums.collectType;
|
|
|
+import com.goafanti.common.model.JtCollectSearch;
|
|
|
import com.goafanti.common.model.Notice;
|
|
|
import com.goafanti.common.model.User;
|
|
|
import com.goafanti.common.model.UserIdentity;
|
|
|
@@ -67,6 +72,11 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
|
|
|
IndustryCategoryMapper industryCategoryMapper;
|
|
|
@Autowired
|
|
|
UserInterestMapper userInterestMapper;
|
|
|
+ @Autowired
|
|
|
+ JtCollectSearchMapper jtCollectSearchMapper;
|
|
|
+ @Value(value="${collect_flag}")
|
|
|
+ private Boolean collectFlag ;
|
|
|
+
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(UserIdentityServiceImpl.class);
|
|
|
|
|
|
@@ -582,8 +592,24 @@ public class UserIdentityServiceImpl extends BaseMybatisDao<UserIdentityMapper>
|
|
|
}
|
|
|
else auditStatus=AchievementAuditStatus.AUDITED.getCode().intValue();
|
|
|
identity.setAuditStatus(auditStatus);*/
|
|
|
+ if(collectFlag){
|
|
|
+ ExpertsListBo u=userIdentityMapper.selectByIdentityId(identity.getId());
|
|
|
+ if (identity.getAuditStatus()==2) {
|
|
|
+ JtCollectSearch r=new JtCollectSearch();
|
|
|
+ r.setFromTable(collectType.EXPERT.getDesc());
|
|
|
+ r.setKeyword(SocietyTagStatus.getStatus(u.getKeyword()).getDesc());
|
|
|
+ r.setTitle(u.getUsername());
|
|
|
+ r.setRowId(u.getUid());
|
|
|
+ jtCollectSearchMapper.insertSelective(r);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (identity.getAuditStatus()==4) {
|
|
|
+ if(collectFlag)jtCollectSearchMapper.deleteByrowId(u.getUid());
|
|
|
+ }
|
|
|
+ }
|
|
|
return userIdentityMapper.updateAuditing(identity);
|
|
|
}
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public Integer updateUserIdentityDetail(InputUserIdentity identity) {
|