From bd375f4fe8081c0ca612d72ed06c47ab3f89d68d Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Wed, 02 Jul 2025 16:37:47 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/pxb'

---
 oying-system/src/main/resources/mapper/rider/RiderInfoMapper.xml |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/rider/RiderInfoMapper.xml b/oying-system/src/main/resources/mapper/rider/RiderInfoMapper.xml
new file mode 100644
index 0000000..0f69658
--- /dev/null
+++ b/oying-system/src/main/resources/mapper/rider/RiderInfoMapper.xml
@@ -0,0 +1,57 @@
+<?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.oying.modules.rider.mapper.RiderInfoMapper">
+    <resultMap id="BaseResultMap" type="com.oying.modules.rider.domain.RiderInfo">
+        <id column="info_id" property="infoId"/>
+        <result column="rider_id" property="riderId"/>
+        <result column="source_id" property="sourceId"/>
+        <result column="phone" property="phone"/>
+        <result column="card_name" property="cardName"/>
+        <result column="card_num" property="cardNum"/>
+        <result column="source_num" property="sourceNum"/>
+        <result column="enabled" property="enabled"/>
+        <result column="source_platform" property="sourcePlatform"/>
+        <result column="address" property="address"/>
+        <result column="create_by" property="createBy"/>
+        <result column="update_by" property="updateBy"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        info_id, rider_id, source_id, phone, card_name, card_num, source_num, enabled, source_platform, address, create_by, update_by, create_time, update_time
+    </sql>
+
+    <select id="findAll" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from qs_rider_info
+        <where>
+            <if test="criteria.riderId != null">
+                and rider_id = #{criteria.riderId}
+            </if>
+            <if test="criteria.sourceId != null">
+                and source_id = #{criteria.sourceId}
+            </if>
+            <if test="criteria.phone != null">
+                and phone = #{criteria.phone}
+            </if>
+            <if test="criteria.cardName != null">
+                and card_name like concat('%',#{criteria.cardName},'%')
+            </if>
+            <if test="criteria.cardNum != null">
+                and card_num = #{criteria.cardNum}
+            </if>
+            <if test="criteria.sourceNum != null">
+                and source_num = #{criteria.sourceNum}
+            </if>
+            <if test="criteria.enabled != null">
+                and enabled = #{criteria.enabled}
+            </if>
+            <if test="criteria.sourcePlatform != null">
+                and source_platform = #{criteria.sourcePlatform}
+            </if>
+        </where>
+        order by info_id desc
+    </select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3