123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?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.sysservice.dao.mysqlmapper.DicDepartmenttMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.sysservice.dao.mysqlmodel.DicDepartment" >
- <id column="DD_ID" property="ddId" jdbcType="INTEGER" />
- <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DD_DepName" property="ddDepname" jdbcType="VARCHAR" />
- <result column="DD_AliasName" property="ddAliasname" jdbcType="VARCHAR" />
- <result column="DD_EngName" property="ddEngname" jdbcType="VARCHAR" />
- <result column="DD_AccountDep" property="ddAccountdep" jdbcType="VARCHAR" />
- <result column="DD_CostDep" property="ddCostdep" jdbcType="VARCHAR" />
- <result column="DD_Address" property="ddAddress" jdbcType="VARCHAR" />
- <result column="DD_PinyinCode" property="ddPinyincode" jdbcType="VARCHAR" />
- <result column="DD_WubiCode" property="ddWubicode" jdbcType="VARCHAR" />
- <result column="DD_OtherCode" property="ddOthercode" jdbcType="VARCHAR" />
- <result column="DD_OpdFlag" property="ddOpdflag" jdbcType="INTEGER" />
- <result column="DD_InpFlag" property="ddInpflag" jdbcType="INTEGER" />
- <result column="DD_DepNature" property="ddDepnature" jdbcType="INTEGER" />
- <result column="DD_SupDepDm" property="ddSupdepdm" jdbcType="INTEGER" />
- <result column="DD_IsDel" property="ddIsdel" jdbcType="INTEGER" />
- </resultMap>
- <sql id="Base_Column_List" >
- DD_ID, DD_DepDm, HI_ID, DD_DepName, DD_AliasName, DD_EngName, DD_AccountDep, DD_CostDep,
- DD_Address, DD_PinyinCode, DD_WubiCode, DD_OtherCode, DD_OpdFlag, DD_InpFlag, DD_DepNature,
- DD_SupDepDm, DD_IsDel
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_department
- where DD_ID = #{ddId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_department
- where DD_ID = #{ddId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicDepartment" >
- insert into dic_department (DD_ID, DD_DepDm, HI_ID,
- DD_DepName, DD_AliasName, DD_EngName,
- DD_AccountDep, DD_CostDep, DD_Address,
- DD_PinyinCode, DD_WubiCode, DD_OtherCode,
- DD_OpdFlag, DD_InpFlag, DD_DepNature,
- DD_SupDepDm, DD_IsDel)
- values (#{ddId,jdbcType=INTEGER}, #{ddDepdm,jdbcType=VARCHAR}, #{hiId,jdbcType=INTEGER},
- #{ddDepname,jdbcType=VARCHAR}, #{ddAliasname,jdbcType=VARCHAR}, #{ddEngname,jdbcType=VARCHAR},
- #{ddAccountdep,jdbcType=VARCHAR}, #{ddCostdep,jdbcType=VARCHAR}, #{ddAddress,jdbcType=VARCHAR},
- #{ddPinyincode,jdbcType=VARCHAR}, #{ddWubicode,jdbcType=VARCHAR}, #{ddOthercode,jdbcType=VARCHAR},
- #{ddOpdflag,jdbcType=INTEGER}, #{ddInpflag,jdbcType=INTEGER}, #{ddDepnature,jdbcType=INTEGER},
- #{ddSupdepdm,jdbcType=INTEGER}, #{ddIsdel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicDepartment" >
- insert into dic_department
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="ddId != null" >
- DD_ID,
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="ddDepname != null" >
- DD_DepName,
- </if>
- <if test="ddAliasname != null" >
- DD_AliasName,
- </if>
- <if test="ddEngname != null" >
- DD_EngName,
- </if>
- <if test="ddAccountdep != null" >
- DD_AccountDep,
- </if>
- <if test="ddCostdep != null" >
- DD_CostDep,
- </if>
- <if test="ddAddress != null" >
- DD_Address,
- </if>
- <if test="ddPinyincode != null" >
- DD_PinyinCode,
- </if>
- <if test="ddWubicode != null" >
- DD_WubiCode,
- </if>
- <if test="ddOthercode != null" >
- DD_OtherCode,
- </if>
- <if test="ddOpdflag != null" >
- DD_OpdFlag,
- </if>
- <if test="ddInpflag != null" >
- DD_InpFlag,
- </if>
- <if test="ddDepnature != null" >
- DD_DepNature,
- </if>
- <if test="ddSupdepdm != null" >
- DD_SupDepDm,
- </if>
- <if test="ddIsdel != null" >
- DD_IsDel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="ddId != null" >
- #{ddId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepname != null" >
- #{ddDepname,jdbcType=VARCHAR},
- </if>
- <if test="ddAliasname != null" >
- #{ddAliasname,jdbcType=VARCHAR},
- </if>
- <if test="ddEngname != null" >
- #{ddEngname,jdbcType=VARCHAR},
- </if>
- <if test="ddAccountdep != null" >
- #{ddAccountdep,jdbcType=VARCHAR},
- </if>
- <if test="ddCostdep != null" >
- #{ddCostdep,jdbcType=VARCHAR},
- </if>
- <if test="ddAddress != null" >
- #{ddAddress,jdbcType=VARCHAR},
- </if>
- <if test="ddPinyincode != null" >
- #{ddPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="ddWubicode != null" >
- #{ddWubicode,jdbcType=VARCHAR},
- </if>
- <if test="ddOthercode != null" >
- #{ddOthercode,jdbcType=VARCHAR},
- </if>
- <if test="ddOpdflag != null" >
- #{ddOpdflag,jdbcType=INTEGER},
- </if>
- <if test="ddInpflag != null" >
- #{ddInpflag,jdbcType=INTEGER},
- </if>
- <if test="ddDepnature != null" >
- #{ddDepnature,jdbcType=INTEGER},
- </if>
- <if test="ddSupdepdm != null" >
- #{ddSupdepdm,jdbcType=INTEGER},
- </if>
- <if test="ddIsdel != null" >
- #{ddIsdel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicDepartment" >
- update dic_department
- <set >
- <if test="ddDepdm != null" >
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepname != null" >
- DD_DepName = #{ddDepname,jdbcType=VARCHAR},
- </if>
- <if test="ddAliasname != null" >
- DD_AliasName = #{ddAliasname,jdbcType=VARCHAR},
- </if>
- <if test="ddEngname != null" >
- DD_EngName = #{ddEngname,jdbcType=VARCHAR},
- </if>
- <if test="ddAccountdep != null" >
- DD_AccountDep = #{ddAccountdep,jdbcType=VARCHAR},
- </if>
- <if test="ddCostdep != null" >
- DD_CostDep = #{ddCostdep,jdbcType=VARCHAR},
- </if>
- <if test="ddAddress != null" >
- DD_Address = #{ddAddress,jdbcType=VARCHAR},
- </if>
- <if test="ddPinyincode != null" >
- DD_PinyinCode = #{ddPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="ddWubicode != null" >
- DD_WubiCode = #{ddWubicode,jdbcType=VARCHAR},
- </if>
- <if test="ddOthercode != null" >
- DD_OtherCode = #{ddOthercode,jdbcType=VARCHAR},
- </if>
- <if test="ddOpdflag != null" >
- DD_OpdFlag = #{ddOpdflag,jdbcType=INTEGER},
- </if>
- <if test="ddInpflag != null" >
- DD_InpFlag = #{ddInpflag,jdbcType=INTEGER},
- </if>
- <if test="ddDepnature != null" >
- DD_DepNature = #{ddDepnature,jdbcType=INTEGER},
- </if>
- <if test="ddSupdepdm != null" >
- DD_SupDepDm = #{ddSupdepdm,jdbcType=INTEGER},
- </if>
- <if test="ddIsdel != null" >
- DD_IsDel = #{ddIsdel,jdbcType=INTEGER},
- </if>
- </set>
- where DD_ID = #{ddId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicDepartment" >
- update dic_department
- set DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepName = #{ddDepname,jdbcType=VARCHAR},
- DD_AliasName = #{ddAliasname,jdbcType=VARCHAR},
- DD_EngName = #{ddEngname,jdbcType=VARCHAR},
- DD_AccountDep = #{ddAccountdep,jdbcType=VARCHAR},
- DD_CostDep = #{ddCostdep,jdbcType=VARCHAR},
- DD_Address = #{ddAddress,jdbcType=VARCHAR},
- DD_PinyinCode = #{ddPinyincode,jdbcType=VARCHAR},
- DD_WubiCode = #{ddWubicode,jdbcType=VARCHAR},
- DD_OtherCode = #{ddOthercode,jdbcType=VARCHAR},
- DD_OpdFlag = #{ddOpdflag,jdbcType=INTEGER},
- DD_InpFlag = #{ddInpflag,jdbcType=INTEGER},
- DD_DepNature = #{ddDepnature,jdbcType=INTEGER},
- DD_SupDepDm = #{ddSupdepdm,jdbcType=INTEGER},
- DD_IsDel = #{ddIsdel,jdbcType=INTEGER}
- where DD_ID = #{ddId,jdbcType=INTEGER}
- </update>
- </mapper>
|