• 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
    Lyin-OTTF authored
     
    Browse Dir »







  • 新建商品开多规格开关(specType=true)但不传规格列表时,validateSkuList
    收集到的 propertyIds 为空集合,getPropertyList 走 selectByIds 生成
    IN() 非法 SQL 直接 500(A33)。
    
    补空集合短路:propertyIds 为空时抛新增业务错误 SKU_PROPERTIES_EMPTY
    (1_008_006_005) 明确拒绝,不再崩到 SQL 层。
    dadiyang authored
     
    Browse Dir »
  • 商品/SKU 允许填负价格并保存成功(A19):ProductSkuSaveReqVO 的
    price/marketPrice/costPrice/firstBrokeragePrice/secondBrokeragePrice
    均无下限校验,管理端前端 el-input-number min=0 恰好掩盖后端缺口,
    绕过前端(直接接口/H5/第三方)即可写入负价。
    
    给五个价格字段补 @Min(0),后端校验层统一拒绝非正价格(SPU 创建/
    更新经 skus 的 @Valid 级联一并生效)。
    dadiyang authored
     
    Browse Dir »
  • 更新类目时把 parentId 设成分类自身的 id 可保存成功(一级类目自身
    通过'父分类不能是二级分类'校验后放行),形成循环层级(A53);
    创建路径父级必须是已存在分类,天然挡死。
    
    updateCategory 补环检测:parentId==id 时抛新增业务错误
    CATEGORY_PARENT_IS_SELF (1_008_001_006)。
    dadiyang authored
     
    Browse Dir »