|
@@ -0,0 +1,77 @@
|
|
|
+<?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.anpin.mapper.TMonthEndingClosingMapper">
|
|
|
+
|
|
|
+ <resultMap type="TMonthEndingClosing" id="TMonthEndingClosingResult">
|
|
|
+ <result property="fId" column="f_id" />
|
|
|
+ <result property="fYear" column="f_year" />
|
|
|
+ <result property="fMonth" column="f_month" />
|
|
|
+ <result property="fStart" column="f_start" />
|
|
|
+ <result property="fEnf" column="f_enf" />
|
|
|
+ <result property="fStatus" column="f_status" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTMonthEndingClosingVo">
|
|
|
+ select f_id, f_year, f_month, f_start, f_enf, f_status from t_month_ending_closing
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTMonthEndingClosingList" parameterType="TMonthEndingClosing" resultMap="TMonthEndingClosingResult">
|
|
|
+ <include refid="selectTMonthEndingClosingVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="fYear != null and fYear != ''"> and f_year = #{fYear}</if>
|
|
|
+ <if test="fMonth != null and fMonth != ''"> and f_month = #{fMonth}</if>
|
|
|
+ <if test="fStart != null "> and f_start = #{fStart}</if>
|
|
|
+ <if test="fEnf != null "> and f_enf = #{fEnf}</if>
|
|
|
+ <if test="fStatus != null and fStatus != ''"> and f_status = #{fStatus}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTMonthEndingClosingById" parameterType="Long" resultMap="TMonthEndingClosingResult">
|
|
|
+ <include refid="selectTMonthEndingClosingVo"/>
|
|
|
+ where f_id = #{fId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTMonthEndingClosing" parameterType="TMonthEndingClosing" useGeneratedKeys="true" keyProperty="fId">
|
|
|
+ insert into t_month_ending_closing
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fYear != null">f_year,</if>
|
|
|
+ <if test="fMonth != null">f_month,</if>
|
|
|
+ <if test="fStart != null">f_start,</if>
|
|
|
+ <if test="fEnf != null">f_enf,</if>
|
|
|
+ <if test="fStatus != null">f_status,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fYear != null">#{fYear},</if>
|
|
|
+ <if test="fMonth != null">#{fMonth},</if>
|
|
|
+ <if test="fStart != null">#{fStart},</if>
|
|
|
+ <if test="fEnf != null">#{fEnf},</if>
|
|
|
+ <if test="fStatus != null">#{fStatus},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTMonthEndingClosing" parameterType="TMonthEndingClosing">
|
|
|
+ update t_month_ending_closing
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="fYear != null">f_year = #{fYear},</if>
|
|
|
+ <if test="fMonth != null">f_month = #{fMonth},</if>
|
|
|
+ <if test="fStart != null">f_start = #{fStart},</if>
|
|
|
+ <if test="fEnf != null">f_enf = #{fEnf},</if>
|
|
|
+ <if test="fStatus != null">f_status = #{fStatus},</if>
|
|
|
+ </trim>
|
|
|
+ where f_id = #{fId}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteTMonthEndingClosingById" parameterType="Long">
|
|
|
+ delete from t_month_ending_closing where f_id = #{fId}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTMonthEndingClosingByIds" parameterType="String">
|
|
|
+ delete from t_month_ending_closing where f_id in
|
|
|
+ <foreach item="fId" collection="array" open="(" separator="," close=")">
|
|
|
+ #{fId}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|