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.DicQuestionDirectoryMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- <id column="DQD_ID" property="dqdId" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DQD_Name" property="dqdName" jdbcType="VARCHAR" />
- <result column="DQD_Sup_ID" property="dqdSupId" jdbcType="INTEGER" />
- <result column="DQD_Sort" property="dqdSort" jdbcType="INTEGER" />
- <result column="DQD_Level" property="dqdLevel" jdbcType="INTEGER" />
- <result column="DQD_PinyinCode" property="dqdPinyincode" jdbcType="VARCHAR" />
- <result column="DQD_WubiCode" property="dqdWubicode" jdbcType="VARCHAR" />
- <result column="DQD_OtherCode" property="dqdOthercode" jdbcType="VARCHAR" />
- <result column="DQD_IsDel" property="dqdIsdel" jdbcType="INTEGER" />
- <result column="DQD_Operation_Time" property="dqdOperationTime" jdbcType="TIMESTAMP" />
- <result column="DQD_Operator" property="dqdOperator" jdbcType="VARCHAR" />
- </resultMap>
- <resultMap id="ResultMapWithBLOBs" type="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" extends="BaseResultMap" >
- <result column="DQD_Remark" property="dqdRemark" jdbcType="LONGVARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- DQD_ID, HI_ID, DQD_Name, DQD_Sup_ID, DQD_Sort, DQD_Level, DQD_PinyinCode, DQD_WubiCode,
- DQD_OtherCode, DQD_IsDel, DQD_Operation_Time, DQD_Operator
- </sql>
- <sql id="Blob_Column_List" >
- DQD_Remark
- </sql>
- <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from dic_question_directory
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_question_directory
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- insert into dic_question_directory (DQD_ID, HI_ID, DQD_Name,
- DQD_Sup_ID, DQD_Sort, DQD_Level,
- DQD_PinyinCode, DQD_WubiCode, DQD_OtherCode,
- DQD_IsDel, DQD_Operation_Time, DQD_Operator,
- DQD_Remark)
- values (#{dqdId,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, #{dqdName,jdbcType=VARCHAR},
- #{dqdSupId,jdbcType=INTEGER}, #{dqdSort,jdbcType=INTEGER}, #{dqdLevel,jdbcType=INTEGER},
- #{dqdPinyincode,jdbcType=VARCHAR}, #{dqdWubicode,jdbcType=VARCHAR}, #{dqdOthercode,jdbcType=VARCHAR},
- #{dqdIsdel,jdbcType=INTEGER}, now(), #{dqdOperator,jdbcType=VARCHAR},
- #{dqdRemark,jdbcType=LONGVARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- insert into dic_question_directory
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="dqdId != null" >
- DQD_ID,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="dqdName != null" >
- DQD_Name,
- </if>
- <if test="dqdSupId != null" >
- DQD_Sup_ID,
- </if>
- <if test="dqdSort != null" >
- DQD_Sort,
- </if>
- <if test="dqdLevel != null" >
- DQD_Level,
- </if>
- <if test="dqdPinyincode != null" >
- DQD_PinyinCode,
- </if>
- <if test="dqdWubicode != null" >
- DQD_WubiCode,
- </if>
- <if test="dqdOthercode != null" >
- DQD_OtherCode,
- </if>
- <if test="dqdIsdel != null" >
- DQD_IsDel,
- </if>
- <if test="dqdOperationTime != null" >
- DQD_Operation_Time,
- </if>
- <if test="dqdOperator != null" >
- DQD_Operator,
- </if>
- <if test="dqdRemark != null" >
- DQD_Remark,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="dqdId != null" >
- #{dqdId,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dqdName != null" >
- #{dqdName,jdbcType=VARCHAR},
- </if>
- <if test="dqdSupId != null" >
- #{dqdSupId,jdbcType=INTEGER},
- </if>
- <if test="dqdSort != null" >
- #{dqdSort,jdbcType=INTEGER},
- </if>
- <if test="dqdLevel != null" >
- #{dqdLevel,jdbcType=INTEGER},
- </if>
- <if test="dqdPinyincode != null" >
- #{dqdPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dqdWubicode != null" >
- #{dqdWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dqdOthercode != null" >
- #{dqdOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dqdIsdel != null" >
- #{dqdIsdel,jdbcType=INTEGER},
- </if>
- <if test="dqdOperationTime != null" >
- #{dqdOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dqdOperator != null" >
- #{dqdOperator,jdbcType=VARCHAR},
- </if>
- <if test="dqdRemark != null" >
- #{dqdRemark,jdbcType=LONGVARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- update dic_question_directory
- <set >
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="dqdName != null" >
- DQD_Name = #{dqdName,jdbcType=VARCHAR},
- </if>
- <if test="dqdSupId != null" >
- DQD_Sup_ID = #{dqdSupId,jdbcType=INTEGER},
- </if>
- <if test="dqdSort != null" >
- DQD_Sort = #{dqdSort,jdbcType=INTEGER},
- </if>
- <if test="dqdLevel != null" >
- DQD_Level = #{dqdLevel,jdbcType=INTEGER},
- </if>
- <if test="dqdPinyincode != null" >
- DQD_PinyinCode = #{dqdPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dqdWubicode != null" >
- DQD_WubiCode = #{dqdWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dqdOthercode != null" >
- DQD_OtherCode = #{dqdOthercode,jdbcType=VARCHAR},
- </if>
- <if test="dqdIsdel != null" >
- DQD_IsDel = #{dqdIsdel,jdbcType=INTEGER},
- </if>
- <if test="dqdOperationTime != null" >
- DQD_Operation_Time = #{dqdOperationTime,jdbcType=TIMESTAMP},
- </if>
- <if test="dqdOperator != null" >
- DQD_Operator = #{dqdOperator,jdbcType=VARCHAR},
- </if>
- <if test="dqdRemark != null" >
- DQD_Remark = #{dqdRemark,jdbcType=LONGVARCHAR},
- </if>
- </set>
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- update dic_question_directory
- set HI_ID = #{hiId,jdbcType=INTEGER},
- DQD_Name = #{dqdName,jdbcType=VARCHAR},
- DQD_Sup_ID = #{dqdSupId,jdbcType=INTEGER},
- DQD_Sort = #{dqdSort,jdbcType=INTEGER},
- DQD_Level = #{dqdLevel,jdbcType=INTEGER},
- DQD_PinyinCode = #{dqdPinyincode,jdbcType=VARCHAR},
- DQD_WubiCode = #{dqdWubicode,jdbcType=VARCHAR},
- DQD_OtherCode = #{dqdOthercode,jdbcType=VARCHAR},
- DQD_IsDel = #{dqdIsdel,jdbcType=INTEGER},
- DQD_Operation_Time = #{dqdOperationTime,jdbcType=TIMESTAMP},
- DQD_Operator = #{dqdOperator,jdbcType=VARCHAR},
- DQD_Remark = #{dqdRemark,jdbcType=LONGVARCHAR}
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- update dic_question_directory
- set HI_ID = #{hiId,jdbcType=INTEGER},
- DQD_Name = #{dqdName,jdbcType=VARCHAR},
- DQD_Sup_ID = #{dqdSupId,jdbcType=INTEGER},
- DQD_Sort = #{dqdSort,jdbcType=INTEGER},
- DQD_Level = #{dqdLevel,jdbcType=INTEGER},
- DQD_PinyinCode = #{dqdPinyincode,jdbcType=VARCHAR},
- DQD_WubiCode = #{dqdWubicode,jdbcType=VARCHAR},
- DQD_OtherCode = #{dqdOthercode,jdbcType=VARCHAR},
- DQD_IsDel = #{dqdIsdel,jdbcType=INTEGER},
- DQD_Operation_Time = #{dqdOperationTime,jdbcType=TIMESTAMP},
- DQD_Operator = #{dqdOperator,jdbcType=VARCHAR}
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </update>
- <select id="selectDirectoryList" resultMap="ResultMapWithBLOBs" >
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from dic_question_directory
- where DQD_IsDel = 0
- and HI_ID = #{hiId,jdbcType=INTEGER}
- </select>
- <select id="selectCountBySupId" resultType="java.lang.Integer">
- select count(1) from dic_question_directory
- where DQD_IsDel = 0
- and DQD_Sup_ID = #{dqdSupId,jdbcType=INTEGER}
- </select>
- <update id="updateDel" parameterType="com.xinxin.topro.sysservice.dao.mysqlmodel.DicQuestionDirectory" >
- update dic_question_directory
- set
- DQD_IsDel = #{dqdIsdel,jdbcType=INTEGER},
- DQD_Operation_Time = now(),
- DQD_Operator = #{dqdOperator,jdbcType=VARCHAR}
- where DQD_ID = #{dqdId,jdbcType=INTEGER}
- </update>
- </mapper>
|