第四轮:FlowInstance/FlowNodeLog 后端骨架 + WcsFlowLogController升级 + flowlog前端页面 + flowlog API
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<?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.ruoyi.wcs.flow.mapper.WcsFlowNodeLogMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.wcs.flow.domain.WcsFlowNodeLog" id="WcsFlowNodeLogResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="instanceId" column="instance_id" />
|
||||
<result property="nodeId" column="node_id" />
|
||||
<result property="nodeType" column="node_type" />
|
||||
<result property="status" column="status" />
|
||||
<result property="input" column="input" />
|
||||
<result property="output" column="output" />
|
||||
<result property="errorMsg" column="error_msg" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectFlowNodeLogVo">
|
||||
select id, instance_id, node_id, node_type, status, input, output,
|
||||
error_msg, start_time, end_time, create_by, create_time
|
||||
from wcs_flow_node_log
|
||||
</sql>
|
||||
|
||||
<select id="selectFlowNodeLogList" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowNodeLog" resultMap="WcsFlowNodeLogResult">
|
||||
<include refid="selectFlowNodeLogVo"/>
|
||||
<where>
|
||||
<if test="instanceId != null">
|
||||
AND instance_id = #{instanceId}
|
||||
</if>
|
||||
<if test="nodeId != null and nodeId != ''">
|
||||
AND node_id = #{nodeId}
|
||||
</if>
|
||||
<if test="nodeType != null and nodeType != ''">
|
||||
AND node_type = #{nodeType}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
<select id="selectFlowNodeLogById" parameterType="Long" resultMap="WcsFlowNodeLogResult">
|
||||
<include refid="selectFlowNodeLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectFlowNodeLogByInstanceId" parameterType="Long" resultMap="WcsFlowNodeLogResult">
|
||||
<include refid="selectFlowNodeLogVo"/>
|
||||
where instance_id = #{instanceId}
|
||||
order by id asc
|
||||
</select>
|
||||
|
||||
<insert id="insertFlowNodeLog" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowNodeLog" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into wcs_flow_node_log(
|
||||
<if test="instanceId != null">instance_id,</if>
|
||||
<if test="nodeId != null and nodeId != ''">node_id,</if>
|
||||
<if test="nodeType != null and nodeType != ''">node_type,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="input != null and input != ''">input,</if>
|
||||
<if test="output != null and output != ''">output,</if>
|
||||
<if test="errorMsg != null and errorMsg != ''">error_msg,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="instanceId != null">#{instanceId},</if>
|
||||
<if test="nodeId != null and nodeId != ''">#{nodeId},</if>
|
||||
<if test="nodeType != null and nodeType != ''">#{nodeType},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="input != null and input != ''">#{input},</if>
|
||||
<if test="output != null and output != ''">#{output},</if>
|
||||
<if test="errorMsg != null and errorMsg != ''">#{errorMsg},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateFlowNodeLog" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowNodeLog">
|
||||
update wcs_flow_node_log
|
||||
<set>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="input != null">input = #{input},</if>
|
||||
<if test="output != null">output = #{output},</if>
|
||||
<if test="errorMsg != null">error_msg = #{errorMsg},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteFlowNodeLogById" parameterType="Long">
|
||||
delete from wcs_flow_node_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteFlowNodeLogByIds" parameterType="Long">
|
||||
delete from wcs_flow_node_log where id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteFlowNodeLogByInstanceId" parameterType="Long">
|
||||
delete from wcs_flow_node_log where instance_id = #{instanceId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user