|
@@ -181,7 +181,7 @@
|
|
and image.image_create_time <= #{endTime}
|
|
and image.image_create_time <= #{endTime}
|
|
having creativeCnt <= #{creativeCnt}
|
|
having creativeCnt <= #{creativeCnt}
|
|
and creativeNum = 0
|
|
and creativeNum = 0
|
|
- order by image.image_create_time
|
|
|
|
|
|
+ order by image.image_create_time DESC
|
|
limit #{videoCnt}
|
|
limit #{videoCnt}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -222,7 +222,7 @@
|
|
and a.totalCost > 500
|
|
and a.totalCost > 500
|
|
having creativeCnt <= 100
|
|
having creativeCnt <= 100
|
|
and creativeNum = 0
|
|
and creativeNum = 0
|
|
- order by image_create_time
|
|
|
|
|
|
+ order by image_create_time DESC
|
|
limit #{videoCnt}
|
|
limit #{videoCnt}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -264,7 +264,7 @@
|
|
and a.totalCost <= 100
|
|
and a.totalCost <= 100
|
|
having creativeCnt < 20
|
|
having creativeCnt < 20
|
|
and creativeNum = 0
|
|
and creativeNum = 0
|
|
- order by image_create_time
|
|
|
|
|
|
+ order by image_create_time DESC
|
|
limit #{videoCnt}
|
|
limit #{videoCnt}
|
|
</select>
|
|
</select>
|
|
|
|
|