From 00d59f3e542870ddd7bd176fa9cf89a3396c240d Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 9 Jan 2023 11:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=94=B3=E8=AF=B7=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E8=AF=84=E5=88=86=E5=86=85=E5=AE=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/resourceScore/dto/ResourceScoreDTO.java | 6 ++++++ .../resourceScore/entity/ResourceScoreEntity.java | 12 ++++++++++++ .../src/main/resources/db/V9.0__resource_score.sql | 4 ++++ .../mapper/resourceScore/ResourceScoreDao.xml | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 renren-admin/src/main/resources/db/V9.0__resource_score.sql diff --git a/renren-admin/src/main/java/io/renren/modules/resourceScore/dto/ResourceScoreDTO.java b/renren-admin/src/main/java/io/renren/modules/resourceScore/dto/ResourceScoreDTO.java index 0648fd4f..186531cd 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceScore/dto/ResourceScoreDTO.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceScore/dto/ResourceScoreDTO.java @@ -30,6 +30,12 @@ public class ResourceScoreDTO implements Serializable { private Long resourceId; @ApiModelProperty(value = "评分,1-5分,1分差评,5分好评") private Integer score; + @ApiModelProperty(value = "质量评分,1-5分,1分差评,5分好评") + private Integer qualityScore; + @ApiModelProperty(value = "算法准确,1-5分,1分差评,5分好评") + private Integer algorithmExactScore; + @ApiModelProperty(value = "组件服务质量,1-5分,1分差评,5分好评") + private Integer assemblyQualityScore; @ApiModelProperty(value = "评论内容") private String comment; @ApiModelProperty(value = "删除标志;0:正常;1:已删除") diff --git a/renren-admin/src/main/java/io/renren/modules/resourceScore/entity/ResourceScoreEntity.java b/renren-admin/src/main/java/io/renren/modules/resourceScore/entity/ResourceScoreEntity.java index 7e075ad1..9dcbaa09 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceScore/entity/ResourceScoreEntity.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceScore/entity/ResourceScoreEntity.java @@ -38,6 +38,18 @@ public class ResourceScoreEntity { * 评分,1-5分,1分差评,5分好评 */ private Integer score; + /** + * 质量评分 + */ + private Integer qualityScore; + /** + * 算法准确 + */ + private Integer algorithmExactScore; + /** + * 组件服务质量 + */ + private Integer assemblyQualityScore; /** * 评论内容 */ diff --git a/renren-admin/src/main/resources/db/V9.0__resource_score.sql b/renren-admin/src/main/resources/db/V9.0__resource_score.sql new file mode 100644 index 00000000..74b5ae09 --- /dev/null +++ b/renren-admin/src/main/resources/db/V9.0__resource_score.sql @@ -0,0 +1,4 @@ +ALTER TABLE `tb_resource_score` +ADD COLUMN `quality_score` int NULL COMMENT '质量评分', +ADD COLUMN `algorithm_exact_score` int NULL COMMENT '算法准确', +ADD COLUMN `assembly_quality_score` int NULL COMMENT '组件服务质量'; \ No newline at end of file diff --git a/renren-admin/src/main/resources/mapper/resourceScore/ResourceScoreDao.xml b/renren-admin/src/main/resources/mapper/resourceScore/ResourceScoreDao.xml index c3ac0f3f..4dc28efd 100644 --- a/renren-admin/src/main/resources/mapper/resourceScore/ResourceScoreDao.xml +++ b/renren-admin/src/main/resources/mapper/resourceScore/ResourceScoreDao.xml @@ -8,6 +8,9 @@ + + +