新代办接口

This commit is contained in:
yuezhihang
2021-11-23 18:35:14 +08:00
parent f91d6d8354
commit b77393151d
5 changed files with 49 additions and 0 deletions
@@ -29,4 +29,26 @@
AND BUS_PROCESS_NEW.TASK_ID = #{taskId}
</if>
</select>
<select id="todoTask" resultType="com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName">
SELECT DATE_FORMAT(bus_process_name.CREAT_TIME,'%Y-%m-%d %T') as creatTime,bus_process_name.CREAT_USER as creatUser
,bus_process_name.CREATE_USER_NAME as createUserName,DATE_FORMAT(bus_process_name.END_TIME,'%Y-%m-%d %T') as endTime
,bus_process_name.ID as id ,bus_process_name.MES as mes,DATE_FORMAT(bus_process_name.OVER_TIME,'%Y-%m-%d %T') as overTime
,bus_process_name.PRC_ID as prcId,bus_process_name.PRC_MES as prcMes, bus_process_new.PRC_NAME as prcName
,bus_process_name.PRC_NUM as prcNum,bus_process_name.PRC_TYPE as prcType,act_ru_task.ASSIGNEE_ as taskAssignee
,bus_process_new.TASK_ID as taskIds,bus_process_new.TASK_INFO as taskInfo
FROM act_ru_task
LEFT JOIN bus_process_name on bus_process_name.PRC_ID = act_ru_task.PROC_INST_ID_
LEFT JOIN bus_process_new on bus_process_new.TASK_ID =act_ru_task.ID_
WHERE act_ru_task.ASSIGNEE_ = #{task.userId}
<if test="null != task.prcName and '' !=task.prcName ">
and bus_process_new.PRC_NAME like concat(concat('%',#{task.prcName}),'%')
</if>
<if test="null != task.prcNum and '' !=task.prcNum ">
and bus_process_name.PRC_NUM like concat(concat('%',#{task.prcNum}),'%')
</if>
<if test="null != task.prcType and '' !=task.prcType ">
and bus_process_name.PRC_TYPE like concat(concat('%',#{task.prcNum}),'%')
</if>
</select>
</mapper>