upd: 编码规范

This commit is contained in:
2025-03-24 20:17:15 +08:00
parent 8c65ac7d16
commit c835f0b661
4 changed files with 4 additions and 4 deletions
@@ -17,7 +17,7 @@ import lombok.Setter;
@TableName("tool_local_storage") @TableName("tool_local_storage")
public class LocalStorage extends MyEntity { public class LocalStorage extends MyEntity {
@TableId(value = "storage_id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "ID", hidden = true) @ApiModelProperty(value = "ID", hidden = true)
private Long id; private Long id;
@@ -16,7 +16,7 @@ import java.sql.Timestamp;
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
public class QiniuContent extends MyObject { public class QiniuContent extends MyObject {
@TableId(value = "content_id", type = IdType.AUTO) @TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "ID", hidden = true) @ApiModelProperty(value = "ID", hidden = true)
private Long id; private Long id;
@@ -18,6 +18,6 @@
AND update_time BETWEEN #{criteria.createTime[0]} AND #{criteria.createTime[1]} AND update_time BETWEEN #{criteria.createTime[0]} AND #{criteria.createTime[1]}
</if> </if>
</where> </where>
ORDER BY storage_id DESC ORDER BY id DESC
</select> </select>
</mapper> </mapper>
@@ -19,6 +19,6 @@
AND update_time BETWEEN #{criteria.createTime[0]} AND #{criteria.createTime[1]} AND update_time BETWEEN #{criteria.createTime[0]} AND #{criteria.createTime[1]}
</if> </if>
</where> </where>
ORDER BY content_id DESC ORDER BY id DESC
</select> </select>
</mapper> </mapper>