Commit ad9e7f70 by 张富康

fix(database): 修正客户邀请记录查询中的客户姓名字段映射

- 修复了客户姓名字段的显示逻辑,将ifnull条件中的字段顺序进行了调整
- 确保在查询结果中正确显示客户姓名信息
1 parent fc41df30
......@@ -362,7 +362,7 @@
<select id="listCustomerInviteRecord" resultMap="DTOResultMap">
select dclcir.id,dclcir.customer_id, dclcir.status, dclcir.invite_date, dclcir.customer_coupon_id,
ifnull(dclcc.customer_name, dclci.customer_name) as customer_name, dclci.customer_phone,
ifnull(dclci.customer_name, dclcc.customer_name) as customer_name, dclci.customer_phone,
dclci.car_brand_id, dclci.car_brand, dclci.car_childs_brand_id, dclci.car_childs_brand_name,
dclci.car_series_id, dclci.car_series_name, dclcc.coupon_name, dclcc.created_date as getCouponDate,
dclcc.user_id as issuerUserId, dclcc.employee_name, dclcc.coupon_type, dclcc.coupon_type_name,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!