|
|
|
|
@ -12,6 +12,7 @@ import com.flossom.common.core.exception.ServiceException;
|
|
|
|
|
import com.flossom.common.core.mapper.SiteInfoMapper;
|
|
|
|
|
import com.flossom.common.core.mapper.SiteLogMapper;
|
|
|
|
|
import com.flossom.common.core.mapper.WxUserTagMapper;
|
|
|
|
|
import com.flossom.common.core.utils.DateUtils;
|
|
|
|
|
import com.flossom.common.core.utils.StringUtils;
|
|
|
|
|
import com.flossom.common.security.utils.SecurityUtils;
|
|
|
|
|
import com.flossom.miniProgram.service.ISiteInfoService;
|
|
|
|
|
@ -252,6 +253,17 @@ public class SiteInfoServiceImpl implements ISiteInfoService {
|
|
|
|
|
|
|
|
|
|
// 最终符合条件
|
|
|
|
|
resultList.add(info);
|
|
|
|
|
|
|
|
|
|
// 添加观看日志
|
|
|
|
|
if (resultList != null && resultList.size() > 0) {
|
|
|
|
|
for (SiteInfo siteInfo : resultList) {
|
|
|
|
|
SiteLog siteLog = new SiteLog();
|
|
|
|
|
siteLog.setUserId(SecurityUtils.getLoginUser().getWxUserMember().getId());
|
|
|
|
|
siteLog.setSiteId(siteInfo.getId());
|
|
|
|
|
siteLog.setCreateTime(DateUtils.getNowDate());
|
|
|
|
|
siteLogMapper.insertSiteLog(siteLog);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return resultList;
|
|
|
|
|
}
|
|
|
|
|
|