From fec6c1c27cc4333f1f3b39bd09bd3f4cc201772b Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期日, 10 五月 2026 11:31:22 +0800
Subject: [PATCH] fix: 开票台账创建日期相同未保证排序
---
src/main/resources/mapper/basic/CustomerMapper.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/basic/CustomerMapper.xml b/src/main/resources/mapper/basic/CustomerMapper.xml
new file mode 100644
index 0000000..4a29e94
--- /dev/null
+++ b/src/main/resources/mapper/basic/CustomerMapper.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.basic.mapper.CustomerMapper">
+
+ <select id="selectCustomerDtoListByIds" resultType="com.ruoyi.basic.excel.CustomerExcelDTO">
+ SELECT
+ c.customer_name AS customerName,
+ c.taxpayer_identification_number AS taxpayerIdentificationNumber,
+ c.company_address AS companyAddress,
+ c.company_phone AS companyPhone,
+ c.contact_person AS contactPerson,
+ c.contact_phone AS contactPhone,
+ c.maintainer AS maintainer,
+ c.basic_bank_account AS basicBankAccount,
+ c.bank_account AS bankAccount,
+ c.bank_code AS bankCode,
+ cfu.follow_up_time AS followUpTime,
+ cfu.follow_up_method AS followUpMethod,
+ cfu.follow_up_level AS followUpLevel,
+ cfu.follower_user_name AS followerUserName,
+ cfu.content AS content
+ FROM customer c
+ LEFT JOIN customer_follow_up cfu ON c.id = cfu.customer_id
+ WHERE c.id IN
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ ORDER BY c.create_user
+ </select>
+
+ <select id="selectCustomerDtoLists" resultType="com.ruoyi.basic.excel.CustomerExcelDTO">
+ SELECT
+ c.customer_name AS customerName,
+ c.taxpayer_identification_number AS taxpayerIdentificationNumber,
+ c.company_address AS companyAddress,
+ c.company_phone AS companyPhone,
+ c.contact_person AS contactPerson,
+ c.contact_phone AS contactPhone,
+ c.maintainer AS maintainer,
+ c.basic_bank_account AS basicBankAccount,
+ c.bank_account AS bankAccount,
+ c.bank_code AS bankCode,
+ cfu.follow_up_time AS followUpTime,
+ cfu.follow_up_method AS followUpMethod,
+ cfu.follow_up_level AS followUpLevel,
+ cfu.follower_user_name AS followerUserName,
+ cfu.content AS content
+ FROM
+ customer c
+ LEFT JOIN customer_follow_up cfu ON c.id = cfu.customer_id
+ ORDER BY
+ c.create_user
+ </select>
+
+</mapper>
--
Gitblit v1.9.3