|
@@ -0,0 +1,121 @@
|
|
|
+<?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.ygj.yuemum.dao.customer.CustomerInfoServiceLogMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.customer.CustomerInfoServiceLog" >
|
|
|
+ <result column="id" property="id" />
|
|
|
+ <result column="sl_no" property="sl_no" />
|
|
|
+ <result column="sl_table" property="sl_table" />
|
|
|
+ <result column="sl_createdate" property="sl_createdate" />
|
|
|
+ <result column="sl_comment" property="sl_comment" />
|
|
|
+ <result column="sl_userid" property="sl_userid" />
|
|
|
+ <result column="sl_username" property="sl_username" />
|
|
|
+ <result column="sl_type" property="sl_type" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,
|
|
|
+ sl_no,
|
|
|
+ sl_table,
|
|
|
+ sl_createdate,
|
|
|
+ sl_comment,
|
|
|
+ sl_userid,
|
|
|
+ sl_username,
|
|
|
+ sl_type
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <insert id="insert" useGeneratedKeys="true" keyColumn="id" keyProperty="id" parameterType="com.ygj.yuemum.domain.customer.CustomerInfoServiceLog">
|
|
|
+ INSERT INTO customer_info_servicelog
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != sl_no'>
|
|
|
+ sl_no,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_table'>
|
|
|
+ sl_table,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_createdate'>
|
|
|
+ sl_createdate,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_comment'>
|
|
|
+ sl_comment,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_userid'>
|
|
|
+ sl_userid,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_username'>
|
|
|
+ sl_username,
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_type'>
|
|
|
+ sl_type
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test ='null != sl_no'>
|
|
|
+ #{sl_no},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_table'>
|
|
|
+ #{sl_table},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_createdate'>
|
|
|
+ #{sl_createdate},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_comment'>
|
|
|
+ #{sl_comment},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_userid'>
|
|
|
+ #{sl_userid},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_username'>
|
|
|
+ #{sl_username},
|
|
|
+ </if>
|
|
|
+ <if test ='null != sl_type'>
|
|
|
+ #{sl_type}
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <delete id="delete" >
|
|
|
+ DELETE FROM customer_info_servicelog
|
|
|
+ WHERE id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <update id="update" parameterType="com.ygj.yuemum.domain.customer.CustomerInfoServiceLog">
|
|
|
+ UPDATE customer_info_servicelog
|
|
|
+ <set>
|
|
|
+ <if test ='null != sl_no'>sl_no = #{sl_no},</if>
|
|
|
+ <if test ='null != sl_table'>sl_table = #{sl_table},</if>
|
|
|
+ <if test ='null != sl_createdate'>sl_createdate = #{sl_createdate},</if>
|
|
|
+ <if test ='null != sl_comment'>sl_comment = #{sl_comment},</if>
|
|
|
+ <if test ='null != sl_userid'>sl_userid = #{sl_userid},</if>
|
|
|
+ <if test ='null != sl_username'>sl_username = #{sl_username},</if>
|
|
|
+ <if test ='null != sl_type'>sl_type = #{sl_type}</if>
|
|
|
+ </set>
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="load" resultMap="BaseResultMap">
|
|
|
+ SELECT <include refid="Base_Column_List" />
|
|
|
+ FROM customer_info_servicelog
|
|
|
+ WHERE id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="loadBySlNo" resultMap="BaseResultMap">
|
|
|
+ SELECT <include refid="Base_Column_List" />
|
|
|
+ FROM customer_info_servicelog
|
|
|
+ WHERE sl_no = #{sl_no}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="pageList" resultMap="BaseResultMap">
|
|
|
+ SELECT <include refid="Base_Column_List" />
|
|
|
+ FROM customer_info_servicelog
|
|
|
+ LIMIT #{offset}, #{pageSize}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="pageListCount" resultType="java.lang.Integer">
|
|
|
+ SELECT count(1)
|
|
|
+ FROM customer_info_servicelog
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|