[修改] target
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?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.adc.da.wkflow.business_main.mapper.BusProcessApproveMapper">
|
||||
|
||||
<select id="selectEoByPrcIdAndTask" resultType="com.adc.da.wkflow.business_main.entity.BusProcessApprove">
|
||||
select * from bus_process_approve where prc_id = #{prcId}
|
||||
Order by CREATE_DATE desc
|
||||
</select>
|
||||
<select id="selectEoByDataId" resultType="com.adc.da.wkflow.business_main.entity.BusProcessApprove">
|
||||
select * from bus_process_approve where data_id =#{dataId}
|
||||
</select>
|
||||
<select id="selectEoByTask" resultType="com.adc.da.wkflow.business_main.entity.BusProcessApprove">
|
||||
select * from bus_process_approve where task_id =#{taskId}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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.adc.da.wkflow.business_main.mapper.BusProcessEntrustMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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.adc.da.wkflow.business_main.mapper.BusProcessNameMapper">
|
||||
|
||||
<select id="findBusProcessNameForEnd"
|
||||
resultType="com.adc.da.wkflow.business_main.entity.BusProcessName">
|
||||
SELECT
|
||||
BUS_PROCESS_NAME.ID,
|
||||
BUS_PROCESS_NAME.PRC_ID,
|
||||
BUS_PROCESS_NAME.PRC_MES,
|
||||
BUS_PROCESS_NAME.OVER_TIME,
|
||||
BUS_PROCESS_NAME.PRC_NUM,
|
||||
BUS_PROCESS_NAME.CREAT_TIME,
|
||||
BUS_PROCESS_NAME.CREAT_USER,
|
||||
BUS_PROCESS_NAME.PRC_TYPE,
|
||||
BUS_PROCESS_NEW.USER_ID AS CREATE_USER_NAME,
|
||||
BUS_PROCESS_NAME.MES,
|
||||
BUS_PROCESS_NAME.END_TIME
|
||||
FROM
|
||||
BUS_PROCESS_NEW
|
||||
LEFT JOIN BUS_PROCESS_NAME ON BUS_PROCESS_NAME.PRC_ID = BUS_PROCESS_NEW.P_ID
|
||||
WHERE
|
||||
BUS_PROCESS_NAME.END_TIME IS NULL
|
||||
AND BUS_PROCESS_NAME.OVER_TIME > now( )
|
||||
AND date_add( now( ), INTERVAL 3 DAY ) > BUS_PROCESS_NAME.OVER_TIME
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?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.adc.da.wkflow.business_main.mapper.BusProcessNewMapper">
|
||||
|
||||
<select id="findNoExecuteBusProcessNew"
|
||||
resultType="com.adc.da.wkflow.business_main.entity.BusProcessNew">
|
||||
select BUS_PROCESS_NEW.* from BUS_PROCESS_NEW
|
||||
INNER JOIN ACT_HI_TASKINST on BUS_PROCESS_NEW.TASK_ID = ACT_HI_TASKINST.ID_
|
||||
where BUS_PROCESS_NEW.TASK_ID in
|
||||
<foreach collection="taskIds" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
and ACT_HI_TASKINST.END_TIME_ is null
|
||||
</select>
|
||||
|
||||
<select id="findNoExecuteBusProcessNewForEnd"
|
||||
resultType="com.adc.da.wkflow.business_main.entity.BusProcessNew">
|
||||
select BUS_PROCESS_NEW.* from BUS_PROCESS_NEW
|
||||
INNER JOIN ACT_HI_TASKINST on BUS_PROCESS_NEW.TASK_ID = ACT_HI_TASKINST.ID_
|
||||
where BUS_PROCESS_NEW.TASK_ID in
|
||||
<foreach collection="taskIds" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
-- and ACT_HI_TASKINST.END_TIME_ is NOT null
|
||||
</select>
|
||||
|
||||
<select id="queryTaskName" resultType="java.lang.String">
|
||||
SELECT NAME_ FROM ACT_HI_TASKINST WHERE ID_ = #{id}
|
||||
</select>
|
||||
<select id="selectEOByTaskId" resultType="com.adc.da.wkflow.business_main.entity.BusProcessNew">
|
||||
select BUS_PROCESS_NEW.* from BUS_PROCESS_NEW
|
||||
INNER JOIN ACT_HI_TASKINST on BUS_PROCESS_NEW.TASK_ID = ACT_HI_TASKINST.ID_
|
||||
where BUS_PROCESS_NEW.P_ID = #{prcId}
|
||||
order by CREATE_DATE desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?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.adc.da.wkflow.business_main.mapper.TaskMapper">
|
||||
|
||||
<resultMap id="taskEntityMap" type="org.activiti.engine.task.TaskInfo">
|
||||
<id property="id" column="ID_"/>
|
||||
<result property="rev" column="REV_"/>
|
||||
<result property="executionId" column="EXECUTION_ID_"/>
|
||||
<result property="processInstanceId" column="PROC_INST_ID_"/>
|
||||
<result property="processDefinitionId" column="PROC_DEF_ID_"/>
|
||||
<result property="name" column="NAME_"/>
|
||||
<result property="parentTaskId" column="PARENT_TASK_ID_"/>
|
||||
<result property="description" column="DESCRIPTION_"/>
|
||||
<result property="taskDefinitionKey" column="TASK_DEF_KEY_"/>
|
||||
<result property="owner" column="OWNER_"/>
|
||||
<result property="assignee" column="ASSIGNEE_"/>
|
||||
<result property="delegation" column="DELEGATION_"/>
|
||||
<result property="priority" column="PRIORITY_"/>
|
||||
<result property="createTime" column="CREATE_TIME_" javaType="java.util.Date"/>
|
||||
<result property="dueDate" column="DUE_DATE_" javaType="java.util.Date"/>
|
||||
<result property="category" column="CATEGORY_"/>
|
||||
<result property="suspensionState" column="SUSPENSION_STATE_"/>
|
||||
<result property="tenantId" column="TENANT_ID_"/>
|
||||
<result property="formKey" column="FORM_KEY_"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="todoTaskList" resultMap="taskEntityMap">
|
||||
select distinct RES.* from ACT_RU_TASK RES
|
||||
left join ACT_RU_IDENTITYLINK I on I.TASK_ID_ = RES.ID_
|
||||
inner join ACT_RE_PROCDEF D on RES.PROC_DEF_ID_ = D.ID_
|
||||
<where>
|
||||
<if test="pageVO.name !='' and pageVO.name !=null">
|
||||
and RES.NAME_ LIKE #{pageVO.name}
|
||||
</if>
|
||||
<if test="pageVO.startTime !='' and pageVO.startTime !=null">
|
||||
and RES.CREATE_TIME_ >= #{pageVO.startTime}
|
||||
</if>
|
||||
<if test="pageVO.endTime !='' and pageVO.endTime !=null">
|
||||
and RES.CREATE_TIME_ < #{pageVO.endTime}
|
||||
</if>
|
||||
(RES.ASSIGNEE_=#{pageVO.userId} or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' and
|
||||
(I.USER_ID_=#{pageVO.userId} )))
|
||||
or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' )
|
||||
</where>
|
||||
order by RES.CREATE_TIME_ desc
|
||||
</select>
|
||||
<select id="todoTaskListCount" resultType="java.lang.Long">
|
||||
select count(1) from
|
||||
( select distinct RES.* from ACT_RU_TASK RES
|
||||
left join ACT_RU_IDENTITYLINK I on I.TASK_ID_ = RES.ID_
|
||||
inner join ACT_RE_PROCDEF D on RES.PROC_DEF_ID_ = D.ID_
|
||||
<where>
|
||||
<if test="pageVO.name !='' and pageVO.name !=null">
|
||||
and RES.NAME_ LIKE #{pageVO.name}
|
||||
</if>
|
||||
<if test="pageVO.startTime !='' and pageVO.startTime !=null">
|
||||
and RES.CREATE_TIME_ >= #{pageVO.startTime}
|
||||
</if>
|
||||
<if test="pageVO.endTime !='' and pageVO.endTime !=null">
|
||||
and RES.CREATE_TIME_ < #{pageVO.endTime}
|
||||
</if>
|
||||
(RES.ASSIGNEE_=#{pageVO.userId} or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' and (I.USER_ID_=#{pageVO.userId} )))
|
||||
or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' )
|
||||
</where>
|
||||
|
||||
order by RES.CREATE_TIME_ desc
|
||||
)num
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user