<?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.cwgl.mapper.ReceivableFeeManagementLogMapper">
|
|
<resultMap type="com.ruoyi.cwgl.domain.ReceivableFeeManagementLog" id="ReceivableFeeManagementLogResult">
|
<result property="id" column="id" />
|
<result property="receivableFeeId" column="receivable_fee_id" />
|
<result property="operator" column="operator" />
|
<result property="operationTime" column="operation_time" />
|
<result property="operationDesc" column="operation_desc" />
|
<result property="createTime" column="create_time" />
|
</resultMap>
|
|
<sql id="selectReceivableFeeManagementLogVo">
|
select thisTab.id, thisTab.receivable_fee_id, thisTab.operator, thisTab.operation_time, thisTab.operation_desc, thisTab.create_time from receivable_fee_management_log AS thisTab
|
</sql>
|
<sql id="selectReceivableFeeManagementLogVoCount">
|
select count(0) from receivable_fee_management_log as thisTab
|
</sql>
|
|
<sql id="whereCondition">
|
<if test="receivableFeeId != null "> and thisTab.receivable_fee_id = #{receivableFeeId}</if>
|
<if test="operator != null and operator != ''"> and thisTab.operator = #{operator}</if>
|
<if test="operationTime != null "> and thisTab.operation_time = #{operationTime}</if>
|
<if test="operationDesc != null and operationDesc != ''"> and thisTab.operation_desc = #{operationDesc}</if>
|
</sql>
|
|
<!--查询-->
|
<select id="selectReceivableFeeManagementLogById" parameterType="Integer" resultMap="ReceivableFeeManagementLogResult">
|
<include refid="selectReceivableFeeManagementLogVo"/>
|
where id = #{id}
|
</select>
|
|
<select id="selectReceivableFeeManagementLogCount" parameterType="com.ruoyi.cwgl.domain.ReceivableFeeManagementLog" resultType="int">
|
<include refid="selectReceivableFeeManagementLogVoCount"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
</select>
|
|
<select id="selectReceivableFeeManagementLogList" parameterType="com.ruoyi.cwgl.domain.ReceivableFeeManagementLog" resultMap="ReceivableFeeManagementLogResult">
|
<include refid="selectReceivableFeeManagementLogVo"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
order by thisTab.id desc
|
</select>
|
|
<!-- 新增 -->
|
<insert id="insertReceivableFeeManagementLog" parameterType="com.ruoyi.cwgl.domain.ReceivableFeeManagementLog" useGeneratedKeys="true" keyProperty="id">
|
insert into receivable_fee_management_log
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="receivableFeeId != null">receivable_fee_id,</if>
|
<if test="operator != null and operator != ''">operator,</if>
|
<if test="operationTime != null">operation_time,</if>
|
<if test="operationDesc != null and operationDesc != ''">operation_desc,</if>
|
<if test="createTime != null">create_time,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="receivableFeeId != null">#{receivableFeeId},</if>
|
<if test="operator != null and operator != ''">#{operator},</if>
|
<if test="operationTime != null">#{operationTime},</if>
|
<if test="operationDesc != null and operationDesc != ''">#{operationDesc},</if>
|
<if test="createTime != null">#{createTime},</if>
|
</trim>
|
</insert>
|
|
<insert id="insertReceivableFeeManagementLogBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
|
insert into receivable_fee_management_log
|
<trim prefix="(" suffix=") values" suffixOverrides=",">
|
id,receivable_fee_id,operator,operation_time,operation_desc,create_time,
|
</trim>
|
<foreach item="item" index="index" collection="list" separator=",">
|
<trim prefix="(" suffix=") " suffixOverrides=",">
|
#{item.id},#{item.receivableFeeId},#{item.operator},#{item.operationTime},#{item.operationDesc},#{item.createTime},
|
</trim>
|
</foreach>
|
</insert>
|
|
<!-- 修改 -->
|
<update id="updateReceivableFeeManagementLog" parameterType="com.ruoyi.cwgl.domain.ReceivableFeeManagementLog">
|
update receivable_fee_management_log
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="receivableFeeId != null">receivable_fee_id = #{receivableFeeId},</if>
|
<if test="operator != null and operator != ''">operator = #{operator},</if>
|
<if test="operationTime != null">operation_time = #{operationTime},</if>
|
<if test="operationDesc != null and operationDesc != ''">operation_desc = #{operationDesc},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
<!-- 修改 -->
|
<update id="updateReceivableFeeManagementLogBatch" parameterType="java.util.List">
|
<foreach collection="list" item="item" index="index" separator=";">
|
update receivable_fee_management_log
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="item.receivableFeeId != null">receivable_fee_id = #{item.receivableFeeId},</if>
|
<if test="item.operator != null and item.operator != ''">operator = #{item.operator},</if>
|
<if test="item.operationTime != null">operation_time = #{item.operationTime},</if>
|
<if test="item.operationDesc != null and item.operationDesc != ''">operation_desc = #{item.operationDesc},</if>
|
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
</trim>
|
where id = #{item.id}
|
</foreach>
|
</update>
|
|
<!--删除-->
|
<delete id="deleteReceivableFeeManagementLogById" parameterType="Integer">
|
delete from receivable_fee_management_log where id = #{id}
|
</delete>
|
<delete id="deleteReceivableFeeManagementLogByIds" parameterType="Integer">
|
delete from receivable_fee_management_log where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|