feat(gear-oa): 调整订单查询逻辑并优化相关VO字段导出配置

移除了 gear_product 表关联时的 del_flag 条件限制,新增了 selectVoPagePlus方法以支持更灵活的订单分页查询。同时在多个 VO 类中移除了不必要的
@ExcelProperty 注解,避免冗余数据导出。
This commit is contained in:
2025-09-22 16:48:23 +08:00
parent f51731113f
commit b8e4e64802
7 changed files with 38 additions and 6 deletions

View File

@@ -39,6 +39,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join gear_customer c on o.customer_id = c.customer_id and c.del_flag = 0
${ew.customSqlSegment}
</select>
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.GearOrderVo">
select o.order_id,
o.order_code,
o.customer_id,
o.sales_manager,
o.order_status,
o.remark,
o.del_flag,
o.create_time,
o.create_by,
o.update_time,
o.update_by,
o.tax_amount,
o.no_tax_amount,
c.name as customerName
from gear_order o
left join gear_customer c on o.customer_id = c.customer_id and c.del_flag = 0
${ew.customSqlSegment}
</select>
</mapper>