优化代码生成同步后值NULL问题(I5OJDW)

This commit is contained in:
RuoYi 2022-09-28 15:31:52 +08:00
parent 0fbb40ade4
commit a008c209fa
2 changed files with 14 additions and 15 deletions

View File

@ -50,7 +50,6 @@ public class RateLimiterAspect
@Before("@annotation(rateLimiter)") @Before("@annotation(rateLimiter)")
public void doBefore(JoinPoint point, RateLimiter rateLimiter) throws Throwable public void doBefore(JoinPoint point, RateLimiter rateLimiter) throws Throwable
{ {
String key = rateLimiter.key();
int time = rateLimiter.time(); int time = rateLimiter.time();
int count = rateLimiter.count(); int count = rateLimiter.count();
@ -63,7 +62,7 @@ public class RateLimiterAspect
{ {
throw new ServiceException("访问过于频繁,请稍候再试"); throw new ServiceException("访问过于频繁,请稍候再试");
} }
log.info("限制请求'{}',当前请求'{}',缓存key'{}'", count, number.intValue(), key); log.info("限制请求'{}',当前请求'{}',缓存key'{}'", count, number.intValue(), combineKey);
} }
catch (ServiceException e) catch (ServiceException e)
{ {

View File

@ -112,19 +112,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateGenTableColumn" parameterType="GenTableColumn"> <update id="updateGenTableColumn" parameterType="GenTableColumn">
update gen_table_column update gen_table_column
<set> <set>
column_comment = #{columnComment}, is_insert = #{isInsert},
java_type = #{javaType}, is_edit = #{isEdit},
java_field = #{javaField}, is_list = #{isList},
is_insert = #{isInsert,jdbcType=CHAR}, is_query = #{isQuery},
is_edit = #{isEdit,jdbcType=CHAR}, is_required = #{isRequired},
is_list = #{isList,jdbcType=CHAR}, <if test="columnComment != null">column_comment = #{columnComment},</if>
is_query = #{isQuery,jdbcType=CHAR}, <if test="javaType != null">java_type = #{javaType},</if>
is_required = #{isRequired,jdbcType=CHAR}, <if test="javaField != null">java_field = #{javaField},</if>
query_type = #{queryType}, <if test="queryType != null">query_type = #{queryType},</if>
html_type = #{htmlType}, <if test="htmlType != null">html_type = #{htmlType},</if>
dict_type = #{dictType}, <if test="dictType != null">dict_type = #{dictType},</if>
sort = #{sort}, <if test="sort != null">sort = #{sort},</if>
update_by = #{updateBy,jdbcType=VARCHAR}, <if test="updateBy != null">update_by = #{updateBy},</if>
update_time = sysdate update_time = sysdate
</set> </set>
where column_id = #{columnId} where column_id = #{columnId}