12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?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.ygj.yuemum.dao.maternitymatron.MmInfoResumeDao" >
- <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
- <result column="resume_code" property="resume_code" jdbcType="INTEGER" />
- <result column="resume_path" property="resume_path" jdbcType="VARCHAR" />
- <result column="rqcode_path" property="rqcode_path" jdbcType="VARCHAR" />
- <result column="resume_comment" property="resume_comment" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, servant_code, module_code,resume_path,rqcode_path,resume_comment
- </sql>
- <!-- 得到所有的简历信息 -->
- <select id="getAll" resultMap="BaseResultMap" >
- select
- <include refid="Base_Column_List" />
- from mm_info_resume
- </select>
- <!-- 根据id查找某个简历信息 -->
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from mm_info_resume
- where servant_code = #{servant_code,jdbcType=INTEGER}
- </select>
- <!-- 根据id删除某个简历信息 -->
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from mm_info_resume
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <!-- 插入一条简历信息 -->
- <insert id="insertSelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
- insert into mm_info_resume
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="servant_code != null" >
- servant_code,
- </if>
- <if test="resume_code != null" >
- resume_code,
- </if>
- <if test="resume_path != null" >
- resume_path,
- </if>
- <if test="rqcode_path != null" >
- rqcode_path
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="servant_code != null" >
- #{servant_code,jdbcType=INTEGER},
- </if>
- <if test="resume_code != null" >
- #{resume_code,jdbcType=INTEGER},
- </if>
- <if test="resume_path != null" >
- #{resume_path,jdbcType=VARCHAR},
- </if>
- <if test="rqcode_path != null" >
- #{rqcode_path,jdbcType=VARCHAR}
- </if>
- </trim>
- </insert>
- <!-- 根据id更新一条简历信息 -->
- <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.maternitymatron.MmInfoResume" >
- update mm_info_resume
- <set >
- <if test="servant_code != null" >
- servant_code = #{servant_code,jdbcType=INTEGER},
- </if>
- <if test="resume_code != null" >
- resume_code = #{resume_code,jdbcType=INTEGER},
- </if>
- <if test="resume_path != null" >
- resume_path = #{resume_path,jdbcType=VARCHAR}
- </if>
- <if test="rqcode_path != null" >
- rqcode_path = #{rqcode_path,jdbcType=VARCHAR}
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|