第四轮:FlowInstance/FlowNodeLog 后端骨架 + WcsFlowLogController升级 + flowlog前端页面 + flowlog API

This commit is contained in:
root
2026-03-17 22:51:34 +08:00
parent 912944c0b2
commit 3de2294ead
73 changed files with 6494 additions and 2 deletions

View File

@@ -0,0 +1,95 @@
<?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.WcsFlowInstanceMapper">
<resultMap type="com.ruoyi.wcs.flow.domain.WcsFlowInstance" id="WcsFlowInstanceResult">
<id property="id" column="id" />
<result property="flowDefId" column="flow_def_id" />
<result property="status" column="status" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectFlowInstanceVo">
select id, flow_def_id, status, start_time, end_time, remark,
create_by, create_time, update_by, update_time
from wcs_flow_instance
</sql>
<select id="selectFlowInstanceList" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowInstance" resultMap="WcsFlowInstanceResult">
<include refid="selectFlowInstanceVo"/>
<where>
<if test="flowDefId != null">
AND flow_def_id = #{flowDefId}
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="params.beginStartTime != null and params.beginStartTime != ''">
AND start_time &gt;= #{params.beginStartTime}
</if>
<if test="params.endStartTime != null and params.endStartTime != ''">
AND start_time &lt;= #{params.endStartTime}
</if>
</where>
order by id desc
</select>
<select id="selectFlowInstanceById" parameterType="Long" resultMap="WcsFlowInstanceResult">
<include refid="selectFlowInstanceVo"/>
where id = #{id}
</select>
<insert id="insertFlowInstance" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowInstance" useGeneratedKeys="true" keyProperty="id">
insert into wcs_flow_instance(
<if test="flowDefId != null">flow_def_id,</if>
<if test="status != null and status != ''">status,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="flowDefId != null">#{flowDefId},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateFlowInstance" parameterType="com.ruoyi.wcs.flow.domain.WcsFlowInstance">
update wcs_flow_instance
<set>
<if test="flowDefId != null">flow_def_id = #{flowDefId},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where id = #{id}
</update>
<delete id="deleteFlowInstanceById" parameterType="Long">
delete from wcs_flow_instance where id = #{id}
</delete>
<delete id="deleteFlowInstanceByIds" parameterType="Long">
delete from wcs_flow_instance where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>