123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?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.DicIoUnitMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoUnit" >
- <id column="DIU_ID" property="diuId" jdbcType="INTEGER" />
- <result column="DIO_ID" property="dioId" jdbcType="INTEGER" />
- <result column="DIU_UnitCode" property="diuUnitcode" jdbcType="VARCHAR" />
- <result column="DIU_Operation_Time" property="diuOperationTime" jdbcType="TIMESTAMP" />
- <result column="DIU_Operator" property="diuOperator" jdbcType="VARCHAR" />
- <result column="DIU_IsDel" property="diuIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- DIU_ID, DIO_ID, DIU_UnitCode, DIU_Operation_Time, DIU_Operator, DIU_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_io_unit
- where DIU_IsDel = 0 and DIU_ID = #{diuId,jdbcType=INTEGER}
- </select>
- <select id="selectByDioId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_io_unit
- where DIU_IsDel = 0 and DIO_ID = #{dioId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_io_unit
- where DIU_ID = #{diuId,jdbcType=INTEGER}
- </delete>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoUnit" >
- insert into dic_io_unit
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="diuId != null" >
- DIU_ID,
- </if>
- <if test="dioId != null" >
- DIO_ID,
- </if>
- <if test="diuUnitcode != null" >
- DIU_UnitCode,
- </if>
- <if test="diuOperationTime != null" >
- DIU_Operation_Time,
- </if>
- <if test="diuOperator != null" >
- DIU_Operator,
- </if>
- <if test="diuIsdel != null" >
- DIU_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="diuId != null" >
- #{diuId,jdbcType=INTEGER},
- </if>
- <if test="dioId != null" >
- #{dioId,jdbcType=INTEGER},
- </if>
- <if test="diuUnitcode != null" >
- #{diuUnitcode,jdbcType=VARCHAR},
- </if>
- <if test="diuOperationTime != null" >
- #{diuOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="diuOperator != null" >
- #{diuOperator,jdbcType=VARCHAR},
- </if>
- <if test="diuIsdel != null" >
- #{diuIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicIoUnit" >
- update dic_io_unit
- <set >
- <if test="dioId != null" >
- DIO_ID = #{dioId,jdbcType=INTEGER},
- </if>
- <if test="diuUnitcode != null" >
- DIU_UnitCode = #{diuUnitcode,jdbcType=VARCHAR},
- </if>
- <if test="diuOperationTime != null" >
- DIU_Operation_Time = #{diuOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="diuOperator != null" >
- DIU_Operator = #{diuOperator,jdbcType=VARCHAR},
- </if>
- <if test="diuIsdel != null" >
- DIU_IsDel = #{diuIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where DIU_ID = #{diuId,jdbcType=INTEGER}
- </update>
- <select id="selectAllUnit" resultMap="BaseResultMap" >
- select
- <include refid="Base_Column_List" />
- from dic_io_unit
- where DIU_IsDel = 0
- </select>
- </mapper>
|