123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <?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.xinxin.topro.pubservice.mysqlmapper.ConsultationTeamMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
- <id column="DCT_ID" property="dctId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DCT_Name" property="dctName" jdbcType="VARCHAR" />
- <result column="DCT_Recordor" property="dctRecordor" jdbcType="VARCHAR" />
- <result column="DCT_Record_Time" property="dctRecordTime" jdbcType="TIMESTAMP" />
- <result column="DCT_IsDel" property="dctIsdel" jdbcType="INTEGER" />
- <result column="DCT_Type" property="dctType" jdbcType="INTEGER" />
- <result column="DCT_PinyinCode" property="dctPinyincode" jdbcType="VARCHAR" />
- <result column="DCT_WubiCode" property="dctWubicode" jdbcType="VARCHAR" />
- <result column="DCT_OtherCode" property="dctOthercode" jdbcType="VARCHAR" />
- <result column="DCT_Ward" property="dctWard" jdbcType="VARCHAR" />
- <result column="DCT_Dept" property="dctDept" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- DCT_ID, HI_ID, DCT_Name, DCT_Recordor, DCT_Record_Time, DCT_IsDel, DCT_Type, DCT_PinyinCode,
- DCT_WubiCode, DCT_OtherCode, DCT_Ward, DCT_Dept
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_consultation_team
- where DCT_IsDel = 0 and DCT_ID = #{dctId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_consultation_team
- where DCT_ID = #{dctId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
- insert into dic_consultation_team (DCT_ID, HI_ID, DCT_Name,
- DCT_Recordor, DCT_Record_Time, DCT_IsDel,
- DCT_Type, DCT_PinyinCode, DCT_WubiCode,
- DCT_OtherCode, DCT_Ward, DCT_Dept
- )
- values (#{dctId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{dctName,jdbcType=VARCHAR},
- #{dctRecordor,jdbcType=VARCHAR}, #{dctRecordTime,jdbcType=TIMESTAMP}, #{dctIsdel,jdbcType=INTEGER},
- #{dctType,jdbcType=INTEGER}, #{dctPinyincode,jdbcType=VARCHAR}, #{dctWubicode,jdbcType=VARCHAR},
- #{dctOthercode,jdbcType=VARCHAR}, #{dctWard,jdbcType=VARCHAR}, #{dctDept,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
- insert into dic_consultation_team
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="dctId != null" >
- DCT_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="dctName != null" >
- DCT_Name,
- </if>
- <if test="dctRecordor != null" >
- DCT_Recordor,
- </if>
- <if test="dctRecordTime != null" >
- DCT_Record_Time,
- </if>
- <if test="dctIsdel != null" >
- DCT_IsDel,
- </if>
- <if test="dctType != null" >
- DCT_Type,
- </if>
- <if test="dctPinyincode != null" >
- DCT_PinyinCode,
- </if>
- <if test="dctWubicode != null" >
- DCT_WubiCode,
- </if>
- <if test="dctOthercode != null" >
- DCT_OtherCode,
- </if>
- <if test="dctWard != null" >
- DCT_Ward,
- </if>
- <if test="dctDept != null" >
- DCT_Dept,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="dctId != null" >
- #{dctId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dctName != null" >
- #{dctName,jdbcType=VARCHAR},
- </if>
- <if test="dctRecordor != null" >
- #{dctRecordor,jdbcType=VARCHAR},
- </if>
- <if test="dctRecordTime != null" >
- #{dctRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dctIsdel != null" >
- #{dctIsdel,jdbcType=INTEGER},
- </if>
- <if test="dctType != null" >
- #{dctType,jdbcType=INTEGER},
- </if>
- <if test="dctPinyincode != null" >
- #{dctPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dctWubicode != null" >
- #{dctWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dctOthercode != null" >
- #{dctOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dctWard != null" >
- #{dctWard,jdbcType=VARCHAR},
- </if>
- <if test="dctDept != null" >
- #{dctDept,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
- update dic_consultation_team
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dctName != null" >
- DCT_Name = #{dctName,jdbcType=VARCHAR},
- </if>
- <if test="dctRecordor != null" >
- DCT_Recordor = #{dctRecordor,jdbcType=VARCHAR},
- </if>
- <if test="dctRecordTime != null" >
- DCT_Record_Time = #{dctRecordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dctIsdel != null" >
- DCT_IsDel = #{dctIsdel,jdbcType=INTEGER},
- </if>
- <if test="dctType != null" >
- DCT_Type = #{dctType,jdbcType=INTEGER},
- </if>
- <if test="dctPinyincode != null" >
- DCT_PinyinCode = #{dctPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dctWubicode != null" >
- DCT_WubiCode = #{dctWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dctOthercode != null" >
- DCT_OtherCode = #{dctOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dctWard != null" >
- DCT_Ward = #{dctWard,jdbcType=VARCHAR},
- </if>
- <if test="dctDept != null" >
- DCT_Dept = #{dctDept,jdbcType=VARCHAR},
- </if>
- </set>
- where DCT_ID = #{dctId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.pubservice.mysqlModel.ConsultationTeam" >
- update dic_consultation_team
- set HI_ID = #{hiId,jdbcType=INTEGER},
- DCT_Name = #{dctName,jdbcType=VARCHAR},
- DCT_Recordor = #{dctRecordor,jdbcType=VARCHAR},
- DCT_Record_Time = #{dctRecordTime,jdbcType=TIMESTAMP},
- DCT_IsDel = #{dctIsdel,jdbcType=INTEGER},
- DCT_Type = #{dctType,jdbcType=INTEGER},
- DCT_PinyinCode = #{dctPinyincode,jdbcType=VARCHAR},
- DCT_WubiCode = #{dctWubicode,jdbcType=VARCHAR},
- DCT_OtherCode = #{dctOthercode,jdbcType=VARCHAR},
- DCT_Ward = #{dctWard,jdbcType=VARCHAR},
- DCT_Dept = #{dctDept,jdbcType=VARCHAR}
- where DCT_ID = #{dctId,jdbcType=INTEGER}
- </update>
- </mapper>
|