38 lines
1.4 KiB
XML
38 lines
1.4 KiB
XML
<?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.mcwl.resource.mapper.WorkFlowMapper">
|
|
|
|
<update id="updateWorkFlow">
|
|
UPDATE work_flow
|
|
<set>
|
|
<if test="workflowName != null and workflowName != ''">
|
|
workflow_name = #{workflowName},
|
|
</if>
|
|
<if test="category != null and category != ''">
|
|
category = #{category},
|
|
</if>
|
|
<if test="theme != null and theme != ''">
|
|
theme = #{theme},
|
|
</if>
|
|
<if test="style != null and style != ''">
|
|
style = #{style},
|
|
</if>
|
|
<if test="functions != null and functions != ''">
|
|
functions = #{functions},
|
|
</if>
|
|
<if test="activityParticipation != null">
|
|
activity_participation = #{activityParticipation}
|
|
</if>
|
|
<if test="auditStatus != null and auditStatus != ''">
|
|
audit_status = #{auditStatus}
|
|
</if>
|
|
</set>
|
|
WHERE id = #{id}
|
|
</update>
|
|
<select id="fetchWorkFlowSortedByTopStatus" resultType="com.mcwl.resource.domain.WorkFlow">
|
|
SELECT is_top FROM work_flow ORDER BY is_top DESC;
|
|
</select>
|
|
</mapper>
|