Commit dee5824f by fudahua

feat:消息展示最近30天

parent 29ecbe81
......@@ -223,6 +223,7 @@
<if test="categoryType != -1">
and category_type =#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc
</select>
......@@ -239,6 +240,7 @@
<if test="categoryType != -1">
and category_type =#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc
</select>
......@@ -251,5 +253,6 @@
<if test="categoryType!=-1">
and category_type=#{categoryType}
</if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
</update>
</mapper>
\ No newline at end of file
......@@ -36,12 +36,17 @@ public class test {
TestQo test = cache.get("test");
System.out.println(JSONObject.toJSONString(test));
Thread.sleep(4000L);
Thread.sleep(2000L);
System.out.println(JSONObject.toJSONString(test));
Thread.sleep(2000L);
System.out.println(JSONObject.toJSONString(test));
test = cache.get("test");
System.out.println(JSONObject.toJSONString(test));
int i=20;
while (i-->0) {
Thread.sleep(2000L);
}
// String key = "3.2.1";
// String[] split = key.split(".");
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment