123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?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.base.mysqlmapper.HospitalInfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
- <id column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="HI_Name" property="hiName" jdbcType="VARCHAR" />
- <result column="HI_ShortName" property="hiShortname" jdbcType="VARCHAR" />
- <result column="HI_FullName" property="hiFullname" jdbcType="VARCHAR" />
- <result column="HI_Address" property="hiAddress" jdbcType="VARCHAR" />
- <result column="HI_Tel" property="hiTel" jdbcType="VARCHAR" />
- <result column="HI_Intro" property="hiIntro" jdbcType="VARCHAR" />
- <result column="HI_PinyinCode" property="hiPinyincode" jdbcType="VARCHAR" />
- <result column="HI_WubiCode" property="hiWubicode" jdbcType="VARCHAR" />
- <result column="HI_OtherCode" property="hiOthercode" jdbcType="VARCHAR" />
- <result column="HI_ISDel" property="hiIsdel" jdbcType="INTEGER" />
- <result column="HI_SupID" property="hiSupid" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- HI_ID, HI_Name, HI_ShortName, HI_FullName, HI_Address, HI_Tel, HI_Intro, HI_PinyinCode,
- HI_WubiCode, HI_OtherCode, HI_ISDel, HI_SupID
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from sys_hospitalinfo
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from sys_hospitalinfo
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
- insert into sys_hospitalinfo
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="hiName != null" >
- HI_Name,
- </if>
- <if test="hiShortname != null" >
- HI_ShortName,
- </if>
- <if test="hiFullname != null" >
- HI_FullName,
- </if>
- <if test="hiAddress != null" >
- HI_Address,
- </if>
- <if test="hiTel != null" >
- HI_Tel,
- </if>
- <if test="hiIntro != null" >
- HI_Intro,
- </if>
- <if test="hiPinyincode != null" >
- HI_PinyinCode,
- </if>
- <if test="hiWubicode != null" >
- HI_WubiCode,
- </if>
- <if test="hiOthercode != null" >
- HI_OtherCode,
- </if>
- <if test="hiIsdel != null" >
- HI_ISDel,
- </if>
- <if test="hiSupid != null" >
- HI_SupID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="hiName != null" >
- #{hiName,jdbcType=VARCHAR},
- </if>
- <if test="hiShortname != null" >
- #{hiShortname,jdbcType=VARCHAR},
- </if>
- <if test="hiFullname != null" >
- #{hiFullname,jdbcType=VARCHAR},
- </if>
- <if test="hiAddress != null" >
- #{hiAddress,jdbcType=VARCHAR},
- </if>
- <if test="hiTel != null" >
- #{hiTel,jdbcType=VARCHAR},
- </if>
- <if test="hiIntro != null" >
- #{hiIntro,jdbcType=VARCHAR},
- </if>
- <if test="hiPinyincode != null" >
- #{hiPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="hiWubicode != null" >
- #{hiWubicode,jdbcType=VARCHAR},
- </if>
- <if test="hiOthercode != null" >
- #{hiOthercode,jdbcType=VARCHAR},
- </if>
- <if test="hiIsdel != null" >
- #{hiIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiSupid != null" >
- #{hiSupid,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
- update sys_hospitalinfo
- <set >
- <if test="hiName != null" >
- HI_Name = #{hiName,jdbcType=VARCHAR},
- </if>
- <if test="hiShortname != null" >
- HI_ShortName = #{hiShortname,jdbcType=VARCHAR},
- </if>
- <if test="hiFullname != null" >
- HI_FullName = #{hiFullname,jdbcType=VARCHAR},
- </if>
- <if test="hiAddress != null" >
- HI_Address = #{hiAddress,jdbcType=VARCHAR},
- </if>
- <if test="hiTel != null" >
- HI_Tel = #{hiTel,jdbcType=VARCHAR},
- </if>
- <if test="hiIntro != null" >
- HI_Intro = #{hiIntro,jdbcType=VARCHAR},
- </if>
- <if test="hiPinyincode != null" >
- HI_PinyinCode = #{hiPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="hiWubicode != null" >
- HI_WubiCode = #{hiWubicode,jdbcType=VARCHAR},
- </if>
- <if test="hiOthercode != null" >
- HI_OtherCode = #{hiOthercode,jdbcType=VARCHAR},
- </if>
- <if test="hiIsdel != null" >
- HI_ISDel = #{hiIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiSupid != null" >
- HI_SupID = #{hiSupid,jdbcType=INTEGER},
- </if>
- </set>
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </update>
- </mapper>
|