升级mybatis-plus到3.5.1
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<redisson-starter.version>3.16.1</redisson-starter.version>
|
<redisson-starter.version>3.16.1</redisson-starter.version>
|
||||||
<easyCaptcha.version>1.6.2</easyCaptcha.version>
|
<easyCaptcha.version>1.6.2</easyCaptcha.version>
|
||||||
<hutool.version>5.7.20</hutool.version>
|
<hutool.version>5.7.20</hutool.version>
|
||||||
<mybatis-plus-boot-starter.version>3.4.0</mybatis-plus-boot-starter.version>
|
<mybatis-plus-boot-starter.version>3.5.1</mybatis-plus-boot-starter.version>
|
||||||
<aliyun-sdk-oss>3.8.1</aliyun-sdk-oss>
|
<aliyun-sdk-oss>3.8.1</aliyun-sdk-oss>
|
||||||
<qiniu-java-sdk>7.2.28</qiniu-java-sdk>
|
<qiniu-java-sdk>7.2.28</qiniu-java-sdk>
|
||||||
<easypoi.version>4.1.3</easypoi.version>
|
<easypoi.version>4.1.3</easypoi.version>
|
||||||
|
|||||||
@@ -56,9 +56,4 @@ public class FileInfo extends Model<FileInfo> {
|
|||||||
private Date createTime;
|
private Date createTime;
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Serializable pkVal() {
|
|
||||||
return this.id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,9 +27,4 @@ public class SuperEntity<T extends Model<?>> extends Model<T> {
|
|||||||
private Date createTime;
|
private Date createTime;
|
||||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
@Override
|
|
||||||
protected Serializable pkVal() {
|
|
||||||
return this.id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ public class SuperServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M,
|
|||||||
) {
|
) {
|
||||||
if (lock != null) {
|
if (lock != null) {
|
||||||
//判断记录是否已存在
|
//判断记录是否已存在
|
||||||
int count = super.count(countWrapper);
|
long count = super.count(countWrapper);
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
return super.save(entity);
|
return super.save(entity);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user