支付
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
<?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.zhwl.statistics.mapper.ZdyExportInfoMapper">
|
||||
|
||||
<resultMap type="ZdyExportInfo" id="ZdyExportInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="filed" column="filed"/>
|
||||
<result property="label" column="label"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="checked" column="checked"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZdyExportInfoVo">
|
||||
select id, filed, label, type, checked, create_time, create_by, update_time, update_by from zdy_export_info
|
||||
</sql>
|
||||
|
||||
<select id="selectZdyExportInfoList" parameterType="ZdyExportInfo" resultMap="ZdyExportInfoResult">
|
||||
<include refid="selectZdyExportInfoVo"/>
|
||||
<where>
|
||||
<if test="filed != null and filed != ''">and filed = #{filed}</if>
|
||||
<if test="label != null and label != ''">and label = #{label}</if>
|
||||
<if test="type != null and type != ''">and type = #{type}</if>
|
||||
<if test="checked != null and checked != ''">and checked = #{checked}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectZdyExportInfoById" parameterType="Long" resultMap="ZdyExportInfoResult">
|
||||
<include refid="selectZdyExportInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertZdyExportInfo" parameterType="ZdyExportInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into zdy_export_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="filed != null">filed,</if>
|
||||
<if test="label != null">label,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="checked != null">checked,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="filed != null">#{filed},</if>
|
||||
<if test="label != null">#{label},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="checked != null">#{checked},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateZdyExportInfo" parameterType="ZdyExportInfo">
|
||||
update zdy_export_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="filed != null">filed = #{filed},</if>
|
||||
<if test="label != null">label = #{label},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="checked != null">checked = #{checked},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteZdyExportInfoById" parameterType="Long">
|
||||
delete from zdy_export_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteZdyExportInfoByIds" parameterType="String">
|
||||
delete from zdy_export_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user