123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?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.DicFormDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.inpnurseservice.mysqlmodel.DicFormDetail" >
- <id column="DFT_ID" property="dftId" jdbcType="INTEGER" />
- <result column="DF_ID" property="dfId" jdbcType="INTEGER" />
- <result column="DFT_Name" property="dftName" jdbcType="VARCHAR" />
- <result column="DFT_Remark" property="dftRemark" jdbcType="VARCHAR" />
- <result column="DFT_Resourse_URL" property="dftResourseUrl" jdbcType="VARCHAR" />
- <result column="DFT_SQL" property="dftSql" jdbcType="VARCHAR" />
- <result column="DFT_PinyinCode" property="dftPinyincode" jdbcType="VARCHAR" />
- <result column="DFT_WubiCode" property="dftWubicode" jdbcType="VARCHAR" />
- <result column="DFT_OtherCode" property="dftOthercode" jdbcType="VARCHAR" />
- <result column="DFT_Operation_Time" property="dftOperationTime" jdbcType="TIMESTAMP" />
- <result column="DFT_Operator" property="dftOperator" jdbcType="VARCHAR" />
- <result column="DFT_IsDel" property="dftIsdel" jdbcType="INTEGER" />
- <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
- <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
- <result column="DFT_FR_ENABLE" property="dftRrEnable" jdbcType="INTEGER" />
- <result column="DFT_FR_URL" property="dftFrUrl" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- DFT_ID, DF_ID, DFT_Name, DFT_Remark, DFT_Resourse_URL, DFT_SQL, DFT_PinyinCode, DFT_WubiCode,
- DFT_OtherCode, DFT_Operation_Time, DFT_Operator, DFT_IsDel, HI_ID, DD_DepDm, DFT_FR_ENABLE, DFT_FR_URL
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_form_detail
- where DFT_IsDel = 0 and DFT_ID = #{dftId,jdbcType=INTEGER}
- </select>
- <select id="selectByDFID" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from dic_form_detail
- where DFT_IsDel = 0 and DF_ID = #{dftId,jdbcType=INTEGER}
- </select>
- <select id="selectAll" resultMap="BaseResultMap" parameterType="com.xinxin.topro.inpnurseservice.request.InpFormSearchRequest">
- select
- <include refid="Base_Column_List" />
- from dic_form_detail
- where DFT_IsDel = 0
- <if test="dfId != null" >
- and DF_ID = #{dfId,jdbcType=INTEGER}
- </if>
- <if test="name != null" >
- and DFT_Name like concat('%',#{name,jdbcType=VARCHAR},'%')
- </if>
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from dic_form_detail
- where DFT_ID = #{dftId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicFormDetail" >
- insert into dic_form_detail (DFT_ID, DF_ID, DFT_Name,
- DFT_Remark, DFT_Resourse_URL, DFT_SQL,
- DFT_PinyinCode, DFT_WubiCode, DFT_OtherCode,
- DFT_Operation_Time, DFT_Operator, DFT_IsDel,
- HI_ID, DD_DepDm)
- values (#{dftId,jdbcType=INTEGER}, #{dfId,jdbcType=INTEGER}, #{dftName,jdbcType=VARCHAR},
- #{dftRemark,jdbcType=VARCHAR}, #{dftResourseUrl,jdbcType=VARCHAR}, #{dftSql,jdbcType=VARCHAR},
- #{dftPinyincode,jdbcType=VARCHAR}, #{dftWubicode,jdbcType=VARCHAR}, #{dftOthercode,jdbcType=VARCHAR},
- #{dftOperationTime,jdbcType=TIMESTAMP}, #{dftOperator,jdbcType=VARCHAR}, #{dftIsdel,jdbcType=INTEGER},
- #{hiId,jdbcType=INTEGER}, #{ddDepdm,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicFormDetail" >
- insert into dic_form_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="dftId != null" >
- DFT_ID,
- </if>
- <if test="dfId != null" >
- DF_ID,
- </if>
- <if test="dftName != null" >
- DFT_Name,
- </if>
- <if test="dftRemark != null" >
- DFT_Remark,
- </if>
- <if test="dftResourseUrl != null" >
- DFT_Resourse_URL,
- </if>
- <if test="dftSql != null" >
- DFT_SQL,
- </if>
- <if test="dftPinyincode != null" >
- DFT_PinyinCode,
- </if>
- <if test="dftWubicode != null" >
- DFT_WubiCode,
- </if>
- <if test="dftOthercode != null" >
- DFT_OtherCode,
- </if>
- DFT_Operation_Time,
- <if test="dftOperator != null" >
- DFT_Operator,
- </if>
- <if test="dftIsdel != null" >
- DFT_IsDel,
- </if>
- <if test="hiId != null" >
- HI_ID,
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm,
- </if>
- <if test="dftRrEnable != null" >
- DFT_FR_ENABLE,
- </if>
- <if test="dftFrUrl != null" >
- DFT_FR_URL,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="dftId != null" >
- #{dftId,jdbcType=INTEGER},
- </if>
- <if test="dfId != null" >
- #{dfId,jdbcType=INTEGER},
- </if>
- <if test="dftName != null" >
- #{dftName,jdbcType=VARCHAR},
- </if>
- <if test="dftRemark != null" >
- #{dftRemark,jdbcType=VARCHAR},
- </if>
- <if test="dftResourseUrl != null" >
- #{dftResourseUrl,jdbcType=VARCHAR},
- </if>
- <if test="dftSql != null" >
- #{dftSql,jdbcType=VARCHAR},
- </if>
- <if test="dftPinyincode != null" >
- #{dftPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dftWubicode != null" >
- #{dftWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dftOthercode != null" >
- #{dftOthercode,jdbcType=VARCHAR},
- </if>
- now(),
- <if test="dftOperator != null" >
- #{dftOperator,jdbcType=VARCHAR},
- </if>
- <if test="dftIsdel != null" >
- #{dftIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dftRrEnable != null" >
- #{dftRrEnable,jdbcType=INTEGER},
- </if>
- <if test="dftFrUrl != null" >
- #{dftFrUrl,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicFormDetail" >
- update dic_form_detail
- <set >
- <if test="dfId != null" >
- DF_ID = #{dfId,jdbcType=INTEGER},
- </if>
- <if test="dftName != null" >
- DFT_Name = #{dftName,jdbcType=VARCHAR},
- </if>
- <if test="dftRemark != null" >
- DFT_Remark = #{dftRemark,jdbcType=VARCHAR},
- </if>
- <if test="dftResourseUrl != null" >
- DFT_Resourse_URL = #{dftResourseUrl,jdbcType=VARCHAR},
- </if>
- <if test="dftSql != null" >
- DFT_SQL = #{dftSql,jdbcType=VARCHAR},
- </if>
- <if test="dftPinyincode != null" >
- DFT_PinyinCode = #{dftPinyincode,jdbcType=VARCHAR},
- </if>
- <if test="dftWubicode != null" >
- DFT_WubiCode = #{dftWubicode,jdbcType=VARCHAR},
- </if>
- <if test="dftOthercode != null" >
- DFT_OtherCode = #{dftOthercode,jdbcType=VARCHAR},
- </if>
- DFT_Operation_Time = now(),
- DFT_Operator = #{dftOperator,jdbcType=VARCHAR},
- <if test="dftIsdel != null" >
- DFT_IsDel = #{dftIsdel,jdbcType=INTEGER},
- </if>
- <if test="hiId != null" >
- HI_ID = #{hiId,jdbcType=INTEGER},
- </if>
- <if test="ddDepdm != null" >
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
- </if>
- <if test="dftRrEnable != null" >
- DFT_FR_ENABLE = #{dftRrEnable,jdbcType=INTEGER},
- </if>
- <if test="dftFrUrl != null" >
- DFT_FR_URL = #{dftFrUrl,jdbcType=VARCHAR},
- </if>
- </set>
- where DFT_ID = #{dftId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.inpnurseservice.mysqlmodel.DicFormDetail" >
- update dic_form_detail
- set DF_ID = #{dfId,jdbcType=INTEGER},
- DFT_Name = #{dftName,jdbcType=VARCHAR},
- DFT_Remark = #{dftRemark,jdbcType=VARCHAR},
- DFT_Resourse_URL = #{dftResourseUrl,jdbcType=VARCHAR},
- DFT_SQL = #{dftSql,jdbcType=VARCHAR},
- DFT_PinyinCode = #{dftPinyincode,jdbcType=VARCHAR},
- DFT_WubiCode = #{dftWubicode,jdbcType=VARCHAR},
- DFT_OtherCode = #{dftOthercode,jdbcType=VARCHAR},
- DFT_Operation_Time = #{dftOperationTime,jdbcType=TIMESTAMP},
- DFT_Operator = #{dftOperator,jdbcType=VARCHAR},
- DFT_IsDel = #{dftIsdel,jdbcType=INTEGER},
- HI_ID = #{hiId,jdbcType=INTEGER},
- DD_DepDm = #{ddDepdm,jdbcType=VARCHAR}
- where DFT_ID = #{dftId,jdbcType=INTEGER}
- </update>
- <update id="updateByStatus" parameterType="java.lang.Integer" >
- update dic_form_detail
- set DFT_IsDel = -1
- where DFT_ID = #{dftId,jdbcType=INTEGER}
- </update>
- <update id="updateStatus" parameterType="java.lang.Integer" >
- update dic_form_detail
- set DFT_IsDel = -1
- where DF_ID = #{dfId,jdbcType=INTEGER}
- </update>
- </mapper>
|