Merge branch 'script_gj' into 'master'
Script gj See merge request !907
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ class ThardParthAnalyBatch extends BaseBatch{
|
|||||||
|
|
||||||
def run(){
|
def run(){
|
||||||
def fjwTotalCount = CommonDatautils.findAllCount("district")
|
def fjwTotalCount = CommonDatautils.findAllCount("district")
|
||||||
def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -2), "yyyy-MM-dd")
|
def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -1), "yyyy-MM-dd")
|
||||||
def sDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
|
def sDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM"));
|
||||||
println "统计月份:"+sDate+" 查询更新时间:"+mdate
|
println "统计月份:"+sDate+" 查询更新时间:"+mdate
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ class ThardParthAnalyBatch extends BaseBatch{
|
|||||||
|
|
||||||
def findMatchSuccessDistCount(sDate){
|
def findMatchSuccessDistCount(sDate){
|
||||||
def q = new BasicDBObject().append("s_date", sDate).append("avg_price", new BasicDBObject('$gt', 0)).append("status", 4)
|
def q = new BasicDBObject().append("s_date", sDate).append("avg_price", new BasicDBObject('$gt', 0)).append("status", 4)
|
||||||
def dbcursor = thirdPartyColl.count(q)
|
def dbcursor = thirdPartyColl.find(q)
|
||||||
def set = new HashSet()
|
def set = new HashSet()
|
||||||
for (def d : dbcursor) {
|
for (def d : dbcursor) {
|
||||||
set << d.city+"##"+d.region+"##"+d.name
|
set << d.city+"##"+d.region+"##"+d.name
|
||||||
|
|||||||
Reference in New Issue
Block a user