123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?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.sqlservermapper.WardMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.sqlservermodel.Ward" >
- <result column="DepartNo" property="departno" jdbcType="VARCHAR" />
- <result column="DepartCode" property="departcode" jdbcType="VARCHAR" />
- <result column="DepartName" property="departname" jdbcType="VARCHAR" />
- <result column="SubTel" property="subtel" jdbcType="SMALLINT" />
- <result column="Zone" property="zone" jdbcType="VARCHAR" />
- <result column="Location" property="location" jdbcType="VARCHAR" />
- <result column="StockType" property="stocktype" jdbcType="VARCHAR" />
- <result column="IsDuty" property="isduty" jdbcType="BIT" />
- <result column="CostCenter" property="costcenter" jdbcType="VARCHAR" />
- <result column="StartDate" property="startdate" jdbcType="TIMESTAMP" />
- <result column="EndDate" property="enddate" jdbcType="TIMESTAMP" />
- <result column="UpdateUser" property="updateuser" jdbcType="VARCHAR" />
- <result column="DepartType" property="departtype" jdbcType="VARCHAR" />
- <result column="UpdateTime" property="updatetime" jdbcType="TIMESTAMP" />
- <result column="EmergencyFlag" property="emergencyflag" jdbcType="INTEGER" />
- </resultMap>
- <insert id="insert" parameterType="com.xinxin.topro.base.sqlservermodel.Ward" >
- insert into V_Ward (DepartNo, DepartCode, DepartName,
- SubTel, Zone, Location,
- StockType, IsDuty, CostCenter,
- StartDate, EndDate, UpdateUser,
- DepartType, UpdateTime, EmergencyFlag
- )
- values (#{departno,jdbcType=VARCHAR}, #{departcode,jdbcType=VARCHAR}, #{departname,jdbcType=VARCHAR},
- #{subtel,jdbcType=SMALLINT}, #{zone,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR},
- #{stocktype,jdbcType=VARCHAR}, #{isduty,jdbcType=BIT}, #{costcenter,jdbcType=VARCHAR},
- #{startdate,jdbcType=TIMESTAMP}, #{enddate,jdbcType=TIMESTAMP}, #{updateuser,jdbcType=VARCHAR},
- #{departtype,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{emergencyflag,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.sqlservermodel.Ward" >
- insert into V_Ward
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="departno != null" >
- DepartNo,
- </if>
- <if test="departcode != null" >
- DepartCode,
- </if>
- <if test="departname != null" >
- DepartName,
- </if>
- <if test="subtel != null" >
- SubTel,
- </if>
- <if test="zone != null" >
- Zone,
- </if>
- <if test="location != null" >
- Location,
- </if>
- <if test="stocktype != null" >
- StockType,
- </if>
- <if test="isduty != null" >
- IsDuty,
- </if>
- <if test="costcenter != null" >
- CostCenter,
- </if>
- <if test="startdate != null" >
- StartDate,
- </if>
- <if test="enddate != null" >
- EndDate,
- </if>
- <if test="updateuser != null" >
- UpdateUser,
- </if>
- <if test="departtype != null" >
- DepartType,
- </if>
- <if test="updatetime != null" >
- UpdateTime,
- </if>
- <if test="emergencyflag != null" >
- EmergencyFlag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="departno != null" >
- #{departno,jdbcType=VARCHAR},
- </if>
- <if test="departcode != null" >
- #{departcode,jdbcType=VARCHAR},
- </if>
- <if test="departname != null" >
- #{departname,jdbcType=VARCHAR},
- </if>
- <if test="subtel != null" >
- #{subtel,jdbcType=SMALLINT},
- </if>
- <if test="zone != null" >
- #{zone,jdbcType=VARCHAR},
- </if>
- <if test="location != null" >
- #{location,jdbcType=VARCHAR},
- </if>
- <if test="stocktype != null" >
- #{stocktype,jdbcType=VARCHAR},
- </if>
- <if test="isduty != null" >
- #{isduty,jdbcType=BIT},
- </if>
- <if test="costcenter != null" >
- #{costcenter,jdbcType=VARCHAR},
- </if>
- <if test="startdate != null" >
- #{startdate,jdbcType=TIMESTAMP},
- </if>
- <if test="enddate != null" >
- #{enddate,jdbcType=TIMESTAMP},
- </if>
- <if test="updateuser != null" >
- #{updateuser,jdbcType=VARCHAR},
- </if>
- <if test="departtype != null" >
- #{departtype,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- <if test="emergencyflag != null" >
- #{emergencyflag,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- </mapper>
|