From e38b54037fb3e2a7e2014c0f1931d026ac6f6972 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 07 四月 2026 17:59:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/yagwly_fa_master' into yagwly_fa_master

---
 tms/src/main/resources/mapper/tms/PayableAuditLogMapper.xml |  113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 113 insertions(+), 0 deletions(-)

diff --git a/tms/src/main/resources/mapper/tms/PayableAuditLogMapper.xml b/tms/src/main/resources/mapper/tms/PayableAuditLogMapper.xml
new file mode 100644
index 0000000..86c3f34
--- /dev/null
+++ b/tms/src/main/resources/mapper/tms/PayableAuditLogMapper.xml
@@ -0,0 +1,113 @@
+<?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.tms.mapper.PayableAuditLogMapper">
+
+    <resultMap type="com.ruoyi.tms.domain.PayableAuditLog" id="PayableAuditLogResult">
+        <result property="id"    column="id"    />
+        <result property="headId"    column="head_id"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="operation"    column="operation"    />
+    </resultMap>
+
+    <sql id="selectPayableAuditLogVo">
+        select thisTab.id, thisTab.head_id, thisTab.create_by, thisTab.create_time, thisTab.operation from payable_audit_log AS thisTab
+    </sql>
+    <sql id="selectPayableAuditLogVoCount">
+        select count(0) from payable_audit_log as thisTab
+    </sql>
+
+    <sql id="whereCondition">
+        <if test="headId != null "> and thisTab.head_id = #{headId}</if>
+        <if test="operation != null  and operation != ''"> and thisTab.operation = #{operation}</if>
+    </sql>
+
+    <!--鏌ヨ-->
+    <select id="selectPayableAuditLogById" parameterType="Integer" resultMap="PayableAuditLogResult">
+        <include refid="selectPayableAuditLogVo"/>
+        where id = #{id}
+    </select>
+
+    <select id="selectPayableAuditLogCount" parameterType="com.ruoyi.tms.domain.PayableAuditLog" resultType="int">
+        <include refid="selectPayableAuditLogVoCount"/>
+        <where>
+            <include refid="whereCondition"/>
+        </where>
+    </select>
+
+    <select id="selectPayableAuditLogList" parameterType="com.ruoyi.tms.domain.PayableAuditLog" resultMap="PayableAuditLogResult">
+        <include refid="selectPayableAuditLogVo"/>
+        <where>
+            <include refid="whereCondition"/>
+        </where>
+        order by thisTab.id desc
+    </select>
+
+    <!-- 鏂板 -->
+    <insert id="insertPayableAuditLog" parameterType="com.ruoyi.tms.domain.PayableAuditLog"  useGeneratedKeys="true" keyProperty="id">
+        insert into payable_audit_log
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="headId != null">head_id,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="operation != null">operation,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="headId != null">#{headId},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="operation != null">#{operation},</if>
+         </trim>
+    </insert>
+
+    <insert id="insertPayableAuditLogBatch" parameterType="java.util.List"  useGeneratedKeys="true" keyProperty="id">
+        insert into payable_audit_log
+        <trim prefix="(" suffix=") values" suffixOverrides=",">
+            id,head_id,create_by,create_time,operation,
+        </trim>
+        <foreach item="item" index="index" collection="list" separator=",">
+            <trim prefix="(" suffix=") " suffixOverrides=",">
+                #{item.id},#{item.headId},#{item.createBy},#{item.createTime},#{item.operation},
+            </trim>
+        </foreach>
+    </insert>
+
+    <!-- 淇敼 -->
+    <update id="updatePayableAuditLog" parameterType="com.ruoyi.tms.domain.PayableAuditLog">
+        update payable_audit_log
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="headId != null">head_id = #{headId},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="operation != null">operation = #{operation},</if>
+        </trim>
+        where id = #{id}
+    </update>
+    <!-- 淇敼 -->
+    <update id="updatePayableAuditLogBatch" parameterType="java.util.List">
+        <foreach collection="list" item="item" index="index" separator=";">
+            update payable_audit_log
+            <trim prefix="SET" suffixOverrides=",">
+                <if test="item.headId != null">head_id = #{item.headId},</if>
+                <if test="item.createBy != null">create_by = #{item.createBy},</if>
+                <if test="item.createTime != null">create_time = #{item.createTime},</if>
+                <if test="item.operation != null">operation = #{item.operation},</if>
+            </trim>
+        where id = #{item.id}
+        </foreach>
+    </update>
+
+    <!--鍒犻櫎-->
+    <delete id="deletePayableAuditLogById" parameterType="Integer">
+        delete from payable_audit_log where id = #{id}
+    </delete>
+    <delete id="deletePayableAuditLogByIds" parameterType="Integer">
+        delete from payable_audit_log where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>
\ No newline at end of file

--
Gitblit v1.8.0