ActReDeploymentMapper.xml
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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>