|
@@ -16,11 +16,12 @@
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="remark" column="remark"/>
|
|
<result property="remark" column="remark"/>
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
+ <result property="companyUserId" column="company_user_id"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsAiWorkflowVo">
|
|
<sql id="selectFsAiWorkflowVo">
|
|
|
select workflow_id, workflow_name, workflow_desc, workflow_type, status, version,
|
|
select workflow_id, workflow_name, workflow_desc, workflow_type, status, version,
|
|
|
- canvas_data, create_by, create_time, update_by, update_time, remark, del_flag
|
|
|
|
|
|
|
+ canvas_data, create_by, create_time, update_by, update_time, remark, del_flag, company_user_id
|
|
|
from fs_ai_workflow
|
|
from fs_ai_workflow
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -33,6 +34,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="workflowType != null">and workflow_type = #{workflowType}</if>
|
|
<if test="workflowType != null">and workflow_type = #{workflowType}</if>
|
|
|
<if test="status != null">and status = #{status}</if>
|
|
<if test="status != null">and status = #{status}</if>
|
|
|
|
|
+ <if test="companyUserId != null">and company_user_id = #{companyUserId}</if>
|
|
|
</where>
|
|
</where>
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
|
</select>
|
|
</select>
|
|
@@ -42,6 +44,12 @@
|
|
|
where workflow_id = #{workflowId} and del_flag = 0
|
|
where workflow_id = #{workflowId} and del_flag = 0
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <select id="selectFsAiWorkflowByCompanyUserId" parameterType="Long" resultMap="FsAiWorkflowResult">
|
|
|
|
|
+ <include refid="selectFsAiWorkflowVo"/>
|
|
|
|
|
+ where company_user_id = #{companyUserId} and del_flag = 0 and status = 1
|
|
|
|
|
+ order by create_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<insert id="insertFsAiWorkflow" parameterType="FsAiWorkflow" useGeneratedKeys="true" keyProperty="workflowId">
|
|
<insert id="insertFsAiWorkflow" parameterType="FsAiWorkflow" useGeneratedKeys="true" keyProperty="workflowId">
|
|
|
insert into fs_ai_workflow
|
|
insert into fs_ai_workflow
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -54,6 +62,7 @@
|
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
+ <if test="companyUserId != null">company_user_id,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="workflowName != null and workflowName != ''">#{workflowName},</if>
|
|
<if test="workflowName != null and workflowName != ''">#{workflowName},</if>
|
|
@@ -65,6 +74,7 @@
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
+ <if test="companyUserId != null">#{companyUserId},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|