fix(oa): 修复产品列表查询问题

- 在 GearProductMapper.xml 中添加产品分类的删除标志过滤条件
- 在 GearProductServiceImpl 中添加产品删除标志的查询条件
- 优化产品插入和更新逻辑,使用 Hutool 的 BeanUtil 进行对象转换
- 新增 validEntityBeforeSave 方法用于保存前的数据校验
This commit is contained in:
2025-09-02 16:53:32 +08:00
parent bb28f02aa8
commit d64a66e0fe
2 changed files with 15 additions and 7 deletions

View File

@@ -41,7 +41,7 @@
p.remark AS remark
FROM
gear_product p
Left join gear_product_category c on p.category_id = c.category_id
Left join gear_product_category c on p.category_id = c.category_id and c.del_flag = 0
${ew.customSqlSegment}
</select>