feat(gear-oa): 调整订单查询逻辑并优化相关VO字段导出配置
移除了 gear_product 表关联时的 del_flag 条件限制,新增了 selectVoPagePlus方法以支持更灵活的订单分页查询。同时在多个 VO 类中移除了不必要的 @ExcelProperty 注解,避免冗余数据导出。
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
p.product_name AS productName,
|
||||
p.product_code AS productCode
|
||||
FROM gear_order_detail d
|
||||
LEFT JOIN gear_product p ON d.product_id = p.product_id AND p.del_flag = 0
|
||||
LEFT JOIN gear_product p ON d.product_id = p.product_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user