123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?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.common.dao.mysqlmapper.SysHospitalInfoMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.common.dao.mysqlmodel.SysHospitalInfo" >
- <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" />
- <result column="HI_Auth_Code" property="hiAuthCode" jdbcType="VARCHAR" />
- <result column="HI_Active_Time" property="hiActiveTime" jdbcType="TIMESTAMP" />
- <result column="HI_Aging_Time" property="hiAgingTime" jdbcType="TIMESTAMP" />
- </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, HI_Auth_Code, HI_Active_Time, HI_Aging_Time
- </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>
- <insert id="insert" parameterType="com.xinxin.topro.common.dao.mysqlmodel.SysHospitalInfo" >
- insert into sys_hospitalinfo (HI_ID, HI_Name, HI_ShortName,
- HI_FullName, HI_Address, HI_Tel,
- HI_Intro, HI_PinyinCode, HI_WubiCode,
- HI_OtherCode, HI_ISDel, HI_SupID,
- HI_Auth_Code, HI_Active_Time, HI_Aging_Time
- )
- values (#{hiId,jdbcType=INTEGER}, #{hiName,jdbcType=VARCHAR}, #{hiShortName,jdbcType=VARCHAR},
- #{hiFullName,jdbcType=VARCHAR}, #{hiAddress,jdbcType=VARCHAR}, #{hiTel,jdbcType=VARCHAR},
- #{hiIntro,jdbcType=VARCHAR}, #{hiPinyinCode,jdbcType=VARCHAR}, #{hiWubiCode,jdbcType=VARCHAR},
- #{hiOtherCode,jdbcType=VARCHAR}, #{hiIsDel,jdbcType=INTEGER}, #{hiSupId,jdbcType=INTEGER},
- #{hiAuthCode,jdbcType=VARCHAR}, #{hiActiveTime,jdbcType=TIMESTAMP}, #{hiAgingTime,jdbcType=TIMESTAMP}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.common.dao.mysqlmodel.SysHospitalInfo" >
- 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>
- <if test="hiAuthCode != null" >
- HI_Auth_Code,
- </if>
- <if test="hiActiveTime != null" >
- HI_Active_Time,
- </if>
- <if test="hiAgingTime != null" >
- HI_Aging_Time,
- </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>
- <if test="hiAuthCode != null" >
- #{hiAuthCode,jdbcType=VARCHAR},
- </if>
- <if test="hiActiveTime != null" >
- #{hiActiveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="hiAgingTime != null" >
- #{hiAgingTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.common.dao.mysqlmodel.SysHospitalInfo" >
- 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>
- <if test="hiAuthCode != null" >
- HI_Auth_Code = #{hiAuthCode,jdbcType=VARCHAR},
- </if>
- <if test="hiActiveTime != null" >
- HI_Active_Time = #{hiActiveTime,jdbcType=TIMESTAMP},
- </if>
- <if test="hiAgingTime != null" >
- HI_Aging_Time = #{hiAgingTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.common.dao.mysqlmodel.SysHospitalInfo" >
- update sys_hospitalinfo
- set HI_Name = #{hiName,jdbcType=VARCHAR},
- HI_ShortName = #{hiShortName,jdbcType=VARCHAR},
- HI_FullName = #{hiFullName,jdbcType=VARCHAR},
- HI_Address = #{hiAddress,jdbcType=VARCHAR},
- HI_Tel = #{hiTel,jdbcType=VARCHAR},
- HI_Intro = #{hiIntro,jdbcType=VARCHAR},
- HI_PinyinCode = #{hiPinyinCode,jdbcType=VARCHAR},
- HI_WubiCode = #{hiWubiCode,jdbcType=VARCHAR},
- HI_OtherCode = #{hiOtherCode,jdbcType=VARCHAR},
- HI_ISDel = #{hiIsDel,jdbcType=INTEGER},
- HI_SupID = #{hiSupId,jdbcType=INTEGER},
- HI_Auth_Code = #{hiAuthCode,jdbcType=VARCHAR},
- HI_Active_Time = #{hiActiveTime,jdbcType=TIMESTAMP},
- HI_Aging_Time = #{hiAgingTime,jdbcType=TIMESTAMP}
- where HI_ID = #{hiId,jdbcType=INTEGER}
- </update>
- <select id="selectHospitalNameById" resultType="java.lang.String" parameterType="java.lang.Integer">
- select HI_Name from sys_hospitalinfo where HI_ID = #{hiId,jdbcType=INTEGER}
- </select>
- </mapper>
|