From a7501803a3ca43310e57a5dd912e5047919c2e43 Mon Sep 17 00:00:00 2001
From: 彭雪彬 <1724387007@qq.com>
Date: Tue, 15 Jul 2025 15:26:55 +0800
Subject: [PATCH] Merge branch 'xin' into pxb

---
 oying-system/src/main/resources/mapper/pc/store/StoreAuditMapper.xml |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/resources/mapper/pc/store/StoreAuditMapper.xml b/oying-system/src/main/resources/mapper/pc/store/StoreAuditMapper.xml
new file mode 100644
index 0000000..12cfa20
--- /dev/null
+++ b/oying-system/src/main/resources/mapper/pc/store/StoreAuditMapper.xml
@@ -0,0 +1,37 @@
+<?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.pc.store.mapper.StoreAuditMapper">
+    <resultMap id="BaseResultMap" type="com.oying.modules.pc.store.domain.StoreAudit">
+        <id column="audit_id" property="auditId"/>
+        <result column="store_id" property="storeId"/>
+        <result column="type" property="type"/>
+        <result column="status" property="status"/>
+        <result column="data" property="data"/>
+        <result column="reason" property="reason"/>
+        <result column="auditor" property="auditor"/>
+        <result column="audit_time" property="auditTime"/>
+        <result column="create_by" property="createBy"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_by" property="updateBy"/>
+        <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        audit_id, store_id, type, status, reason, auditor, audit_time, data, create_by, create_time, update_by, update_time
+    </sql>
+
+    <select id="findAll" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from pc_store_audit
+        <where>
+            <if test="criteria.storeId != null">
+                and store_id = #{criteria.storeId}
+            </if>
+            <if test="criteria.type != null and criteria.type != ''">
+                and type = #{criteria.type}
+            </if>
+        </where>
+        order by audit_id desc
+    </select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.3