first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

View File

@ -0,0 +1,171 @@
<?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="activiti.LeaveMapper" >
<resultMap id="BaseResultMap" type="com.sipai.entity.activiti.Leave" >
<id column="id" property="id" jdbcType="NUMERIC" />
<result column="apply_time" property="applyTime" jdbcType="TIMESTAMP" />
<result column="end_time" property="endTime" jdbcType="TIMESTAMP" />
<result column="leave_type" property="leaveType" jdbcType="VARCHAR" />
<result column="process_instance_id" property="processInstanceId" jdbcType="VARCHAR" />
<result column="reality_end_time" property="realityEndTime" jdbcType="TIMESTAMP" />
<result column="reality_start_time" property="realityStartTime" jdbcType="TIMESTAMP" />
<result column="reason" property="reason" jdbcType="VARCHAR" />
<result column="start_time" property="startTime" jdbcType="TIMESTAMP" />
<result column="user_id" property="userId" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, apply_time, end_time, leave_type, process_instance_id, reality_end_time, reality_start_time,
reason, start_time, user_id
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.math.BigDecimal" >
select
<include refid="Base_Column_List" />
from oa_leave
where id = #{id,jdbcType=NUMERIC}
</select>
<select id="selectByID" resultMap="BaseResultMap" parameterType="java.math.BigDecimal" >
select
<include refid="Base_Column_List" />
from oa_leave
where id = #{id,jdbcType=NUMERIC}
order by id
</select>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal" >
delete from oa_leave
where id = #{id,jdbcType=NUMERIC}
</delete>
<insert id="insert" parameterType="com.sipai.entity.activiti.Leave" >
insert into oa_leave (id, apply_time, end_time,
leave_type, process_instance_id, reality_end_time,
reality_start_time, reason, start_time,
user_id)
values (#{id,jdbcType=NUMERIC}, #{applyTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{leaveType,jdbcType=VARCHAR}, #{processInstanceId,jdbcType=VARCHAR}, #{realityEndTime,jdbcType=TIMESTAMP},
#{realityStartTime,jdbcType=TIMESTAMP}, #{reason,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
#{userId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sipai.entity.activiti.Leave" useGeneratedKeys="true" keyProperty="id">
insert into oa_leave
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="applyTime != null" >
apply_time,
</if>
<if test="endTime != null" >
end_time,
</if>
<if test="leaveType != null" >
leave_type,
</if>
<if test="processInstanceId != null" >
process_instance_id,
</if>
<if test="realityEndTime != null" >
reality_end_time,
</if>
<if test="realityStartTime != null" >
reality_start_time,
</if>
<if test="reason != null" >
reason,
</if>
<if test="startTime != null" >
start_time,
</if>
<if test="userId != null" >
user_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=NUMERIC},
</if>
<if test="applyTime != null" >
#{applyTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null" >
#{endTime,jdbcType=TIMESTAMP},
</if>
<if test="leaveType != null" >
#{leaveType,jdbcType=VARCHAR},
</if>
<if test="processInstanceId != null" >
#{processInstanceId,jdbcType=VARCHAR},
</if>
<if test="realityEndTime != null" >
#{realityEndTime,jdbcType=TIMESTAMP},
</if>
<if test="realityStartTime != null" >
#{realityStartTime,jdbcType=TIMESTAMP},
</if>
<if test="reason != null" >
#{reason,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
#{startTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null" >
#{userId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.activiti.Leave" >
update oa_leave
<set >
<if test="applyTime != null" >
apply_time = #{applyTime,jdbcType=TIMESTAMP},
</if>
<if test="endTime != null" >
end_time = #{endTime,jdbcType=TIMESTAMP},
</if>
<if test="leaveType != null" >
leave_type = #{leaveType,jdbcType=VARCHAR},
</if>
<if test="processInstanceId != null" >
process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
</if>
<if test="realityEndTime != null" >
reality_end_time = #{realityEndTime,jdbcType=TIMESTAMP},
</if>
<if test="realityStartTime != null" >
reality_start_time = #{realityStartTime,jdbcType=TIMESTAMP},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="startTime != null" >
start_time = #{startTime,jdbcType=TIMESTAMP},
</if>
<if test="userId != null" >
user_id = #{userId,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=NUMERIC}
</update>
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.activiti.Leave" >
update oa_leave
set apply_time = #{applyTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
leave_type = #{leaveType,jdbcType=VARCHAR},
process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
reality_end_time = #{realityEndTime,jdbcType=TIMESTAMP},
reality_start_time = #{realityStartTime,jdbcType=TIMESTAMP},
reason = #{reason,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=VARCHAR}
where id = #{id,jdbcType=NUMERIC}
</update>
<select id="selectListByWhere" resultMap="BaseResultMap"
parameterType="java.lang.String">
select
<include refid="Base_Column_List" />
from oa_leave
${where}
</select>
<delete id="deleteByWhere" parameterType="java.lang.String">
delete from oa_leave
${where}
</delete>
</mapper>