| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.staff_management.mapper.RyglAddEmployeeMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="staff_management.domain.RyglAddEmployee"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.staff_management.domain.RyglAddEmployee"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="status" column="status" jdbcType="INTEGER"/> |
| | | <result property="employeeNumber" column="employee_number" jdbcType="VARCHAR"/> |
| | |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </delete> |
| | | |
| | | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="staff_management.domain.RyglAddEmployee" useGeneratedKeys="true"> |
| | | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.staff_management.domain.RyglAddEmployee" useGeneratedKeys="true"> |
| | | insert into rygl_add_employee |
| | | ( id,status,employee_number |
| | | ,name,sex,native_place |
| | |
| | | ,#{contractTerm,jdbcType=VARCHAR},#{contractStartDate,jdbcType=TIMESTAMP},#{contractEndDate,jdbcType=TIMESTAMP} |
| | | ) |
| | | </insert> |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="staff_management.domain.RyglAddEmployee" useGeneratedKeys="true"> |
| | | <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.staff_management.domain.RyglAddEmployee" useGeneratedKeys="true"> |
| | | insert into rygl_add_employee |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | <if test="contractEndDate != null">#{contractEndDate,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="staff_management.domain.RyglAddEmployee"> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.staff_management.domain.RyglAddEmployee"> |
| | | update rygl_add_employee |
| | | <set> |
| | | <if test="status != null"> |
| | |
| | | </set> |
| | | where id = #{id,jdbcType=INTEGER} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="staff_management.domain.RyglAddEmployee"> |
| | | <update id="updateByPrimaryKey" parameterType="com.ruoyi.staff_management.domain.RyglAddEmployee"> |
| | | update rygl_add_employee |
| | | set |
| | | status = #{status,jdbcType=INTEGER}, |