123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?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.emato.cuspay.dao.mapper.MerchCusCfgMapper" >
- <resultMap id="BaseResultMap" type="com.emato.cuspay.dao.data.MerchCusCfg" >
- <id column="cus_cfg_sn" property="cusCfgSn" jdbcType="VARCHAR" />
- <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
- <result column="cus_flag" property="cusFlag" jdbcType="VARCHAR" />
- <result column="is_valid" property="isValid" jdbcType="CHAR" />
- <result column="remark" property="remark" jdbcType="VARCHAR" />
- <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
- <result column="create_time" property="createTime" jdbcType="VARCHAR" />
- <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
- <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
- <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Base_Column_List" >
- cus_cfg_sn, merch_sn, cus_flag, is_valid, remark, creater_sn, create_time, moder_sn,
- mod_time, tstm
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from merch_cus_cfg
- where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from merch_cus_cfg
- where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
- </delete>
- <insert id="insertSelective" parameterType="com.emato.cuspay.dao.data.MerchCusCfg" >
- insert into merch_cus_cfg
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="cusCfgSn != null" >
- cus_cfg_sn,
- </if>
- <if test="merchSn != null" >
- merch_sn,
- </if>
- <if test="cusFlag != null" >
- cus_flag,
- </if>
- <if test="isValid != null" >
- is_valid,
- </if>
- <if test="remark != null" >
- remark,
- </if>
- <if test="createrSn != null" >
- creater_sn,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="moderSn != null" >
- moder_sn,
- </if>
- <if test="modTime != null" >
- mod_time,
- </if>
- <if test="tstm != null" >
- tstm,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="cusCfgSn != null" >
- #{cusCfgSn,jdbcType=VARCHAR},
- </if>
- <if test="merchSn != null" >
- #{merchSn,jdbcType=VARCHAR},
- </if>
- <if test="cusFlag != null" >
- #{cusFlag,jdbcType=VARCHAR},
- </if>
- <if test="isValid != null" >
- #{isValid,jdbcType=CHAR},
- </if>
- <if test="remark != null" >
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="moderSn != null" >
- #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- #{modTime,jdbcType=VARCHAR},
- </if>
- <if test="tstm != null" >
- #{tstm,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.dao.data.MerchCusCfg" >
- update merch_cus_cfg
- <set >
- <if test="merchSn != null" >
- merch_sn = #{merchSn,jdbcType=VARCHAR},
- </if>
- <if test="cusFlag != null" >
- cus_flag = #{cusFlag,jdbcType=VARCHAR},
- </if>
- <if test="isValid != null" >
- is_valid = #{isValid,jdbcType=CHAR},
- </if>
- <if test="remark != null" >
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createrSn != null" >
- creater_sn = #{createrSn,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=VARCHAR},
- </if>
- <if test="moderSn != null" >
- moder_sn = #{moderSn,jdbcType=VARCHAR},
- </if>
- <if test="modTime != null" >
- mod_time = #{modTime,jdbcType=VARCHAR},
- </if>
- <if test="tstm != null" >
- tstm = #{tstm,jdbcType=TIMESTAMP},
- </if>
- </set>
- where cus_cfg_sn = #{cusCfgSn,jdbcType=VARCHAR}
- </update>
- </mapper>
|