面试
This commit is contained in:
@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="msjgmnktjxdf" column="msjgmnktjxdf" />
|
||||
<result property="yjdf" column="yjdf" />
|
||||
<result property="zhdf2" column="zhdf2" />
|
||||
<result property="lqzt" column="lqzt" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJdcxVo">
|
||||
select id, faid, jsid, dqzt, createuserid, create_time, jdxshr, jdxshzt, sbly, qjshr, qjshzt, qjshyj, jdpx, alfxdf, jasjdf, gbzdf, zhdf, cjdrcreate_time, msqr, msqrcreate_time, msjgmnktjxdf, yjdf, zhdf2 from tsbz_jdcx
|
||||
select id, faid, jsid, dqzt, createuserid, create_time, jdxshr, jdxshzt, sbly, qjshr, qjshzt, qjshyj, jdpx, alfxdf, jasjdf, gbzdf, zhdf, cjdrcreate_time, msqr, msqrcreate_time, msjgmnktjxdf, yjdf, zhdf2, lqzt from tsbz_jdcx
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJdcxList" parameterType="TsbzJdcx" resultMap="TsbzJdcxResult">
|
||||
@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="msjgmnktjxdf != null "> and msjgmnktjxdf = #{msjgmnktjxdf}</if>
|
||||
<if test="yjdf != null "> and yjdf = #{yjdf}</if>
|
||||
<if test="zhdf2 != null "> and zhdf2 = #{zhdf2}</if>
|
||||
<if test="lqzt != null and lqzt != ''"> and lqzt = #{lqzt}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -91,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="msjgmnktjxdf != null">msjgmnktjxdf,</if>
|
||||
<if test="yjdf != null">yjdf,</if>
|
||||
<if test="zhdf2 != null">zhdf2,</if>
|
||||
<if test="lqzt != null">lqzt,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="faid != null">#{faid},</if>
|
||||
@ -115,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="msjgmnktjxdf != null">#{msjgmnktjxdf},</if>
|
||||
<if test="yjdf != null">#{yjdf},</if>
|
||||
<if test="zhdf2 != null">#{zhdf2},</if>
|
||||
<if test="lqzt != null">#{lqzt},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -143,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="msjgmnktjxdf != null">msjgmnktjxdf = #{msjgmnktjxdf},</if>
|
||||
<if test="yjdf != null">yjdf = #{yjdf},</if>
|
||||
<if test="zhdf2 != null">zhdf2 = #{zhdf2},</if>
|
||||
<if test="lqzt != null">lqzt = #{lqzt},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
@ -0,0 +1,71 @@
|
||||
<?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.ruoyi.jxjs.mapper.TsbzJxzxmdMapper">
|
||||
|
||||
<resultMap type="TsbzJxzxmd" id="TsbzJxzxmdResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="jsid" column="jsid" />
|
||||
<result property="nf" column="nf" />
|
||||
<result property="createuserid" column="createuserid" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJxzxmdVo">
|
||||
select id, jsid, nf, createuserid, create_time from tsbz_jxzxmd
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJxzxmdList" parameterType="TsbzJxzxmd" resultMap="TsbzJxzxmdResult">
|
||||
<include refid="selectTsbzJxzxmdVo"/>
|
||||
<where>
|
||||
<if test="jsid != null "> and jsid = #{jsid}</if>
|
||||
<if test="nf != null and nf != ''"> and nf = #{nf}</if>
|
||||
<if test="createuserid != null "> and createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJxzxmdById" parameterType="Long" resultMap="TsbzJxzxmdResult">
|
||||
<include refid="selectTsbzJxzxmdVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTsbzJxzxmd" parameterType="TsbzJxzxmd" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tsbz_jxzxmd
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jsid != null">jsid,</if>
|
||||
<if test="nf != null">nf,</if>
|
||||
<if test="createuserid != null">createuserid,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jsid != null">#{jsid},</if>
|
||||
<if test="nf != null">#{nf},</if>
|
||||
<if test="createuserid != null">#{createuserid},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTsbzJxzxmd" parameterType="TsbzJxzxmd">
|
||||
update tsbz_jxzxmd
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="jsid != null">jsid = #{jsid},</if>
|
||||
<if test="nf != null">nf = #{nf},</if>
|
||||
<if test="createuserid != null">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTsbzJxzxmdById" parameterType="Long">
|
||||
delete from tsbz_jxzxmd where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTsbzJxzxmdByIds" parameterType="String">
|
||||
delete from tsbz_jxzxmd where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user