Commit dee5824f by fudahua

feat:消息展示最近30天

parent 29ecbe81
...@@ -223,6 +223,7 @@ ...@@ -223,6 +223,7 @@
<if test="categoryType != -1"> <if test="categoryType != -1">
and category_type =#{categoryType} and category_type =#{categoryType}
</if> </if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc order by create_time desc
</select> </select>
...@@ -239,6 +240,7 @@ ...@@ -239,6 +240,7 @@
<if test="categoryType != -1"> <if test="categoryType != -1">
and category_type =#{categoryType} and category_type =#{categoryType}
</if> </if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
order by create_time desc order by create_time desc
</select> </select>
...@@ -251,5 +253,6 @@ ...@@ -251,5 +253,6 @@
<if test="categoryType!=-1"> <if test="categoryType!=-1">
and category_type=#{categoryType} and category_type=#{categoryType}
</if> </if>
and create_time > DATE_SUB(now(),INTERVAL 30 DAY)
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -36,12 +36,17 @@ public class test { ...@@ -36,12 +36,17 @@ public class test {
TestQo test = cache.get("test"); TestQo test = cache.get("test");
System.out.println(JSONObject.toJSONString(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)); System.out.println(JSONObject.toJSONString(test));
test = cache.get("test"); test = cache.get("test");
System.out.println(JSONObject.toJSONString(test)); System.out.println(JSONObject.toJSONString(test));
int i=20;
while (i-->0) {
Thread.sleep(2000L);
}
// String key = "3.2.1"; // String key = "3.2.1";
// String[] split = key.split("."); // 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