Browse Source

pdf加文字水印

yuedefeng 6 năm trước cách đây
mục cha
commit
e693abb8fd

+ 124 - 3
src/main/java/com/common/workflow/service/util/Word2Pdf.java

@@ -1,11 +1,11 @@
 package com.common.workflow.service.util;
 
-import com.aspose.words.Document;
-import com.aspose.words.License;
-import com.aspose.words.SaveFormat;
+import com.aspose.words.*;
+import com.aspose.words.Shape;
 
 
 import javax.servlet.http.HttpServletResponse;
+import java.awt.*;
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.io.OutputStream;
@@ -59,4 +59,125 @@ public class Word2Pdf {
             e.printStackTrace();
         }
     }
+
+    public static void word2PdfWithWatermark(String watermark, String Address, HttpServletResponse response) {
+        if (!getLicense()) {          // 验证License 若不验证则转化出的pdf文档会有水印产生
+            return;
+        }
+        try {
+            URL url = new URL(Address);
+            HttpURLConnection conn = (HttpURLConnection)url.openConnection();
+            //得到输入流
+            InputStream inputStream = conn.getInputStream();
+
+            //TxtLoadOptions lo = new TxtLoadOptions();
+            //lo.setEncoding(Encoding.getUTF8());
+            Document doc = new Document(inputStream);// 原始excel路径
+            removeWatermark(doc);
+            insertWatermarkText(doc, watermark);
+
+            /*PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(SaveFormat.PDF);
+            pdfSaveOptions.setOnePagePerSheet(true);
+            pdfSaveOptions.setAllColumnsInOnePagePerSheet(true);
+            pdfSaveOptions.setDefaultFont("SimSun");
+            pdfSaveOptions.setEmbedStandardWindowsFonts(true);
+            response.setContentType("application/pdf");
+            response.setCharacterEncoding("UTF-8");*/
+            OutputStream output = response.getOutputStream();
+            doc.save(output, SaveFormat.PDF);
+            output.flush();
+            inputStream.close();
+            output.close();
+        }catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+
+    /**
+     *
+     * Inserts a watermark into a document.
+     *
+     * @param doc The input document.
+     * @param watermarkText Text of the watermark.
+     *
+     */
+    private static void insertWatermarkText(Document doc, String watermarkText) throws Exception {
+        // Create a watermark shape. This will be a WordArt shape.
+        // You are free to try other shape types as watermarks.
+        Shape watermark = new Shape(doc, ShapeType.TEXT_PLAIN_TEXT);
+        // Set up the text of the watermark.
+        watermark.getTextPath().setText(watermarkText);
+        watermark.getTextPath().setFontFamily("Arial");
+        watermark.setWidth(500);
+        watermark.setHeight(15);
+        // Text will be directed from the bottom-left to the top-right corner.
+        watermark.setRotation(-40);
+        // Remove the following two lines if you need a solid black text.
+        watermark.getFill().setColor(Color.lightGray); // Try LightGray to get more Word-style watermark
+        watermark.setStrokeColor(Color.lightGray); // Try LightGray to get more Word-style watermark
+        // Place the watermark in the page center.
+        watermark.setRelativeHorizontalPosition(RelativeHorizontalPosition.PAGE);
+        watermark.setRelativeVerticalPosition(RelativeVerticalPosition.PAGE);
+        watermark.setWrapType(WrapType.NONE);
+        watermark.setVerticalAlignment(VerticalAlignment.CENTER);
+        watermark.setHorizontalAlignment(HorizontalAlignment.CENTER);
+        // Create a new paragraph and append the watermark to this paragraph.
+        Paragraph watermarkPara = new Paragraph(doc);
+        watermarkPara.appendChild(watermark);
+        // Insert the watermark into all headers of each document section.
+        for (Section sect : doc.getSections()) {
+            // There could be up to three different headers in each section, since we want
+            // the watermark to appear on all pages, insert into all headers.
+            insertWatermarkIntoHeader(watermarkPara, sect, HeaderFooterType.HEADER_PRIMARY);
+            insertWatermarkIntoHeader(watermarkPara, sect, HeaderFooterType.HEADER_FIRST);
+            insertWatermarkIntoHeader(watermarkPara, sect, HeaderFooterType.HEADER_EVEN);
+        }
+    }
+
+    /**
+     * 插入水印
+     * @param watermarkPara
+     * @param sect
+     * @param headerType
+     * @throws Exception
+     */
+    private static void insertWatermarkIntoHeader(Paragraph watermarkPara, Section sect, int headerType) throws Exception {
+        HeaderFooter header = sect.getHeadersFooters().getByHeaderFooterType(headerType);
+        if (header == null) {
+            // There is no header of the specified type in the current section, create it.
+            header = new HeaderFooter(sect.getDocument(), headerType);
+            sect.getHeadersFooters().add(header);
+        }
+
+        // Insert a clone of the watermark into the header.
+        header.appendChild(watermarkPara.deepClone(true));
+    }
+
+    /**
+     * 移除全部水印
+     * @param doc
+     * @throws Exception
+     */
+    private static void removeWatermark(Document doc) throws Exception {
+        for (Section sect : doc.getSections()) {
+            // There could be up to three different headers in each section, since we want
+            // the watermark to appear on all pages, insert into all headers.
+            removeWatermarkFromHeader(sect, HeaderFooterType.HEADER_PRIMARY);
+            removeWatermarkFromHeader(sect, HeaderFooterType.HEADER_FIRST);
+            removeWatermarkFromHeader(sect, HeaderFooterType.HEADER_EVEN);
+        }
+    }
+
+    /**
+     * 移除指定Section的水印
+     * @param sect
+     * @param headerType
+     * @throws Exception
+     */
+    private static void removeWatermarkFromHeader(Section sect, int headerType) throws Exception {
+        HeaderFooter header = sect.getHeadersFooters().getByHeaderFooterType(headerType);
+        if (header != null) {
+            header.removeAllChildren();
+        }
+    }
 }

+ 5 - 0
src/main/java/com/common/workflow/web/rest/AposeResource.java

@@ -35,4 +35,9 @@ public class AposeResource {
         Word2Pdf.word2Pdf(aposeVM.getAddressUrl(), response);
     }
 
+    @PostMapping("/word-to-pdf-watermark")
+    public void Word2PdfWithWatermark(@Valid @RequestBody AposeVM aposeVM, HttpServletResponse response) {
+        Word2Pdf.word2PdfWithWatermark(aposeVM.getWatermark(), aposeVM.getAddressUrl(), response);
+    }
+
 }

+ 9 - 0
src/main/java/com/common/workflow/web/rest/vm/AposeVM.java

@@ -5,6 +5,7 @@ package com.common.workflow.web.rest.vm;
  */
 public class AposeVM {
     private String addressUrl;
+    private String watermark;
 
     public String getAddressUrl() {
         return addressUrl;
@@ -13,4 +14,12 @@ public class AposeVM {
     public void setAddressUrl(String addressUrl) {
         this.addressUrl = addressUrl;
     }
+
+    public String getWatermark() {
+        return watermark;
+    }
+
+    public void setWatermark(String watermark) {
+        this.watermark = watermark;
+    }
 }

+ 167 - 0
src/main/resources/processes/oil_enuser_append_apply.bpmn20.xml

@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
+  <process id="oil_enuser_append_apply" name="oil_enuser_append_apply" isExecutable="true">
+    <documentation>企业用户增项审批流程</documentation>
+    <startEvent id="sid-9A4918D7-8376-4A00-928A-6415D92565EC" name="开始"></startEvent>
+    <userTask id="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" name="二级单位分办" activiti:candidateUsers="${users}"></userTask>
+    <userTask id="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" name="业务处室专业审批" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></exclusiveGateway>
+    <userTask id="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" name="二级单位复审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-E178BD57-68C0-4C23-8952-143905257209"></exclusiveGateway>
+    <userTask id="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" name="二级单位初审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></exclusiveGateway>
+    <userTask id="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" name="集中审批" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-025875DE-EAC2-4FBC-B4A4-91377D669895"></exclusiveGateway>
+    <endEvent id="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D"></endEvent>
+    <intermediateThrowEvent id="sid-3DF26A43-3984-4930-AA15-6CBD627202FE"></intermediateThrowEvent>
+    <sequenceFlow id="sid-89ED731E-278D-4033-8445-73676D8B5F0A" name="审批" sourceRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" targetRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></sequenceFlow>
+    <sequenceFlow id="sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4" sourceRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" targetRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895"></sequenceFlow>
+    <sequenceFlow id="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" sourceRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" targetRef="sid-E178BD57-68C0-4C23-8952-143905257209"></sequenceFlow>
+    <sequenceFlow id="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <userTask id="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" name="业务处室接收" activiti:candidateUsers="${users}"></userTask>
+    <sequenceFlow id="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" name="通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <userTask id="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" name="企业用户申请" activiti:assignee="${recorder}">
+      <extensionElements>
+        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
+      </extensionElements>
+    </userTask>
+    <sequenceFlow id="sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C" name="审核不通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-C3D25850-602F-4EB4-ACB0-28802630A689" sourceRef="sid-9A4918D7-8376-4A00-928A-6415D92565EC" targetRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E"></sequenceFlow>
+    <sequenceFlow id="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" sourceRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" targetRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF"></sequenceFlow>
+    <sequenceFlow id="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" sourceRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF"></sequenceFlow>
+    <sequenceFlow id="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" sourceRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" targetRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></sequenceFlow>
+    <sequenceFlow id="sid-C17BDEB5-74AD-41D3-96D4-89E5D1A42C79" sourceRef="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" targetRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397"></sequenceFlow>
+    <sequenceFlow id="sid-80E2DC63-571F-46E0-AB37-B348B0EBE989" name="通过" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" name="不通过" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" name="通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3"></sequenceFlow>
+    <sequenceFlow id="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" name="通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+  </process>
+  <bpmndi:BPMNDiagram id="BPMNDiagram_oil_enuser_append_apply">
+    <bpmndi:BPMNPlane bpmnElement="oil_enuser_append_apply" id="BPMNPlane_oil_enuser_append_apply">
+      <bpmndi:BPMNShape bpmnElement="sid-9A4918D7-8376-4A00-928A-6415D92565EC" id="BPMNShape_sid-9A4918D7-8376-4A00-928A-6415D92565EC">
+        <omgdc:Bounds height="30.0" width="30.0" x="15.000000000000002" y="284.9999973509048"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" id="BPMNShape_sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999997" x="210.00000000000003" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" id="BPMNShape_sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF">
+        <omgdc:Bounds height="79.99999999999994" width="100.0" x="840.0000000000001" y="259.9999973509052"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" id="BPMNShape_sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23">
+        <omgdc:Bounds height="40.0" width="40.0" x="975.0000000000001" y="279.9999973509047"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" id="BPMNShape_sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999989" x="525.0000000000001" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-E178BD57-68C0-4C23-8952-143905257209" id="BPMNShape_sid-E178BD57-68C0-4C23-8952-143905257209">
+        <omgdc:Bounds height="40.0" width="40.0" x="645.0000000000001" y="279.99999735090523"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" id="BPMNShape_sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999994" x="330.00000000000006" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" id="BPMNShape_sid-C9D007EC-DA5F-480E-A280-EBF70615C514">
+        <omgdc:Bounds height="40.0" width="40.0" x="450.00000000000006" y="279.9999973509048"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" id="BPMNShape_sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3">
+        <omgdc:Bounds height="80.0" width="100.00000000000023" x="1050.0000000000002" y="259.999997350905"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" id="BPMNShape_sid-025875DE-EAC2-4FBC-B4A4-91377D669895">
+        <omgdc:Bounds height="40.0" width="40.0" x="1185.0000000000002" y="279.9999973509047"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D" id="BPMNShape_sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+        <omgdc:Bounds height="28.0" width="28.0" x="1260.0000000000002" y="285.9999973509047"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-3DF26A43-3984-4930-AA15-6CBD627202FE" id="BPMNShape_sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+        <omgdc:Bounds height="30.0" width="30.0" x="1190.0000000000005" y="375.0000000000001"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" id="BPMNShape_sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
+        <omgdc:Bounds height="80.0" width="100.0" x="720.0000000000001" y="259.9999973509051"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-F49D476A-2CDD-4A35-8212-D88BA71F604E" id="BPMNShape_sid-F49D476A-2CDD-4A35-8212-D88BA71F604E">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999999" x="75.00000000000001" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge bpmnElement="sid-89ED731E-278D-4033-8445-73676D8B5F0A" id="BPMNEdge_sid-89ED731E-278D-4033-8445-73676D8B5F0A">
+        <omgdi:waypoint x="940.0000000000001" y="299.9999973509049"></omgdi:waypoint>
+        <omgdi:waypoint x="975.0" y="299.9999973509048"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C" id="BPMNEdge_sid-FCCDF8E6-9500-4D5F-A79C-CE674F870F6C">
+        <omgdi:waypoint x="995.0000000000001" y="319.9999973509047"></omgdi:waypoint>
+        <omgdi:waypoint x="995.0000000000002" y="390.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="1190.0000000000005" y="390.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" id="BPMNEdge_sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170">
+        <omgdi:waypoint x="1205.3932584301438" y="319.6067389207612"></omgdi:waypoint>
+        <omgdi:waypoint x="1205.0837975725503" y="375.00023406959855"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" id="BPMNEdge_sid-C0B325B4-3F9E-4498-9045-0277541DA2FC">
+        <omgdi:waypoint x="310.0" y="295.0"></omgdi:waypoint>
+        <omgdi:waypoint x="330.00000000000006" y="295.0"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" id="BPMNEdge_sid-2BD5B023-739C-4D78-8F49-F1B96336102D">
+        <omgdi:waypoint x="430.0" y="297.77777630605823"></omgdi:waypoint>
+        <omgdi:waypoint x="451.052631050596" y="298.94736630030883"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C17BDEB5-74AD-41D3-96D4-89E5D1A42C79" id="BPMNEdge_sid-C17BDEB5-74AD-41D3-96D4-89E5D1A42C79">
+        <omgdi:waypoint x="175.0" y="295.0"></omgdi:waypoint>
+        <omgdi:waypoint x="210.00000000000003" y="295.0"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" id="BPMNEdge_sid-C916BA74-384F-4684-8ADB-16EA158FDE07">
+        <omgdi:waypoint x="489.50000045757105" y="299.49999780847577"></omgdi:waypoint>
+        <omgdi:waypoint x="525.0000000000001" y="297.63157767985876"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-80E2DC63-571F-46E0-AB37-B348B0EBE989" id="BPMNEdge_sid-80E2DC63-571F-46E0-AB37-B348B0EBE989">
+        <omgdi:waypoint x="1224.6397058823532" y="300.3602914685518"></omgdi:waypoint>
+        <omgdi:waypoint x="1260.000372940503" y="300.1021844097332"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" id="BPMNEdge_sid-22C499F4-7179-4558-BC4C-77EF7453FA56">
+        <omgdi:waypoint x="820.0000000000001" y="299.9999973509051"></omgdi:waypoint>
+        <omgdi:waypoint x="840.0000000000001" y="299.9999973509051"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" id="BPMNEdge_sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31">
+        <omgdi:waypoint x="470.50000000000006" y="319.4999973509048"></omgdi:waypoint>
+        <omgdi:waypoint x="470.5000000000001" y="390.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="1190.0000000000005" y="390.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" id="BPMNEdge_sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11">
+        <omgdi:waypoint x="684.5913461538463" y="300.40865119705904"></omgdi:waypoint>
+        <omgdi:waypoint x="720.0000000000001" y="300.23923180066595"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4" id="BPMNEdge_sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4">
+        <omgdi:waypoint x="1150.0000000000005" y="300.2369641755494"></omgdi:waypoint>
+        <omgdi:waypoint x="1185.4047619047622" y="300.4047592556667"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" id="BPMNEdge_sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D">
+        <omgdi:waypoint x="625.0" y="298.4721860703261"></omgdi:waypoint>
+        <omgdi:waypoint x="645.1299150667471" y="299.8700822841582"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C3D25850-602F-4EB4-ACB0-28802630A689" id="BPMNEdge_sid-C3D25850-602F-4EB4-ACB0-28802630A689">
+        <omgdi:waypoint x="44.97926746191112" y="299.2116152706095"></omgdi:waypoint>
+        <omgdi:waypoint x="75.00000000000001" y="297.6315775531078"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" id="BPMNEdge_sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32">
+        <omgdi:waypoint x="665.0000000000001" y="319.99999735090523"></omgdi:waypoint>
+        <omgdi:waypoint x="665.0000000000002" y="390.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="1190.0000000000005" y="390.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-E19E2941-6B2A-4114-B292-5D789BA0959A" id="BPMNEdge_sid-E19E2941-6B2A-4114-B292-5D789BA0959A">
+        <omgdi:waypoint x="1014.5913461538462" y="300.40865119705865"></omgdi:waypoint>
+        <omgdi:waypoint x="1050.0000000000002" y="300.23923180066566"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+</definitions>

+ 132 - 0
src/main/resources/processes/oil_first_enuser_append_apply.bpmn20.xml

@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
+  <process id="oil_first_enuser_append_apply" name="oil_first_enuser_append_apply" isExecutable="true">
+    <documentation>企业用户一级物资增项审批流程</documentation>
+    <startEvent id="sid-9A4918D7-8376-4A00-928A-6415D92565EC" name="开始"></startEvent>
+    <userTask id="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" name="二级单位分办" activiti:candidateUsers="${users}"></userTask>
+    <userTask id="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" name="二级单位复审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-E178BD57-68C0-4C23-8952-143905257209"></exclusiveGateway>
+    <userTask id="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" name="二级单位初审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></exclusiveGateway>
+    <userTask id="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" name="集中审批" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-025875DE-EAC2-4FBC-B4A4-91377D669895"></exclusiveGateway>
+    <endEvent id="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D"></endEvent>
+    <intermediateThrowEvent id="sid-3DF26A43-3984-4930-AA15-6CBD627202FE"></intermediateThrowEvent>
+    <sequenceFlow id="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" sourceRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" targetRef="sid-E178BD57-68C0-4C23-8952-143905257209"></sequenceFlow>
+    <sequenceFlow id="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" sourceRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" targetRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></sequenceFlow>
+    <sequenceFlow id="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" sourceRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF"></sequenceFlow>
+    <sequenceFlow id="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" name="通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4" sourceRef="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" targetRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895"></sequenceFlow>
+    <sequenceFlow id="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-80E2DC63-571F-46E0-AB37-B348B0EBE989" sourceRef="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" targetRef="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <userTask id="sid-596FE9B9-3ABC-4D46-9775-165DD1AEE641" name="企业用户申请" activiti:assignee="${recorder}">
+      <extensionElements>
+        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
+      </extensionElements>
+    </userTask>
+    <sequenceFlow id="sid-2EE39891-17BB-4F1F-9D4B-8714F85CB05E" sourceRef="sid-9A4918D7-8376-4A00-928A-6415D92565EC" targetRef="sid-596FE9B9-3ABC-4D46-9775-165DD1AEE641"></sequenceFlow>
+    <sequenceFlow id="sid-91D1F045-5F6D-4F6F-9460-C67E468B8A48" sourceRef="sid-596FE9B9-3ABC-4D46-9775-165DD1AEE641" targetRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397"></sequenceFlow>
+  </process>
+  <bpmndi:BPMNDiagram id="BPMNDiagram_oil_first_enuser_append_apply">
+    <bpmndi:BPMNPlane bpmnElement="oil_first_enuser_append_apply" id="BPMNPlane_oil_first_enuser_append_apply">
+      <bpmndi:BPMNShape bpmnElement="sid-9A4918D7-8376-4A00-928A-6415D92565EC" id="BPMNShape_sid-9A4918D7-8376-4A00-928A-6415D92565EC">
+        <omgdc:Bounds height="30.0" width="29.999999999999996" x="30.000000000000004" y="284.9999973509054"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" id="BPMNShape_sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
+        <omgdc:Bounds height="79.99999999999994" width="99.99999999999997" x="225.00000000000003" y="259.9999973509055"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" id="BPMNShape_sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+        <omgdc:Bounds height="79.99999999999994" width="99.99999999999989" x="570.0000000000001" y="259.9999973509049"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-E178BD57-68C0-4C23-8952-143905257209" id="BPMNShape_sid-E178BD57-68C0-4C23-8952-143905257209">
+        <omgdc:Bounds height="40.0" width="40.0" x="705.0000000000001" y="279.99999735090574"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" id="BPMNShape_sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
+        <omgdc:Bounds height="80.0" width="99.99999999999994" x="360.00000000000006" y="259.9999973509055"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" id="BPMNShape_sid-C9D007EC-DA5F-480E-A280-EBF70615C514">
+        <omgdc:Bounds height="40.0" width="39.99999999999994" x="495.00000000000006" y="279.9999973509056"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3" id="BPMNShape_sid-7937AEA9-F0D6-4FF1-9E7F-23238B42D7A3">
+        <omgdc:Bounds height="80.0" width="100.00000000000023" x="780.0000000000001" y="259.9999973509057"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-025875DE-EAC2-4FBC-B4A4-91377D669895" id="BPMNShape_sid-025875DE-EAC2-4FBC-B4A4-91377D669895">
+        <omgdc:Bounds height="40.0" width="40.0" x="915.0000000000001" y="279.9999973509048"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D" id="BPMNShape_sid-2AC44FDA-FEF7-4D32-A690-54A5C6AAF46D">
+        <omgdc:Bounds height="28.0" width="28.0" x="990.0000000000001" y="285.99999735090523"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-3DF26A43-3984-4930-AA15-6CBD627202FE" id="BPMNShape_sid-3DF26A43-3984-4930-AA15-6CBD627202FE">
+        <omgdc:Bounds height="30.0" width="30.0" x="920.0000000000002" y="345.0000000000001"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-596FE9B9-3ABC-4D46-9775-165DD1AEE641" id="BPMNShape_sid-596FE9B9-3ABC-4D46-9775-165DD1AEE641">
+        <omgdc:Bounds height="80.0" width="99.99999999999999" x="90.00000000000001" y="259.9999973509048"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge bpmnElement="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" id="BPMNEdge_sid-C916BA74-384F-4684-8ADB-16EA158FDE07">
+        <omgdi:waypoint x="534.5913461538463" y="300.40865119705927"></omgdi:waypoint>
+        <omgdi:waypoint x="570.0000000000001" y="300.239231800666"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-91D1F045-5F6D-4F6F-9460-C67E468B8A48" id="BPMNEdge_sid-91D1F045-5F6D-4F6F-9460-C67E468B8A48">
+        <omgdi:waypoint x="190.0" y="299.999997350905"></omgdi:waypoint>
+        <omgdi:waypoint x="225.00000000000003" y="299.99999735090523"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170" id="BPMNEdge_sid-FD0572E4-B0BC-49D2-9F15-C38057F3D170">
+        <omgdi:waypoint x="935.3389830580772" y="319.66101429282764"></omgdi:waypoint>
+        <omgdi:waypoint x="935.1260459641738" y="345.0005295955186"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-80E2DC63-571F-46E0-AB37-B348B0EBE989" id="BPMNEdge_sid-80E2DC63-571F-46E0-AB37-B348B0EBE989">
+        <omgdi:waypoint x="954.6397058823529" y="300.36029146855196"></omgdi:waypoint>
+        <omgdi:waypoint x="990.0003729405029" y="300.1021844097336"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" id="BPMNEdge_sid-2BD5B023-739C-4D78-8F49-F1B96336102D">
+        <omgdi:waypoint x="460.0" y="299.9999973509056"></omgdi:waypoint>
+        <omgdi:waypoint x="495.00000000000006" y="299.9999973509056"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" id="BPMNEdge_sid-C0B325B4-3F9E-4498-9045-0277541DA2FC">
+        <omgdi:waypoint x="325.0" y="299.99999735090546"></omgdi:waypoint>
+        <omgdi:waypoint x="360.00000000000006" y="299.9999973509055"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-2EE39891-17BB-4F1F-9D4B-8714F85CB05E" id="BPMNEdge_sid-2EE39891-17BB-4F1F-9D4B-8714F85CB05E">
+        <omgdi:waypoint x="60.0" y="299.9999973509053"></omgdi:waypoint>
+        <omgdi:waypoint x="90.00000000000001" y="299.9999973509051"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" id="BPMNEdge_sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31">
+        <omgdi:waypoint x="515.5" y="319.4999973509056"></omgdi:waypoint>
+        <omgdi:waypoint x="515.5" y="360.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="920.0000000000002" y="360.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" id="BPMNEdge_sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11">
+        <omgdi:waypoint x="744.6727272727275" y="300.32727007817846"></omgdi:waypoint>
+        <omgdi:waypoint x="780.0000000000001" y="300.0090063599147"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4" id="BPMNEdge_sid-7B00C50E-3979-4923-B9D9-0FC3F918ADE4">
+        <omgdi:waypoint x="880.0000000000003" y="300.2369641755498"></omgdi:waypoint>
+        <omgdi:waypoint x="915.4047619047622" y="300.4047592556669"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" id="BPMNEdge_sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D">
+        <omgdi:waypoint x="670.0" y="299.99999735090546"></omgdi:waypoint>
+        <omgdi:waypoint x="705.0" y="299.99999735090586"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" id="BPMNEdge_sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32">
+        <omgdi:waypoint x="725.0000000000001" y="319.99999735090574"></omgdi:waypoint>
+        <omgdi:waypoint x="725.0000000000001" y="360.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="920.0000000000002" y="360.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+</definitions>

+ 141 - 0
src/main/resources/processes/oil_second_enuser_append_apply.bpmn20.xml

@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
+  <process id="oil_second_enuser_append_apply" name="oil_second_enuser_append_apply" isExecutable="true">
+    <documentation>二级物资企业用户增项审批流程</documentation>
+    <startEvent id="sid-9A4918D7-8376-4A00-928A-6415D92565EC" name="开始"></startEvent>
+    <userTask id="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" name="二级单位分办" activiti:candidateUsers="${users}"></userTask>
+    <userTask id="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" name="业务处室专业审批" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></exclusiveGateway>
+    <userTask id="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" name="二级单位复审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-E178BD57-68C0-4C23-8952-143905257209"></exclusiveGateway>
+    <userTask id="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" name="二级单位初审" activiti:candidateUsers="${users}"></userTask>
+    <exclusiveGateway id="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></exclusiveGateway>
+    <sequenceFlow id="sid-89ED731E-278D-4033-8445-73676D8B5F0A" name="审批" sourceRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" targetRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23"></sequenceFlow>
+    <sequenceFlow id="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" sourceRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" targetRef="sid-E178BD57-68C0-4C23-8952-143905257209"></sequenceFlow>
+    <sequenceFlow id="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" sourceRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" targetRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514"></sequenceFlow>
+    <sequenceFlow id="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" name="不通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-D718B3DA-E003-4A00-B3FA-4D32985377BB">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" sourceRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" targetRef="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF"></sequenceFlow>
+    <userTask id="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" name="业务处室接收" activiti:candidateUsers="${users}"></userTask>
+    <sequenceFlow id="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" sourceRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" targetRef="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF"></sequenceFlow>
+    <endEvent id="sid-585CDFA5-897A-4C98-AAE6-2242AEEF64E7"></endEvent>
+    <sequenceFlow id="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" name="通过" sourceRef="sid-E178BD57-68C0-4C23-8952-143905257209" targetRef="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-5EAB3EB7-D688-4F39-85CB-8B9FBF917DA9" name="通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-585CDFA5-897A-4C98-AAE6-2242AEEF64E7">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+    <userTask id="sid-8988B359-05F0-4FF6-8910-B395ED0BFA1F" name="企业用户申请" activiti:assignee="${recorder}">
+      <extensionElements>
+        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
+      </extensionElements>
+    </userTask>
+    <sequenceFlow id="sid-AFC091C4-363E-4BB7-9954-9391FA78E542" sourceRef="sid-9A4918D7-8376-4A00-928A-6415D92565EC" targetRef="sid-8988B359-05F0-4FF6-8910-B395ED0BFA1F"></sequenceFlow>
+    <sequenceFlow id="sid-73EFDDF4-5B80-4056-B6FC-15B868734F3F" sourceRef="sid-8988B359-05F0-4FF6-8910-B395ED0BFA1F" targetRef="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397"></sequenceFlow>
+    <intermediateThrowEvent id="sid-D718B3DA-E003-4A00-B3FA-4D32985377BB"></intermediateThrowEvent>
+    <sequenceFlow id="sid-DD6F40DE-1FEE-48B8-9C82-B0DB4A30707B" name="不通过" sourceRef="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" targetRef="sid-D718B3DA-E003-4A00-B3FA-4D32985377BB">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" name="不通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-D718B3DA-E003-4A00-B3FA-4D32985377BB">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==0}]]></conditionExpression>
+    </sequenceFlow>
+    <sequenceFlow id="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" name="通过" sourceRef="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" targetRef="sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result==1}]]></conditionExpression>
+    </sequenceFlow>
+  </process>
+  <bpmndi:BPMNDiagram id="BPMNDiagram_oil_second_enuser_append_apply">
+    <bpmndi:BPMNPlane bpmnElement="oil_second_enuser_append_apply" id="BPMNPlane_oil_second_enuser_append_apply">
+      <bpmndi:BPMNShape bpmnElement="sid-9A4918D7-8376-4A00-928A-6415D92565EC" id="BPMNShape_sid-9A4918D7-8376-4A00-928A-6415D92565EC">
+        <omgdc:Bounds height="30.0" width="30.0" x="15.000000000000002" y="280.00000000000006"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397" id="BPMNShape_sid-D9679422-EE83-4AD7-8A06-51A8BAC2A397">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999997" x="210.00000000000003" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF" id="BPMNShape_sid-A6FC1B75-D365-4060-8F2D-797DAD1399EF">
+        <omgdc:Bounds height="80.00000000000003" width="100.0" x="885.0000000000003" y="255.00000000000009"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23" id="BPMNShape_sid-A41AC05B-4D7E-4159-80B2-CE3B0B60AF23">
+        <omgdc:Bounds height="40.0" width="40.000000000000114" x="1020.0000000000003" y="275.00000000000006"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8F39C647-A0E2-46F8-B184-51BF40E93546" id="BPMNShape_sid-8F39C647-A0E2-46F8-B184-51BF40E93546">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999989" x="555.0000000000001" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-E178BD57-68C0-4C23-8952-143905257209" id="BPMNShape_sid-E178BD57-68C0-4C23-8952-143905257209">
+        <omgdc:Bounds height="40.0" width="40.0" x="675.0000000000002" y="275.00000000000006"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF" id="BPMNShape_sid-8C5C2380-44D8-4A61-A5C7-1DC85F57E3AF">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999994" x="345.00000000000006" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-C9D007EC-DA5F-480E-A280-EBF70615C514" id="BPMNShape_sid-C9D007EC-DA5F-480E-A280-EBF70615C514">
+        <omgdc:Bounds height="40.0" width="39.99999999999994" x="480.00000000000006" y="275.0000000000001"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-C18EB968-3E14-4BAF-9DEF-D767CA546066" id="BPMNShape_sid-C18EB968-3E14-4BAF-9DEF-D767CA546066">
+        <omgdc:Bounds height="79.99999999999997" width="100.0" x="750.0000000000003" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-585CDFA5-897A-4C98-AAE6-2242AEEF64E7" id="BPMNShape_sid-585CDFA5-897A-4C98-AAE6-2242AEEF64E7">
+        <omgdc:Bounds height="28.0" width="28.0" x="1095.0000000000005" y="281.00000000000006"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-8988B359-05F0-4FF6-8910-B395ED0BFA1F" id="BPMNShape_sid-8988B359-05F0-4FF6-8910-B395ED0BFA1F">
+        <omgdc:Bounds height="79.99999999999997" width="99.99999999999999" x="75.00000000000001" y="255.00000000000003"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNShape bpmnElement="sid-D718B3DA-E003-4A00-B3FA-4D32985377BB" id="BPMNShape_sid-D718B3DA-E003-4A00-B3FA-4D32985377BB">
+        <omgdc:Bounds height="30.0" width="30.0" x="1025.0000000000002" y="360.00000000000017"></omgdc:Bounds>
+      </bpmndi:BPMNShape>
+      <bpmndi:BPMNEdge bpmnElement="sid-89ED731E-278D-4033-8445-73676D8B5F0A" id="BPMNEdge_sid-89ED731E-278D-4033-8445-73676D8B5F0A">
+        <omgdi:waypoint x="985.0000000000003" y="295.00000000000006"></omgdi:waypoint>
+        <omgdi:waypoint x="1020.0000000000003" y="295.00000000000006"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-5EAB3EB7-D688-4F39-85CB-8B9FBF917DA9" id="BPMNEdge_sid-5EAB3EB7-D688-4F39-85CB-8B9FBF917DA9">
+        <omgdi:waypoint x="1059.6397058823534" y="295.36029411764713"></omgdi:waypoint>
+        <omgdi:waypoint x="1095.0003729405032" y="295.1021870588285"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-DD6F40DE-1FEE-48B8-9C82-B0DB4A30707B" id="BPMNEdge_sid-DD6F40DE-1FEE-48B8-9C82-B0DB4A30707B">
+        <omgdi:waypoint x="1040.3797468354435" y="314.6202531645571"></omgdi:waypoint>
+        <omgdi:waypoint x="1040.0943377568765" y="360.00029665667944"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-2BD5B023-739C-4D78-8F49-F1B96336102D" id="BPMNEdge_sid-2BD5B023-739C-4D78-8F49-F1B96336102D">
+        <omgdi:waypoint x="445.0" y="295.00000000000006"></omgdi:waypoint>
+        <omgdi:waypoint x="480.00000000000006" y="295.0000000000001"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C0B325B4-3F9E-4498-9045-0277541DA2FC" id="BPMNEdge_sid-C0B325B4-3F9E-4498-9045-0277541DA2FC">
+        <omgdi:waypoint x="310.0" y="295.0"></omgdi:waypoint>
+        <omgdi:waypoint x="345.00000000000006" y="295.0"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-C916BA74-384F-4684-8ADB-16EA158FDE07" id="BPMNEdge_sid-C916BA74-384F-4684-8ADB-16EA158FDE07">
+        <omgdi:waypoint x="519.5913461538462" y="295.4086538461539"></omgdi:waypoint>
+        <omgdi:waypoint x="555.0000000000001" y="295.23923444976083"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-22C499F4-7179-4558-BC4C-77EF7453FA56" id="BPMNEdge_sid-22C499F4-7179-4558-BC4C-77EF7453FA56">
+        <omgdi:waypoint x="850.0000000000003" y="295.00000000000006"></omgdi:waypoint>
+        <omgdi:waypoint x="885.0000000000003" y="295.00000000000006"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-AFC091C4-363E-4BB7-9954-9391FA78E542" id="BPMNEdge_sid-AFC091C4-363E-4BB7-9954-9391FA78E542">
+        <omgdi:waypoint x="45.0" y="295.00000000000006"></omgdi:waypoint>
+        <omgdi:waypoint x="75.00000000000001" y="295.0"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-73EFDDF4-5B80-4056-B6FC-15B868734F3F" id="BPMNEdge_sid-73EFDDF4-5B80-4056-B6FC-15B868734F3F">
+        <omgdi:waypoint x="175.0" y="295.0"></omgdi:waypoint>
+        <omgdi:waypoint x="210.00000000000003" y="295.0"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11" id="BPMNEdge_sid-8EBC7DDA-2971-44DA-B74C-AAE347AD9A11">
+        <omgdi:waypoint x="714.5913461538464" y="295.40865384615387"></omgdi:waypoint>
+        <omgdi:waypoint x="750.0000000000003" y="295.2392344497608"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31" id="BPMNEdge_sid-E8B3C95F-9348-427A-AABB-7EC671CCDE31">
+        <omgdi:waypoint x="500.5" y="314.5000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="500.5" y="375.00000000000017"></omgdi:waypoint>
+        <omgdi:waypoint x="1025.0000000000002" y="375.00000000000017"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D" id="BPMNEdge_sid-8CFFAD62-3714-4072-BB0E-847F0F1CED8D">
+        <omgdi:waypoint x="655.0" y="295.0000000000001"></omgdi:waypoint>
+        <omgdi:waypoint x="675.0000000000001" y="295.00000000000017"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+      <bpmndi:BPMNEdge bpmnElement="sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32" id="BPMNEdge_sid-EE3F6C40-10E4-45A9-AD18-A407C3DAED32">
+        <omgdi:waypoint x="695.0000000000002" y="315.00000000000006"></omgdi:waypoint>
+        <omgdi:waypoint x="695.0000000000002" y="375.00000000000017"></omgdi:waypoint>
+        <omgdi:waypoint x="1025.0000000000002" y="375.00000000000017"></omgdi:waypoint>
+      </bpmndi:BPMNEdge>
+    </bpmndi:BPMNPlane>
+  </bpmndi:BPMNDiagram>
+</definitions>