Selaa lähdekoodia

新增sop元数据增删改

wangliang 1 vuosi sitten
vanhempi
commit
10db75f41d

+ 8 - 1
sop-business/src/main/resources/mapper/SysUserMapper.xml

@@ -52,7 +52,14 @@
                 and tffa.status = #{flowTaskTypeEnum}
             </if>
             <if test="type != null and type != ''">
-                and tfcf.type = #{type}
+                <choose>
+                    <when test="type == 'SOP_FLOW'">
+                        and (tfcf.type = 'OFFICE_SOP_FLOW' or tfcf.type = 'CLOUD_MARK_SOP_FLOW')
+                    </when>
+                    <otherwise>
+                        and tfcf.type = #{type}
+                    </otherwise>
+                </choose>
             </if>
             <if test="customName != null and customName != ''">
                 and sc.name like concat('%', #{customName}, '%')

+ 3 - 1
sop-common/src/main/java/com/qmth/sop/common/enums/TFCustomTypeEnum.java

@@ -17,7 +17,9 @@ public enum TFCustomTypeEnum {
 
     PROJECT_EXCHANGE_FLOW("项目计划变更流程", "projectExchangeFlow", "projectExchangeFlow.zip", "PE", null),
 
-    QUALITY_PROBLEM_FLOW("质量问题反馈流程", "qualityProblemFlow", "qualityProblemFlow.zip", "QF", null);
+    QUALITY_PROBLEM_FLOW("质量问题反馈流程", "qualityProblemFlow", "qualityProblemFlow.zip", "QF", null),
+
+    SOP_FLOW("SOP流程", null, null, null, null);
 
     private String title;