|
@@ -0,0 +1,176 @@
|
|
|
+<?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">
|
|
|
+<!-- namespace必须指向DAO接口 -->
|
|
|
+<mapper namespace="com.jpsoft.shinestar.modules.business.dao.YearRequestForLeaveInfoDAO">
|
|
|
+ <resultMap id="YearRequestForLeaveInfoMap" type="com.jpsoft.shinestar.modules.business.entity.YearRequestForLeaveInfo">
|
|
|
+ <id property="id" column="id_" />
|
|
|
+ <result property="startTime" column="start_time" />
|
|
|
+ <result property="endTime" column="end_time" />
|
|
|
+ <result property="imageUrl" column="image_url" />
|
|
|
+ <result property="reason" column="reason_" />
|
|
|
+ <result property="personId" column="person_id" />
|
|
|
+ <result property="personPopedomId" column="person_popedom_id" />
|
|
|
+ <result property="remark" column="remark_" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
+ <result property="approvalExplain" column="approval_explain" />
|
|
|
+ <result property="approvedTime" column="approved_time" />
|
|
|
+ <result property="startTimeQuantum" column="start_time_quantum" />
|
|
|
+ <result property="endTimeQuantum" column="end_time_quantum" />
|
|
|
+ <result property="approvalPersonIdStr" column="approval_person_id_str" />
|
|
|
+ <result property="approvalStatusStr" column="approval_status_str" />
|
|
|
+ <result property="approvalTimeStr" column="approval_time_str" />
|
|
|
+ <result property="approvalContentStr" column="approval_content_str" />
|
|
|
+ <result property="approvedPersonPopedomId" column="approved_person_popedom_id" />
|
|
|
+ <result property="days" column="days_" />
|
|
|
+ <result property="procinstId" column="procinst_id" />
|
|
|
+ </resultMap>
|
|
|
+ <insert id="insert" parameterType="com.jpsoft.shinestar.modules.business.entity.YearRequestForLeaveInfo">
|
|
|
+ <!--
|
|
|
+ <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
+ select sys_guid() from dual
|
|
|
+ </selectKey>
|
|
|
+ -->
|
|
|
+ <![CDATA[
|
|
|
+ insert into business_year_request_for_leave_info
|
|
|
+ (id_,start_time,end_time,image_url,reason_,person_id,person_popedom_id,remark_,create_by,create_time,update_by,update_time,del_flag,status_,approval_explain,approved_time,start_time_quantum,end_time_quantum,approval_person_id_str,approval_status_str,approval_time_str,approval_content_str,approved_person_popedom_id,days_,procinst_id)
|
|
|
+ values
|
|
|
+ (
|
|
|
+#{id,jdbcType=VARCHAR}
|
|
|
+,#{startTime,jdbcType= TIMESTAMP }
|
|
|
+,#{endTime,jdbcType= TIMESTAMP }
|
|
|
+,#{imageUrl,jdbcType=VARCHAR}
|
|
|
+,#{reason,jdbcType=VARCHAR}
|
|
|
+,#{personId,jdbcType= NUMERIC }
|
|
|
+,#{personPopedomId,jdbcType=VARCHAR}
|
|
|
+,#{remark,jdbcType=VARCHAR}
|
|
|
+,#{createBy,jdbcType=VARCHAR}
|
|
|
+,#{createTime,jdbcType= TIMESTAMP }
|
|
|
+,#{updateBy,jdbcType=VARCHAR}
|
|
|
+,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
+,#{delFlag,jdbcType= NUMERIC }
|
|
|
+,#{status,jdbcType= NUMERIC }
|
|
|
+,#{approvalExplain,jdbcType=VARCHAR}
|
|
|
+,#{approvedTime,jdbcType= TIMESTAMP }
|
|
|
+,#{startTimeQuantum,jdbcType=VARCHAR}
|
|
|
+,#{endTimeQuantum,jdbcType=VARCHAR}
|
|
|
+,#{approvalPersonIdStr,jdbcType=VARCHAR}
|
|
|
+,#{approvalStatusStr,jdbcType=VARCHAR}
|
|
|
+,#{approvalTimeStr,jdbcType=VARCHAR}
|
|
|
+,#{approvalContentStr,jdbcType=VARCHAR}
|
|
|
+,#{approvedPersonPopedomId,jdbcType=VARCHAR}
|
|
|
+,#{days,jdbcType=VARCHAR}
|
|
|
+,#{procinstId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ ]]>
|
|
|
+ </insert>
|
|
|
+ <delete id="delete" parameterType="string">
|
|
|
+ delete from business_year_request_for_leave_info where id_=#{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <update id="update" parameterType="com.jpsoft.shinestar.modules.business.entity.YearRequestForLeaveInfo">
|
|
|
+ update business_year_request_for_leave_info
|
|
|
+ <set>
|
|
|
+ <if test="startTime!=null">
|
|
|
+ start_time=#{startTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="endTime!=null">
|
|
|
+ end_time=#{endTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="imageUrl!=null">
|
|
|
+ image_url=#{imageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reason!=null">
|
|
|
+ reason_=#{reason,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personId!=null">
|
|
|
+ person_id=#{personId,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="personPopedomId!=null">
|
|
|
+ person_popedom_id=#{personPopedomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark!=null">
|
|
|
+ remark_=#{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createBy!=null">
|
|
|
+ create_by=#{createBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime!=null">
|
|
|
+ create_time=#{createTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="updateBy!=null">
|
|
|
+ update_by=#{updateBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime!=null">
|
|
|
+ update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="delFlag!=null">
|
|
|
+ del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="status!=null">
|
|
|
+ status_=#{status,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="approvalExplain!=null">
|
|
|
+ approval_explain=#{approvalExplain,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvedTime!=null">
|
|
|
+ approved_time=#{approvedTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="startTimeQuantum!=null">
|
|
|
+ start_time_quantum=#{startTimeQuantum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="endTimeQuantum!=null">
|
|
|
+ end_time_quantum=#{endTimeQuantum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvalPersonIdStr!=null">
|
|
|
+ approval_person_id_str=#{approvalPersonIdStr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvalStatusStr!=null">
|
|
|
+ approval_status_str=#{approvalStatusStr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvalTimeStr!=null">
|
|
|
+ approval_time_str=#{approvalTimeStr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvalContentStr!=null">
|
|
|
+ approval_content_str=#{approvalContentStr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="approvedPersonPopedomId!=null">
|
|
|
+ approved_person_popedom_id=#{approvedPersonPopedomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="days!=null">
|
|
|
+ days_=#{days,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="procinstId!=null">
|
|
|
+ procinst_id=#{procinstId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id_=#{id}
|
|
|
+ </update>
|
|
|
+ <select id="get" parameterType="string" resultMap="YearRequestForLeaveInfoMap">
|
|
|
+ select * from business_year_request_for_leave_info where id_=#{0}
|
|
|
+ </select>
|
|
|
+ <select id="exist" parameterType="string" resultType="int">
|
|
|
+ select count(*) from business_year_request_for_leave_info where id_=#{0}
|
|
|
+ </select>
|
|
|
+ <select id="list" resultMap="YearRequestForLeaveInfoMap">
|
|
|
+ select * from business_year_request_for_leave_info
|
|
|
+ </select>
|
|
|
+ <select id="search" parameterType="hashmap" resultMap="YearRequestForLeaveInfoMap">
|
|
|
+ <![CDATA[
|
|
|
+ select * from business_year_request_for_leave_info
|
|
|
+ ]]>
|
|
|
+ <where>
|
|
|
+ del_flag = false
|
|
|
+ <if test="searchParams.id != null">
|
|
|
+ and ID_ like #{searchParams.id}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
+ ${sort.name} ${sort.order}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+</mapper>
|