09 2021 档案
摘要:在数据库中添加两个字段,设置不允许为空 #实体类: //创建时间,插入数据时操作 @TableField(fill = FieldFill.INSERT) private Date create_time; //更新时间,插入,更新时操作 @TableField(fill = FieldFill.I
阅读全文
摘要:#原理 当要更新一条记录的时候,希望这条记录没有被别人更新,也就是说实现线程安全的数据更新。 支持的数据类型只有int,Integer,long,Long,Date,Timestamp,LocalDateTime 仅支持 updateById(id) 与 update(entity, wrapper
阅读全文

浙公网安备 33010602011771号