You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.4 KiB
50 lines
2.4 KiB
<?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.zdxt.flow.mapper.IMessageActionMapper">
|
|
|
|
<resultMap type="com.zdxt.flow.domain.TwkfMessageActionEntity" id="TwkfMessageActionResult">
|
|
<result property="logId" column="log_id"/>
|
|
<result property="messageId" column="message_id"/>
|
|
<result property="actionCode" column="action_code"/>
|
|
<result property="processTime" column="process_time"/>
|
|
<result property="proceeor" column="proceeor"/>
|
|
<result property="instId" column="inst_id"/>
|
|
<result property="roamId" column="roam_id"/>
|
|
<result property="actionType" column="action_type"/>
|
|
<result property="processIdea" column="process_idea"/>
|
|
<result property="actionName" column="action_name"/>
|
|
<result property="proceeorName" column="proceeor_name"/>
|
|
<result property="nodeId" column="node_id"/>
|
|
<result property="nodeName" column="node_name"/>
|
|
<result property="modelId" column="model_id"/>
|
|
<result property="nodeType" column="node_type"/>
|
|
<result property="sendBy" column="send_by"/>
|
|
<result property="sendName" column="send_name"/>
|
|
<result property="sendTime" column="send_time"/>
|
|
</resultMap>
|
|
|
|
<sql id="selectTwkfMessageActionVo">
|
|
select log_id, message_id, action_code, process_time, proceeor, inst_id, roam_id, action_type, process_idea, action_name, proceeor_name, node_id, node_name, model_id, node_type, send_by, send_name, send_time from twkf_message_action
|
|
</sql>
|
|
|
|
<select id="queryWorkloadByUserIds" resultMap="TwkfMessageActionResult">
|
|
select action.proceeor, action.action_type,model.application_type,count(*)
|
|
from twkf_message_action as action
|
|
inner join twkf_flow_instance as instance
|
|
inner join twkf_flow_model as model
|
|
where action.proceeor in
|
|
<foreach collection="userIdList" index="index" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
<if test="startTime != null and startTime != ''">
|
|
and action.processTime >= #{startTime}
|
|
</if>
|
|
<if test="endTime != null and endTime != ''">
|
|
and action.processTime <= #{endTime}
|
|
</if>
|
|
group by action.proceeor, action.action_type, model.application_type
|
|
</select>
|
|
|
|
</mapper>
|