ActReDeploymentMapper.xml 1.55 KB
<?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.trash.activiti.mapper.ActReDeploymentMapper">

	<resultMap type="ActReDeploymentVO" id="ActReDeploymentResult">
		<id     property="id"       column="id"      />
		<result property="deployTime"       column="deploy_time"      />
	</resultMap>
	

	<sql id="selectDeploymentVo">
       select ID_ id,DEPLOY_TIME_ deploy_time from `act_re_deployment`
    </sql>

	
	<select id="selectActReDeploymentByIds"  parameterType="String" resultMap="ActReDeploymentResult">
	    <include refid="selectDeploymentVo"/>
		where ID_  in
		<foreach collection="ids" item="id" index="index" open="(" separator="," close=")">
			#{id}
		</foreach>
	</select>

	<select id="selectWorkLeaveById"  parameterType="String" resultType="java.util.Map">
	   	select start_time as startTime,end_time as endTime, reason,type from workflow where id = #{id}
	</select>
	
	<select id="selectUnCompleteWorkByUsername"  parameterType="String" resultType="java.lang.String">
	   		select instance_id from workflow where id in (select business_key from act_workflow_formdata where create_by = #{username} GROUP BY business_key)
	</select>
	
		<select id="selectCompleteWorkByUsername"  parameterType="String" resultType="java.lang.String">
			select ID_ from act_hi_procinst where BUSINESS_KEY_ in (select business_key from act_workflow_formdata where create_by =  #{username} GROUP BY business_key) and END_ACT_ID_ is not null
	</select>
	
</mapper>