Commit af697c004856b9b891459df155be678790dd8252

Authored by Lyin-OTTF
1 parent 7c397bbf

fix(product): declare propertyId as Long in the property value page query

ProductPropertyValuePageReqVO.propertyId was a String while the DO column and
ProductPropertyValueSaveReqVO are Long. MySQL coerces '100008' to a number
silently, but PostgreSQL rejects the comparison, so filtering property values by
property in the admin UI returned 500:

  ERROR: operator does not exist: bigint = character varying

Bind the query parameter as Long. Spring MVC converts "100008" without any change
on the frontend, and a non-numeric value now fails validation with 400 instead of
reaching the database.

Fixes #1293
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/admin/property/vo/value/ProductPropertyValuePageReqVO.java
@@ -13,7 +13,7 @@ import lombok.ToString; @@ -13,7 +13,7 @@ import lombok.ToString;
13 public class ProductPropertyValuePageReqVO extends PageParam { 13 public class ProductPropertyValuePageReqVO extends PageParam {
14 14
15 @Schema(description = "属性项的编号", example = "1024") 15 @Schema(description = "属性项的编号", example = "1024")
16 - private String propertyId; 16 + private Long propertyId;
17 17
18 @Schema(description = "名称", example = "红色") 18 @Schema(description = "名称", example = "红色")
19 private String name; 19 private String name;