2、修改英语一言缓存失效时间,10分钟改为3分钟失效
@ -23,6 +23,6 @@ public class RedisConst {
//-------------------有效时间-----------------------
public static final Integer TRAN_DICT_EXPIRE = 7; //天
public static final Integer ONE_ENGLISH_EXPIRE = 10; //分钟
public static final Integer ONE_ENGLISH_EXPIRE = 3; //分钟
}
@ -22,6 +22,7 @@
<if test="en != null and en != ''">and en like "%"#{en}"%"</if>
<if test="zh != null and zh != ''">and zh like "%"#{zh}"%"</if>
</where>
order by create_time desc
</select>
<select id="selectApiEnglishById" parameterType="Long" resultMap="ApiEnglishResult">