123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <?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.inpnurseservice.mysqlmapper.DicConsulationMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicConsulation" >
- <id column="DCO_ID" property="dcoId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DCO_Code" property="dcoCode" jdbcType="VARCHAR" />
- <result column="DCO_Name" property="dcoName" jdbcType="VARCHAR" />
- <result column="DCO_PinyinCode" property="dcoPinyincode" jdbcType="VARCHAR" />
- <result column="DCO_WubiCode" property="dcoWubicode" jdbcType="VARCHAR" />
- <result column="DCO_OtherCode" property="dcoOthercode" jdbcType="VARCHAR" />
- <result column="DCO_Operation_Time" property="dcoOperationTime" jdbcType="TIMESTAMP" />
- <result column="DCO_Operator" property="dcoOperator" jdbcType="VARCHAR" />
- <result column="DCO_IsDel" property="dcoIsdel" jdbcType="INTEGER" />
- <result column="DCO_Remark" property="dcoRemark" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- DCO_ID, HI_ID, DCO_Code, DCO_Name, DCO_PinyinCode, DCO_WubiCode, DCO_OtherCode, DCO_Operation_Time,
- DCO_Operator, DCO_IsDel, DCO_Remark
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_consulation
- where DCO_IsDel = 0 and DCO_ID = #{dcoId,jdbcType=INTEGER}
- </select>
- <select id="selectByCode" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from dic_consulation
- where DCO_IsDel = 0 and DCO_Code = #{code,jdbcType=VARCHAR}
- </select>
- <select id="selectAll" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from dic_consulation
- where DCO_IsDel = 0
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_consulation
- where DCO_ID = #{dcoId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicConsulation" >
- insert into dic_consulation (DCO_ID, HI_ID, DCO_Code,
- DCO_Name, DCO_PinyinCode, DCO_WubiCode,
- DCO_OtherCode, DCO_Operation_Time, DCO_Operator,
- DCO_IsDel, DCO_Remark)
- values (#{dcoId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{dcoCode,jdbcType=VARCHAR},
- #{dcoName,jdbcType=VARCHAR}, #{dcoPinyincode,jdbcType=VARCHAR}, #{dcoWubicode,jdbcType=VARCHAR},
- #{dcoOthercode,jdbcType=VARCHAR}, #{dcoOperationTime,jdbcType=TIMESTAMP}, #{dcoOperator,jdbcType=VARCHAR},
- #{dcoIsdel,jdbcType=INTEGER}, #{dcoRemark,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicConsulation" >
- insert into dic_consulation
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="dcoId != null" >
- DCO_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="dcoCode != null" >
- DCO_Code,
- </if>
- <if test="dcoName != null" >
- DCO_Name,
- </if>
- <if test="dcoPinyincode != null" >
- DCO_PinyinCode,
- </if>
- <if test="dcoWubicode != null" >
- DCO_WubiCode,
- </if>
- <if test="dcoOthercode != null" >
- DCO_OtherCode,
- </if>
- <if test="dcoOperationTime != null" >
- DCO_Operation_Time,
- </if>
- <if test="dcoOperator != null" >
- DCO_Operator,
- </if>
- <if test="dcoIsdel != null" >
- DCO_IsDel,
- </if>
- <if test="dcoRemark != null" >
- DCO_Remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="dcoId != null" >
- #{dcoId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dcoCode != null" >
- #{dcoCode,jdbcType=VARCHAR},
- </if>
- <if test="dcoName != null" >
- #{dcoName,jdbcType=VARCHAR},
- </if>
- <if test="dcoPinyincode != null" >
- #{dcoPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dcoWubicode != null" >
- #{dcoWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dcoOthercode != null" >
- #{dcoOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dcoOperationTime != null" >
- #{dcoOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dcoOperator != null" >
- #{dcoOperator,jdbcType=VARCHAR},
- </if>
- <if test="dcoIsdel != null" >
- #{dcoIsdel,jdbcType=INTEGER},
- </if>
- <if test="dcoRemark != null" >
- #{dcoRemark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicConsulation" >
- update dic_consulation
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dcoCode != null" >
- DCO_Code = #{dcoCode,jdbcType=VARCHAR},
- </if>
- <if test="dcoName != null" >
- DCO_Name = #{dcoName,jdbcType=VARCHAR},
- </if>
- <if test="dcoPinyincode != null" >
- DCO_PinyinCode = #{dcoPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dcoWubicode != null" >
- DCO_WubiCode = #{dcoWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dcoOthercode != null" >
- DCO_OtherCode = #{dcoOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dcoOperationTime != null" >
- DCO_Operation_Time = #{dcoOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dcoOperator != null" >
- DCO_Operator = #{dcoOperator,jdbcType=VARCHAR},
- </if>
- <if test="dcoIsdel != null" >
- DCO_IsDel = #{dcoIsdel,jdbcType=INTEGER},
- </if>
- <if test="dcoRemark != null" >
- DCO_Remark = #{dcoRemark,jdbcType=VARCHAR},
- </if>
- </set>
- where DCO_ID = #{dcoId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicConsulation" >
- update dic_consulation
- set HI_ID = #{hiId,jdbcType=INTEGER},
- DCO_Code = #{dcoCode,jdbcType=VARCHAR},
- DCO_Name = #{dcoName,jdbcType=VARCHAR},
- DCO_PinyinCode = #{dcoPinyincode,jdbcType=VARCHAR},
- DCO_WubiCode = #{dcoWubicode,jdbcType=VARCHAR},
- DCO_OtherCode = #{dcoOthercode,jdbcType=VARCHAR},
- DCO_Operation_Time = #{dcoOperationTime,jdbcType=TIMESTAMP},
- DCO_Operator = #{dcoOperator,jdbcType=VARCHAR},
- DCO_IsDel = #{dcoIsdel,jdbcType=INTEGER},
- DCO_Remark = #{dcoRemark,jdbcType=VARCHAR}
- where DCO_ID = #{dcoId,jdbcType=INTEGER}
- </update>
- </mapper>
|