Sfoglia il codice sorgente

工作流信息更改

hym 4 anni fa
parent
commit
758ce46419

+ 1 - 0
operation_manager/src/main/java/com/huaxu/process/service/impl/WorkFlowServiceImpl.java

@@ -174,6 +174,7 @@ public class WorkFlowServiceImpl implements WorkFlowService {
                 processDefinition.setStatus(1);
                 processDefinition.setCreateBy(UserUtil.getCurrentUser().getUsername());
                 processDefinition.setDateCreate(new Date());
+                processDefinition.setId(null);
                 processDefinitionMapper.insert(processDefinition);
 
             }

+ 1 - 1
operation_manager/src/main/resources/mapper/ProcessDefinitionMapper.xml

@@ -326,6 +326,6 @@
         </where>
     </select>
     <select id="getBpmnContent" resultType="java.lang.String">
-        select bpmn_content from sc_process_def where status = 1 and id = #{id}
+        select bpmn_content from sc_process_definition where status = 1 and id = #{id}
     </select>
 </mapper>