feat(crm): 修改订单查询功能
- 添加CrmOrderMapper接口方法selectVoPagePlus - 实现对应的XML查询语句,支持联表查询客户名称 - 在CrmOrderServiceImpl中实现新的分页查询逻辑 - 引入QueryWrapper构建动态查询条件 - 增加客户名称字段到CrmOrderVo视图对象 - 优化查询性能,支持复杂条件筛选和排序
This commit is contained in:
@@ -25,6 +25,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.klp.crm.domain.vo.CrmOrderVo">
|
||||
SELECT
|
||||
order_id AS orderId,
|
||||
order_code AS orderCode,
|
||||
order_type AS orderType,
|
||||
customer_id AS customerId,
|
||||
order_amount AS orderAmount,
|
||||
salesman,
|
||||
delivery_date AS deliveryDate,
|
||||
pre_order_status AS preOrderStatus,
|
||||
audit_user AS auditUser,
|
||||
audit_time AS auditTime,
|
||||
order_status AS orderStatus,
|
||||
finance_status AS financeStatus,
|
||||
unpaid_amount AS unpaidAmount,
|
||||
remark,
|
||||
create_by AS createBy,
|
||||
create_time AS createTime,
|
||||
update_by AS updateBy,
|
||||
update_time AS updateTime,
|
||||
cu.customer_name AS customerName
|
||||
FROM crm_order co
|
||||
LEFT JOIN crm_customer cu ON co.customer_id = cu.customer_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user