用户统计增加修改时间
This commit is contained in:
+14
-1
@@ -87,6 +87,12 @@ public class UserStat {
|
|||||||
@Field(value="la_count")
|
@Field(value="la_count")
|
||||||
private Long loanCount;
|
private Long loanCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改时间
|
||||||
|
*/
|
||||||
|
@Field(value="m_date")
|
||||||
|
private Date modifyDate;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@@ -190,5 +196,12 @@ public class UserStat {
|
|||||||
public void setLoanCount(Long loanCount) {
|
public void setLoanCount(Long loanCount) {
|
||||||
this.loanCount = loanCount;
|
this.loanCount = loanCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Date getModifyDate() {
|
||||||
|
return modifyDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModifyDate(Date modifyDate) {
|
||||||
|
this.modifyDate = modifyDate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.fangjia.job.fsh.job;
|
package com.fangjia.job.fsh.job;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -79,7 +80,7 @@ public class UserStatJob implements SimpleJob {
|
|||||||
stat.setLoanEvalCount(loanApplyService.queryUserCountByType(eid, uid, 2));
|
stat.setLoanEvalCount(loanApplyService.queryUserCountByType(eid, uid, 2));
|
||||||
stat.setLoanEvalMaxPrice(loanApplyService.queryMaxEvalMoney(eid, uid));
|
stat.setLoanEvalMaxPrice(loanApplyService.queryMaxEvalMoney(eid, uid));
|
||||||
stat.setLoanCount(loanApplyService.queryUserCountByType(eid, uid, 1));
|
stat.setLoanCount(loanApplyService.queryUserCountByType(eid, uid, 1));
|
||||||
|
stat.setModifyDate(new Date());
|
||||||
userStatService.save(stat);
|
userStatService.save(stat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user