Commit af697c004856b9b891459df155be678790dd8252
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
Showing
1 changed file
with
1 additions
and
1 deletions
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 | 13 | public class ProductPropertyValuePageReqVO extends PageParam { |
| 14 | 14 | |
| 15 | 15 | @Schema(description = "属性项的编号", example = "1024") |
| 16 | - private String propertyId; | |
| 16 | + private Long propertyId; | |
| 17 | 17 | |
| 18 | 18 | @Schema(description = "名称", example = "红色") |
| 19 | 19 | private String name; | ... | ... |