From e281e3710c5a0c3c7d7596f00cd1cc6945da7f0b Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 29 九月 2026 19:48:21 +0800
Subject: [PATCH] 修改VIN码模块
---
ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml
index 7550239..25964a5 100644
--- a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml
+++ b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml
@@ -10,10 +10,13 @@
<if test="query != null and query.status != null">AND status = #{query.status}</if>
<if test="query != null and query.companyId != null">AND company_id = #{query.companyId}</if>
<if test="query != null and query.fleetId != null">AND fleet_id = #{query.fleetId}</if>
+ <if test="query != null and query.beginTime != null and query.beginTime != ''">AND create_time >= #{query.beginTime}</if>
+ <if test="query != null and query.endTime != null and query.endTime != ''">AND create_time <= #{query.endTime}</if>
ORDER BY create_time DESC, id DESC
</select>
<select id="selectExportList" resultType="com.ruoyi.account.api.dto.VinManagementExcelDTO">
- SELECT vin, plate_number AS plateNumber, phone, company_name AS companyName, remark, status
+ SELECT vin, plate_number AS plateNumber, phone, company_name AS companyName,
+ company_id AS companyId, fleet_id AS fleetId, balance, status
FROM t_vin_management WHERE del_flag = 0
<if test="query != null and query.vin != null and query.vin != ''">AND vin LIKE CONCAT('%', #{query.vin}, '%')</if>
<if test="query != null and query.plateNumber != null and query.plateNumber != ''">AND plate_number LIKE CONCAT('%', #{query.plateNumber}, '%')</if>
@@ -21,6 +24,8 @@
<if test="query != null and query.status != null">AND status = #{query.status}</if>
<if test="query != null and query.companyId != null">AND company_id = #{query.companyId}</if>
<if test="query != null and query.fleetId != null">AND fleet_id = #{query.fleetId}</if>
+ <if test="query != null and query.beginTime != null and query.beginTime != ''">AND create_time >= #{query.beginTime}</if>
+ <if test="query != null and query.endTime != null and query.endTime != ''">AND create_time <= #{query.endTime}</if>
ORDER BY create_time DESC, id DESC
</select>
<select id="countByVin" resultType="int">SELECT COUNT(1) FROM t_vin_management WHERE vin = #{vin}<if test="excludeId != null"> AND id != #{excludeId}</if></select>
--
Gitblit v1.7.1