add log to FilterUsers
This commit is contained in:
parent
994bc9c224
commit
ba331076f6
|
|
@ -19,7 +19,7 @@
|
|||
destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
|
||||
<property name="url"
|
||||
value="jdbc:mysql://172.16.128.33:3306/ow2?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true" />
|
||||
value="jdbc:mysql://localhost:3306/ow2?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true" />
|
||||
<property name="username" value="root" />
|
||||
<property name="password" value="NUDTpdl@" />
|
||||
<property name="validationQuery" value="SELECT 1" />
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package com.ow2.rec.main;
|
|||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
|
@ -18,6 +19,7 @@ import com.ow2.rec.targetDao.SOFFilterTargetDao;
|
|||
|
||||
@Component
|
||||
public class FilterUsers {
|
||||
Logger logger = Logger.getLogger(this.getClass());
|
||||
|
||||
@Resource
|
||||
private SOFFilterSourceDao filterDao;
|
||||
|
|
@ -37,6 +39,7 @@ public class FilterUsers {
|
|||
int maxId = filterDao.getMaxId();
|
||||
int count = 0; //用于记录一共删选出多少个用户
|
||||
while(startId <= maxId){
|
||||
logger.info("处理用户:" + startId);
|
||||
//读取对应id的用户在UserTag_n表中是否有十条以上帖子参与程度
|
||||
String tableName = luceneSearch.getTargetTable(startId);
|
||||
//判断是否有tag
|
||||
|
|
|
|||
Loading…
Reference in New Issue