@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<License>
+ <Data>
+ <Products>
+ <Product>Aspose.Total for Java</Product>
+ <Product>Aspose.Words for Java</Product>
+ </Products>
+ <EditionType>Enterprise</EditionType>
+ <SubscriptionExpiry>20991231</SubscriptionExpiry>
+ <LicenseExpiry>20991231</LicenseExpiry>
+ <SerialNumber>23dcc79f-44ec-4a23-be3a-03c1632404e9</SerialNumber>
+ </Data>
+ <Signature>2sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature>
+</License>
@@ -0,0 +1,29 @@
+<project name="act" default="welcome">
+
+ <!-- properties from key value -->
+ <property name="designs" value="designs" />
+ <property name="deployments" value="deployments" />
+ <!-- 显示欢迎信息以及操作提示 -->
+ <target name="welcome">
+ <echo>Activiti打包程序,请输入命令后操作!</echo>
+ </target>
+ <!-- 请假流程定义打包 -->
+ <target name="oa.leave">
+ <echo>打包流程定义:请假流程</echo>
+ <copy file="${designs}/oa/leave/leave.bpmn" tofile="${designs}/oa/leave/leave.bpmn20.xml" />
+ <zip destfile="${deployments}/oa/leave/leave.bar" basedir="${designs}/oa/leave" update="true" includes="*.xml,*.png" />
+ <delete file="${designs}/oa/leave/leave.bpmn20.xml" />
+ <!-- 请假流程定义打包-自定义表单 -->
+ <target name="oa.test_audit">
+ <echo>打包流程定义:测试审核流程</echo>
+ <copy file="${designs}/oa/test_audit/test_audit.bpmn" tofile="${designs}/oa/test_audit/test_audit.bpmn20.xml" />
+ <zip destfile="${deployments}/oa/test_audit/test_audit.bar" basedir="${designs}/oa/test_audit" update="true" includes="*.xml,*.png" />
+ <delete file="${designs}/oa/test_audit/test_audit.bpmn20.xml" />
+</project>
@@ -0,0 +1,141 @@
+<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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="com.thinkgem.jeesite.modules.oa.leave">
+ <process id="leave" name="请假流程" isExecutable="true">
+ <documentation>请假流程演示</documentation>
+ <startEvent id="startevent1" name="Start" activiti:initiator="applyUserId"></startEvent>
+ <userTask id="deptLeaderAudit" name="部门领导审批" activiti:candidateGroups="dept"></userTask>
+ <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway"></exclusiveGateway>
+ <userTask id="modifyApply" name="调整申请" activiti:assignee="${applyUserId}">
+ <extensionElements>
+ <activiti:taskListener event="complete" delegateExpression="${leaveModifyProcessor}"></activiti:taskListener>
+ </extensionElements>
+ </userTask>
+ <userTask id="hrAudit" name="人事审批" activiti:candidateGroups="hr"></userTask>
+ <exclusiveGateway id="exclusivegateway6" name="Exclusive Gateway"></exclusiveGateway>
+ <userTask id="reportBack" name="销假" activiti:assignee="${applyUserId}">
+ <activiti:taskListener event="complete" delegateExpression="${leaveReportProcessor}"></activiti:taskListener>
+ <endEvent id="endevent1" name="End"></endEvent>
+ <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
+ <sequenceFlow id="flow2" sourceRef="startevent1" targetRef="deptLeaderAudit"></sequenceFlow>
+ <sequenceFlow id="flow3" sourceRef="deptLeaderAudit" targetRef="exclusivegateway5"></sequenceFlow>
+ <sequenceFlow id="flow4" name="不同意" sourceRef="exclusivegateway5" targetRef="modifyApply">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!deptLeaderPass}]]></conditionExpression>
+ </sequenceFlow>
+ <sequenceFlow id="flow5" name="同意" sourceRef="exclusivegateway5" targetRef="hrAudit">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptLeaderPass}]]></conditionExpression>
+ <sequenceFlow id="flow6" sourceRef="hrAudit" targetRef="exclusivegateway6"></sequenceFlow>
+ <sequenceFlow id="flow7" name="同意" sourceRef="exclusivegateway6" targetRef="reportBack">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrPass}]]></conditionExpression>
+ <sequenceFlow id="flow8" sourceRef="reportBack" targetRef="endevent1"></sequenceFlow>
+ <sequenceFlow id="flow9" name="不同意" sourceRef="exclusivegateway6" targetRef="modifyApply">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!hrPass}]]></conditionExpression>
+ <sequenceFlow id="flow10" name="重新申请" sourceRef="exclusivegateway7" targetRef="deptLeaderAudit">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${reApply}]]></conditionExpression>
+ <sequenceFlow id="flow11" sourceRef="modifyApply" targetRef="exclusivegateway7"></sequenceFlow>
+ <sequenceFlow id="flow12" name="结束流程" sourceRef="exclusivegateway7" targetRef="endevent1">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!reApply}]]></conditionExpression>
+ </process>
+ <bpmndi:BPMNDiagram id="BPMNDiagram_leave">
+ <bpmndi:BPMNPlane bpmnElement="leave" id="BPMNPlane_leave">
+ <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
+ <omgdc:Bounds height="35.0" width="35.0" x="10.0" y="90.0"></omgdc:Bounds>
+ </bpmndi:BPMNShape>
+ <bpmndi:BPMNShape bpmnElement="deptLeaderAudit" id="BPMNShape_deptLeaderAudit">
+ <omgdc:Bounds height="55.0" width="105.0" x="90.0" y="80.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="exclusivegateway5" id="BPMNShape_exclusivegateway5">
+ <omgdc:Bounds height="40.0" width="40.0" x="250.0" y="87.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="modifyApply" id="BPMNShape_modifyApply">
+ <omgdc:Bounds height="55.0" width="105.0" x="218.0" y="190.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="hrAudit" id="BPMNShape_hrAudit">
+ <omgdc:Bounds height="55.0" width="105.0" x="358.0" y="80.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
+ <omgdc:Bounds height="40.0" width="40.0" x="495.0" y="87.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="reportBack" id="BPMNShape_reportBack">
+ <omgdc:Bounds height="55.0" width="105.0" x="590.0" y="80.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
+ <omgdc:Bounds height="35.0" width="35.0" x="625.0" y="283.0"></omgdc:Bounds>
+ <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
+ <omgdc:Bounds height="40.0" width="40.0" x="250.0" y="280.0"></omgdc:Bounds>
+ <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
+ <omgdi:waypoint x="45.0" y="107.0"></omgdi:waypoint>
+ <omgdi:waypoint x="90.0" y="107.0"></omgdi:waypoint>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
+ <omgdi:waypoint x="195.0" y="107.0"></omgdi:waypoint>
+ <omgdi:waypoint x="250.0" y="107.0"></omgdi:waypoint>
+ <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
+ <omgdi:waypoint x="270.0" y="127.0"></omgdi:waypoint>
+ <omgdi:waypoint x="270.0" y="190.0"></omgdi:waypoint>
+ <bpmndi:BPMNLabel>
+ <omgdc:Bounds height="14.0" width="36.0" x="10.0" y="0.0"></omgdc:Bounds>
+ </bpmndi:BPMNLabel>
+ <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
+ <omgdi:waypoint x="290.0" y="107.0"></omgdi:waypoint>
+ <omgdi:waypoint x="358.0" y="107.0"></omgdi:waypoint>
+ <omgdc:Bounds height="14.0" width="24.0" x="-24.0" y="-17.0"></omgdc:Bounds>
+ <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
+ <omgdi:waypoint x="463.0" y="107.0"></omgdi:waypoint>
+ <omgdi:waypoint x="495.0" y="107.0"></omgdi:waypoint>
+ <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
+ <omgdi:waypoint x="535.0" y="107.0"></omgdi:waypoint>
+ <omgdi:waypoint x="590.0" y="107.0"></omgdi:waypoint>
+ <omgdc:Bounds height="14.0" width="24.0" x="-22.0" y="-17.0"></omgdc:Bounds>
+ <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
+ <omgdi:waypoint x="642.0" y="135.0"></omgdi:waypoint>
+ <omgdi:waypoint x="642.0" y="283.0"></omgdi:waypoint>
+ <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
+ <omgdi:waypoint x="515.0" y="127.0"></omgdi:waypoint>
+ <omgdi:waypoint x="514.0" y="217.0"></omgdi:waypoint>
+ <omgdi:waypoint x="323.0" y="217.0"></omgdi:waypoint>
+ <omgdc:Bounds height="14.0" width="36.0" x="24.0" y="3.0"></omgdc:Bounds>
+ <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
+ <omgdi:waypoint x="250.0" y="300.0"></omgdi:waypoint>
+ <omgdi:waypoint x="142.0" y="299.0"></omgdi:waypoint>
+ <omgdi:waypoint x="142.0" y="135.0"></omgdi:waypoint>
+ <omgdc:Bounds height="14.0" width="48.0" x="8.0" y="-1.0"></omgdc:Bounds>
+ <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
+ <omgdi:waypoint x="270.0" y="245.0"></omgdi:waypoint>
+ <omgdi:waypoint x="270.0" y="280.0"></omgdi:waypoint>
+ <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
+ <omgdi:waypoint x="290.0" y="300.0"></omgdi:waypoint>
+ <omgdi:waypoint x="625.0" y="300.0"></omgdi:waypoint>
+ <omgdc:Bounds height="14.0" width="48.0" x="-15.0" y="-20.0"></omgdc:Bounds>
+ </bpmndi:BPMNPlane>
+ </bpmndi:BPMNDiagram>
+</definitions>
@@ -0,0 +1,171 @@
+<?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: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/test">
+ <process id="test_audit" name="流程审批测试流程" isExecutable="true">
+ <startEvent id="start" name="启动审批" activiti:initiator="apply" activiti:formKey="/oa/testAudit/form"/>
+ <endEvent id="end" name="结束审批"/>
+ <userTask id="modify" name="员工薪酬档级修改" activiti:assignee="${apply}"/>
+ <userTask id="audit" name="薪酬主管初审" activiti:assignee="system"/>
+ <exclusiveGateway id="sid-C28BB5F6-013D-4570-B432-61B380C1F46F"/>
+ <userTask id="audit2" name="集团人力资源部部长审核" activiti:assignee="system"/>
+ <exclusiveGateway id="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0"/>
+ <sequenceFlow id="sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B" sourceRef="audit2" targetRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0"/>
+ <userTask id="audit3" name="集团人力资源部分管领导审核" activiti:assignee="system"/>
+ <exclusiveGateway id="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4"/>
+ <sequenceFlow id="sid-3DBCD661-5720-4480-8156-748BE0275FEF" sourceRef="audit3" targetRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4"/>
+ <userTask id="audit4" name="集团总经理审批" activiti:assignee="system"/>
+ <exclusiveGateway id="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477"/>
+ <userTask id="apply_end" name="薪酬档级兑现" activiti:assignee="system"/>
+ <sequenceFlow id="sid-02DB2AD9-1332-4198-AC8D-22A35169D15C" sourceRef="audit4" targetRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477"/>
+ <sequenceFlow id="sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7" sourceRef="audit" targetRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F"/>
+ <sequenceFlow id="sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE" sourceRef="start" targetRef="audit"/>
+ <sequenceFlow id="sid-7D723190-1432-411D-A4A4-774225E54CD9" name="是" sourceRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" targetRef="apply_end">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==1}]]></conditionExpression>
+ <sequenceFlow id="sid-D44CAD43-0271-4920-A524-9B8533E52550" name="是" sourceRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" targetRef="audit4">
+ <sequenceFlow id="sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF" name="否" sourceRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" targetRef="modify">
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass==0}]]></conditionExpression>
+ <exclusiveGateway id="sid-5FED02D6-C388-48C6-870E-097DB2131EA0"/>
+ <sequenceFlow id="sid-163DBC60-DBC9-438B-971A-67738FB7715A" sourceRef="modify" targetRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0"/>
+ <sequenceFlow id="sid-72258A41-203E-428C-B71D-CA3506252D73" name="是" sourceRef="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" targetRef="audit2">
+ <sequenceFlow id="sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838" name="重新申请" sourceRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" targetRef="audit">
+ <sequenceFlow id="sid-A7589084-4623-4FEA-A774-00A70DDC1D20" name="是" sourceRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" targetRef="audit3">
+ <sequenceFlow id="sid-FA618636-3708-4D0C-8514-29A4BB8BC926" name="否" sourceRef="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" targetRef="modify">
+ <sequenceFlow id="sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289" name="否" sourceRef="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" targetRef="modify">
+ <sequenceFlow id="sid-35CC8C6C-1067-4398-991C-CCF955115965" name="否" sourceRef="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" targetRef="modify">
+ <sequenceFlow id="sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57" sourceRef="apply_end" targetRef="end"/>
+ <sequenceFlow id="sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7" name="销毁" sourceRef="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" targetRef="end">
+ <bpmndi:BPMNDiagram id="BPMNDiagram_test_audit">
+ <bpmndi:BPMNPlane bpmnElement="test_audit" id="BPMNPlane_test_audit">
+ <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
+ <omgdc:Bounds height="30.0" width="30.0" x="30.0" y="245.0"/>
+ <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
+ <omgdc:Bounds height="28.0" width="28.0" x="975.0" y="356.0"/>
+ <bpmndi:BPMNShape bpmnElement="modify" id="BPMNShape_modify">
+ <omgdc:Bounds height="58.0" width="102.0" x="209.0" y="135.0"/>
+ <bpmndi:BPMNShape bpmnElement="audit" id="BPMNShape_audit">
+ <omgdc:Bounds height="57.0" width="96.0" x="105.0" y="231.5"/>
+ <bpmndi:BPMNShape bpmnElement="sid-C28BB5F6-013D-4570-B432-61B380C1F46F" id="BPMNShape_sid-C28BB5F6-013D-4570-B432-61B380C1F46F">
+ <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="240.0"/>
+ <bpmndi:BPMNShape bpmnElement="audit2" id="BPMNShape_audit2">
+ <omgdc:Bounds height="80.0" width="100.0" x="210.0" y="330.0"/>
+ <bpmndi:BPMNShape bpmnElement="sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0" id="BPMNShape_sid-ED46FE41-A0FD-496D-86DC-2C97AF5735F0">
+ <omgdc:Bounds height="40.0" width="40.0" x="345.0" y="350.0"/>
+ <bpmndi:BPMNShape bpmnElement="audit3" id="BPMNShape_audit3">
+ <omgdc:Bounds height="80.0" width="100.0" x="420.0" y="330.0"/>
+ <bpmndi:BPMNShape bpmnElement="sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4" id="BPMNShape_sid-FE485B2D-9A23-4236-BD0D-D788CA6E30E4">
+ <omgdc:Bounds height="40.0" width="40.0" x="555.0" y="350.0"/>
+ <bpmndi:BPMNShape bpmnElement="audit4" id="BPMNShape_audit4">
+ <omgdc:Bounds height="80.0" width="100.0" x="630.0" y="330.0"/>
+ <bpmndi:BPMNShape bpmnElement="sid-3F53B6BD-F8F3-496B-AC08-50630BD11477" id="BPMNShape_sid-3F53B6BD-F8F3-496B-AC08-50630BD11477">
+ <omgdc:Bounds height="40.0" width="40.0" x="765.0" y="350.0"/>
+ <bpmndi:BPMNShape bpmnElement="apply_end" id="BPMNShape_apply_end">
+ <omgdc:Bounds height="80.0" width="100.0" x="840.0" y="330.0"/>
+ <bpmndi:BPMNShape bpmnElement="sid-5FED02D6-C388-48C6-870E-097DB2131EA0" id="BPMNShape_sid-5FED02D6-C388-48C6-870E-097DB2131EA0">
+ <omgdc:Bounds height="40.0" width="40.0" x="240.0" y="45.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-3DBCD661-5720-4480-8156-748BE0275FEF" id="BPMNEdge_sid-3DBCD661-5720-4480-8156-748BE0275FEF">
+ <omgdi:waypoint x="520.0" y="370.0"/>
+ <omgdi:waypoint x="555.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7" id="BPMNEdge_sid-44AFB9C1-4057-4C48-B1F2-1EC897A52CB7">
+ <omgdi:waypoint x="280.0" y="65.0"/>
+ <omgdi:waypoint x="989.0" y="65.0"/>
+ <omgdi:waypoint x="989.0" y="356.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838" id="BPMNEdge_sid-8448EF4A-B62E-4899-ABC2-0E2DB2AE6838">
+ <omgdi:waypoint x="240.0" y="65.0"/>
+ <omgdi:waypoint x="153.0" y="65.0"/>
+ <omgdi:waypoint x="153.0" y="231.5"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-A7589084-4623-4FEA-A774-00A70DDC1D20" id="BPMNEdge_sid-A7589084-4623-4FEA-A774-00A70DDC1D20">
+ <omgdi:waypoint x="385.0" y="370.0"/>
+ <omgdi:waypoint x="420.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-35CC8C6C-1067-4398-991C-CCF955115965" id="BPMNEdge_sid-35CC8C6C-1067-4398-991C-CCF955115965">
+ <omgdi:waypoint x="785.0" y="350.0"/>
+ <omgdi:waypoint x="785.0" y="164.0"/>
+ <omgdi:waypoint x="311.0" y="164.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B" id="BPMNEdge_sid-EF2F51BB-1D99-4F0B-ACF2-B6C1300A7D2B">
+ <omgdi:waypoint x="310.0" y="370.0"/>
+ <omgdi:waypoint x="345.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-7D723190-1432-411D-A4A4-774225E54CD9" id="BPMNEdge_sid-7D723190-1432-411D-A4A4-774225E54CD9">
+ <omgdi:waypoint x="805.0" y="370.0"/>
+ <omgdi:waypoint x="840.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7" id="BPMNEdge_sid-2AB7C01A-50EE-4AAC-8C8F-F6E1935B3DA7">
+ <omgdi:waypoint x="201.0" y="260.0"/>
+ <omgdi:waypoint x="240.0" y="260.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-D44CAD43-0271-4920-A524-9B8533E52550" id="BPMNEdge_sid-D44CAD43-0271-4920-A524-9B8533E52550">
+ <omgdi:waypoint x="595.0" y="370.0"/>
+ <omgdi:waypoint x="630.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-FA618636-3708-4D0C-8514-29A4BB8BC926" id="BPMNEdge_sid-FA618636-3708-4D0C-8514-29A4BB8BC926">
+ <omgdi:waypoint x="365.0" y="350.0"/>
+ <omgdi:waypoint x="365.0" y="164.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-02DB2AD9-1332-4198-AC8D-22A35169D15C" id="BPMNEdge_sid-02DB2AD9-1332-4198-AC8D-22A35169D15C">
+ <omgdi:waypoint x="730.0" y="370.0"/>
+ <omgdi:waypoint x="765.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE" id="BPMNEdge_sid-36E50C8B-6C7C-4968-B02D-EBAA425BF4BE">
+ <omgdi:waypoint x="60.0" y="260.0"/>
+ <omgdi:waypoint x="105.0" y="260.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF" id="BPMNEdge_sid-53258502-43EE-4DE8-B1A4-DBD11922B8AF">
+ <omgdi:waypoint x="260.0" y="240.0"/>
+ <omgdi:waypoint x="260.0" y="193.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-163DBC60-DBC9-438B-971A-67738FB7715A" id="BPMNEdge_sid-163DBC60-DBC9-438B-971A-67738FB7715A">
+ <omgdi:waypoint x="260.0" y="135.0"/>
+ <omgdi:waypoint x="260.0" y="85.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57" id="BPMNEdge_sid-BDB0AAB2-7E50-4D35-80EE-CE0BECDD9F57">
+ <omgdi:waypoint x="940.0" y="370.0"/>
+ <omgdi:waypoint x="975.0" y="370.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289" id="BPMNEdge_sid-1525BFF4-3E9D-4D8A-BF80-1F63AFE16289">
+ <omgdi:waypoint x="575.0" y="350.0"/>
+ <omgdi:waypoint x="575.0" y="164.0"/>
+ <bpmndi:BPMNEdge bpmnElement="sid-72258A41-203E-428C-B71D-CA3506252D73" id="BPMNEdge_sid-72258A41-203E-428C-B71D-CA3506252D73">
+ <omgdi:waypoint x="260.0" y="280.0"/>
+ <omgdi:waypoint x="260.0" y="330.0"/>
@@ -0,0 +1 @@
+ios=https://www.pgyer.com/J3Oq
@@ -0,0 +1,33 @@
+<ehcache updateCheck="false" name="defaultCache">
+ <diskStore path="../temp/jeeplus/ehcache" />
+ <!-- 默认缓存配置. 自动失效:最后一次访问时间间隔300秒失效,若没有访问过自创建时间600秒失效。-->
+ <defaultCache maxEntriesLocalHeap="1000" eternal="false" timeToIdleSeconds="300" timeToLiveSeconds="600"
+ overflowToDisk="true" statistics="true"/>
+ <!-- 系统缓存 -->
+ <cache name="sysCache" maxEntriesLocalHeap="1000" eternal="true" overflowToDisk="true" statistics="true"/>
+ <!-- 用户缓存 -->
+ <cache name="userCache" maxEntriesLocalHeap="1000" eternal="true" overflowToDisk="true" statistics="true"/>
+ <!-- 集团缓存 -->
+ <cache name="corpCache" maxEntriesLocalHeap="1000" eternal="true" overflowToDisk="true" statistics="true"/>
+ <!-- 内容管理模块缓存 -->
+ <cache name="cmsCache" maxEntriesLocalHeap="1000" eternal="true" overflowToDisk="true" statistics="true"/>
+ <!-- 工作流模块缓存 -->
+ <cache name="actCache" maxEntriesLocalHeap="100" eternal="true" overflowToDisk="true" statistics="true"/>
+ <!-- 简单页面缓存 -->
+ <cache name="pageCachingFilter" maxEntriesLocalHeap="1000" eternal="false" timeToIdleSeconds="120"
+ timeToLiveSeconds="120" overflowToDisk="true" memoryStoreEvictionPolicy="LFU" statistics="true"/>
+ <!-- 系统活动会话缓存 -->
+ <cache name="activeSessionsCache" maxEntriesLocalHeap="10000" eternal="true" overflowToDisk="true"
+ diskPersistent="true" diskExpiryThreadIntervalSeconds="600" statistics="true"/>
+</ehcache>
@@ -0,0 +1,59 @@
+<!--
+ <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+ properties="peerDiscovery=manual, socketTimeoutMillis=2000, rmiUrls=//localhost:40001/defaultCache" />
+ <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
+ properties="hostName=localhost, port=40000, socketTimeoutMillis=2000"/> -->
+ properties="peerDiscovery=automatic,multicastGroupAddress=230.0.0.1, multicastGroupPort=4446" />
+ <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" />
+ <!-- 默认缓存配置. -->
+ <defaultCache maxEntriesLocalHeap="100" eternal="false" timeToIdleSeconds="300" timeToLiveSeconds="600"
+ overflowToDisk="true" maxEntriesLocalDisk="100000" >
+ <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
+ properties="replicatePuts=false,replicateUpdatesViaCopy=false"/>
+ </defaultCache>
+ <cache name="sysCache" maxEntriesLocalHeap="100" eternal="true" overflowToDisk="true">
+ <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
+ </cache>
+ <cache name="userCache" maxEntriesLocalHeap="100" eternal="true" overflowToDisk="true">
+ <cache name="actCache" maxEntriesLocalHeap="100" eternal="true" overflowToDisk="true">
+ <!-- 内容管理模块缓存
+ <cache name="cmsCache" maxEntriesLocalHeap="100" eternal="true" overflowToDisk="true">
+ </cache> -->
+ <cache name="activeSessionsCache" maxEntriesLocalHeap="10000" overflowToDisk="true"
+ eternal="true" timeToLiveSeconds="0" timeToIdleSeconds="0"
+ diskPersistent="true" diskExpiryThreadIntervalSeconds="600">
+ properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,
+ replicateUpdatesViaCopy=false, replicateRemovals=true "/>
+ <!-- 简单页面缓存
+ <cache name="SimplePageCachingFilter" maxEntriesLocalHeap="100" eternal="false" overflowToDisk="true"
+ timeToIdleSeconds="120" timeToLiveSeconds="120" memoryStoreEvictionPolicy="LFU">
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:b3mn="http://b3mn.org/2007/b3mn" xmlns:ext="http://b3mn.org/2007/ext" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:atom="http://b3mn.org/2007/atom+xhtml">
+<head profile="http://purl.org/NET/erdf/profile">
+<title>流程设计器</title>
+<!-- libraries -->
+<script src="../libs/prototype-1.5.1.js" type="text/javascript" />
+<script src="../libs/path_parser.js" type="text/javascript" />
+<script src="../libs/ext-2.0.2/adapter/ext/ext-base.js" type="text/javascript" />
+<script src="../libs/ext-2.0.2/ext-all-debug.js" type="text/javascript" />
+<script src="../libs/ext-2.0.2/color-field.js" type="text/javascript" />
+<style media="screen" type="text/css">
+@import url("../libs/ext-2.0.2/resources/css/ext-all.css");
+@import url("../libs/ext-2.0.2/resources/css/xtheme-darkgray.css");
+</style>
+<link rel="Stylesheet" media="screen" href="../editor/css/theme_norm.css" type="text/css" />
+<link rel="Stylesheet" media="screen" href="../editor/css/theme_norm_signavio.css" type="text/css" />
+<link rel="Stylesheet" media="screen" href="../explorer/src/css/xtheme-smoky.css" type="text/css" />
+<link rel="Stylesheet" media="screen" href="../explorer/src/css/custom-style.css" type="text/css" />
+<!-- oryx editor -->
+<!-- language files -->
+<script src="../editor/i18n/translation_zh_CN.js" type="text/javascript" />
+<script src="../editor/i18n/translation_signavio_zh_CN.js" type="text/javascript" />
+<script src="../libs/utils.js" type="text/javascript" />
+<script src="../editor/oryx.debug.js" type="text/javascript" />
+<!-- erdf schemas -->
+<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
+<link rel="schema.dcTerms" href="http://purl.org/dc/terms/" />
+<link rel="schema.b3mn" href="http://b3mn.org" />
+<link rel="schema.oryx" href="http://oryx-editor.org/" />
+<link rel="schema.raziel" href="http://raziel.org/" />
+</head>
+<body style="overflow:hidden;">
+</body>
+</html>
@@ -0,0 +1,5 @@
+#\u7cfb\u7edf\u9519\u8bef
+SYS-0001=\u7cfb\u7edf\u767b\u5f55\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u3002
+SYS-0002=\u8be5\u9875\u9762\uff0c\u6ca1\u6709\u64cd\u4f5c\u6743\u9650\u3002
+SYS-0003=\u672a\u77e5\u9519\u8bef\uff0c\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u3002
@@ -0,0 +1,251 @@
+#============================#
+#===== Database sttings =====#
+#mysql database setting
+jdbc.type=mysql
+jdbc.driver=com.mysql.jdbc.Driver
+db.name=ruihuaoa-activity-data
+jdbc.url=jdbc:mysql://192.168.2.4:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
+#jdbc.url=jdbc:mysql://127.0.0.1:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
+jdbc.username=root
+#jdbc.password=123456
+jdbc.password=root
+#pool settings
+jdbc.pool.init=20
+jdbc.pool.minIdle=10
+jdbc.pool.maxActive=200
+#jdbc.testSql=SELECT 'x'
+jdbc.testSql=SELECT 'x' FROM DUAL
+#master
+#master.jdbc.url=jdbc:mysql://192.168.2.4:3306/total_process_master?useUnicode=true&characterEncoding=utf-8
+#master.jdbc.username=root
+#master.jdbc.password=root
+#slave
+#slave.jdbc.url=jdbc:mysql://192.168.2.4:3306/total_process_slave?useUnicode=true&characterEncoding=utf-8
+#slave.jdbc.username=root
+#slave.jdbc.password=root
+#redis settings
+redis.keyPrefix=jeeplus
+redis.host=192.168.2.4
+#redis.host=127.0.0.1
+#redis.port=6380
+redis.port=6379
+redis.timeout = 2000
+redis.password = 123456
+#===== System settings ======#
+#\u4EA7\u54C1\u4FE1\u606F\u8BBE\u7F6E
+productName=jsxg
+copyrightYear=2019
+version=V2.4
+#APP-213
+#ORG_NAME = 1177170605115438
+#APP_NAME = rhecoa
+#GRANT_TYPE= client_credentials
+#CLIENT_ID = YXA6tOGr0EpaEeenGAfBIPozTw
+#CLIENT_SECRET = YXA6qxWxXBIE5WM4odeGKgQzwwNx8x8
+#APP-85
+#APP\u4EA7\u54C1\u4FE1\u606F\u8BBE\u7F6E
+#ORG_NAME = 1118180319099824
+#APP_NAME = ruihuaoa
+#GRANT_TYPE = client_credentials
+#CLIENT_ID = YXA6wNWrYCsbEeiembcJPnIT_A
+#CLIENT_SECRET = YXA6ZB3-Ov1lp1d9tFQLzP9FwTDuEXk
+#APP-pc
+ORG_NAME = 1190180329099323
+APP_NAME = ruihuaoa-pc
+GRANT_TYPE = client_credentials
+CLIENT_ID = YXA6XedCEDMFEei5znX5NBisMg
+CLIENT_SECRET = YXA6lamMmbUx2gs32Uq6AJaxeRuITzo
+#\u6F14\u793A\u6A21\u5F0F: \u4E0D\u80FD\u64CD\u4F5C\u548C\u4FDD\u5B58\u7684\u6A21\u5757\uFF1A sys: area/office/user/role/menu/dict, cms: site/category
+demoMode=false
+#\u7BA1\u7406\u57FA\u7840\u8DEF\u5F84, \u9700\u540C\u6B65\u4FEE\u6539\uFF1Aweb.xml
+adminPath=/a
+#\u524D\u7AEF\u57FA\u7840\u8DEF\u5F84
+frontPath=/f
+#\u7F51\u7AD9URL\u540E\u7F00
+urlSuffix=.html
+#\u662F\u5426\u4E0D\u5141\u8BB8\u5237\u65B0\u4E3B\u9875\uFF0C\u4E0D\u5141\u8BB8\u60C5\u51B5\u4E0B\uFF0C\u5237\u65B0\u4E3B\u9875\u4F1A\u5BFC\u81F4\u91CD\u65B0\u767B\u5F55
+notAllowRefreshIndex=false
+#\u662F\u5426\u5141\u8BB8\u591A\u8D26\u53F7\u540C\u65F6\u767B\u5F55
+user.multiAccountLogin=true
+#\u5206\u9875\u914D\u7F6E
+page.pageSize=10
+#\u7855\u6B63\u7EC4\u4EF6\u662F\u5426\u4F7F\u7528\u7F13\u5B58
+supcan.useCache=false
+#\u901A\u77E5\u95F4\u9694\u65F6\u95F4\u8BBE\u7F6E, \u5355\u4F4D\uFF1A\u6BEB\u79D2, 30s=30000ms, 60s=60000ms
+oa.notify.remind.interval=60000
+#==== Framework settings ====#
+#\u4F1A\u8BDD\u8D85\u65F6\uFF0C \u5355\u4F4D\uFF1A\u6BEB\u79D2\uFF0C 20m=1200000ms, 30m=1800000ms, 60m=3600000ms
+session.sessionTimeout=864000000
+#\u4F1A\u8BDD\u6E05\u7406\u95F4\u9694\u65F6\u95F4\uFF0C \u5355\u4F4D\uFF1A\u6BEB\u79D2\uFF0C2m=120000ms\u3002
+session.sessionTimeoutClean=120000
+#\u7F13\u5B58\u8BBE\u7F6E
+ehcache.configFile=cache/ehcache-local.xml
+#ehcache.configFile=cache/ehcache-rmi.xml
+#\u7D22\u5F15\u9875\u8DEF\u5F84
+web.view.index=/a
+#\u89C6\u56FE\u6587\u4EF6\u5B58\u653E\u8DEF\u5F84
+web.view.prefix=/webpage/
+web.view.suffix=.jsp
+#\u6700\u5927\u6587\u4EF6\u4E0A\u4F20\u9650\u5236\uFF0C\u5355\u4F4D\u5B57\u8282. 10M=10*1024*1024(B)=10485760 bytes\uFF0C\u9700\u540C\u6B65\u4FEE\u6539\uFF1Ackfinder.xml
+web.maxUploadSize=30720000000
+#\u65E5\u5FD7\u62E6\u622A\u8BBE\u7F6E\uFF0C\u6392\u9664\u7684URI\uFF1B\u5305\u542B @RequestMapping\u6CE8\u89E3\u7684value\u3002\uFF08\u5DF2\u4F5C\u5E9F\uFF09
+#web.logInterceptExcludeUri=/, /login, /sys/menu/tree, /sys/menu/treeData, /oa/oaNotify/self/count
+#web.logInterceptIncludeRequestMapping=save, delete, import, updateSort
+#\u9759\u6001\u6587\u4EF6\u540E\u7F00
+web.staticFile=.css,.js,.png,.jpg,.gif,.jpeg,.bmp,.ico,.swf,.psd,.htc,.htm,.html,.crx,.xpi,.exe,.ipa,.apk
+#\u5355\u70B9\u767B\u5F55CAS\u8BBE\u7F6E
+cas.server.url=http://127.0.0.1:8180/cas
+cas.project.url=http://127.0.0.1:8080/jeeplus
+#\u5DE5\u4F5C\u6D41\u8BBE\u7F6E
+activiti.isSynActivitiIndetity=false
+activiti.export.diagram.path=c:/activiti_diagram
+#activiti font (windows font: \u5B8B\u4F53 linux font: simsun)
+activiti.diagram.activityFontName=\u5B8B\u4F53
+activiti.diagram.labelFontName=\u5B8B\u4F53
+#activiti\u5916\u90E8\u8868\u5355\u6839\u5730\u5740\u914D\u7F6E
+activiti.form.server.url=
+#\u4E0A\u4F20\u6587\u4EF6\u7EDD\u5BF9\u8DEF\u5F84, \u8DEF\u5F84\u4E2D\u4E0D\u5141\u8BB8\u5305\u542B\u201Cuserfiles\u201D
+#userfiles.basedir=D:/jeeplus
+#\u5DE5\u7A0B\u8DEF\u5F84\uFF0C\u5728\u4EE3\u7801\u751F\u6210\u65F6\u83B7\u53D6\u4E0D\u5230\u5DE5\u7A0B\u8DEF\u5F84\u65F6\uFF0C\u53EF\u518D\u6B64\u6307\u5B9A\u7EDD\u5BF9\u8DEF\u5F84\u3002
+projectPath=C\:\\test
+#aliyunUrl=http://gangwan-app.oss-cn-hangzhou.aliyuncs.com
+aliyunUrl=http://oss.gangwaninfo.com
+aliyunDownloadUrl=http://cdn.gangwaninfo.com
+oSSUrl=http://cdn.gangwaninfo.com/jeeplus-resource-data/static
+endpoint=http://oss-cn-hangzhou.aliyuncs.com
+accessKeyId=LTAIi7VuxcgfJR2x
+accessKeySecret=Q9xF9V7tcnCI28ttUsP8H4GyAhZta7
+bucketName=gangwan-app
+avatarDir=app-img/avatar/
+notifyDir=app-img/notify/
+reportDir=app-img/report/
+rqcode=app-img/rqcode/
+goout=app-img/goout/
+leave=app-img/leave/
+logo=app-img/logo/
+photo=app-img/photo/
+overtimeform=app-img/overtimeform/
+oaBuy=app-img/oaBuy/
+oaAll=app-img/oaAll/
+sealform=app-img/sealform/
+workReimbur=app-img/workReimbur/
+evection=app-img/evection/
+im=app-img/im/
+notifyData=app-data/notify/
+appData=app-data/appfiles/
+userEvaluation=attachment-file/userEvaluation/
+workBidingDocument=attachment-file/workBidingDocument/
+workEngineeringProject=attachment-file/workEngineeringProject/
+workFullExecute=attachment-file/workFullExecute/
+workFullMeetingminutes=attachment-file/workFullMeetingminutes/
+workFullDesignchange=attachment-file/workFullDesignchange/
+workFullConstructsheet=attachment-file/workFullConstructsheet/
+workFullProprietorsheet=attachment-file/workFullProprietorsheet/
+workFullSupervisorsheet=attachment-file/workFullSupervisorsheet/
+workProjectReport=attachment-file/workProjectReport/
+workProjectBasis=attachment-file/workProjectBasis/
+workProjectRemote=attachment-file/workProjectRemote/
+workProjectSummary=attachment-file/workProjectSummary/
+workProjectOther=attachment-file/workProjectOther/
+workVisa=attachment-file/workVisa/
+jobResume=attachment-file/jobResume/
+satisfaction=attachment-file/satisfaction/
+certificate=attachment-file/certificate/
+judgeAttachment=attachment-file/judgeAttachment/
+iSignature=attachment-file/iSignature/
+staff_basic_file_path=attachment-file/staffBasic/
+app_version=app-data/appVersion/
+app_version_test=app-data/test/
+project.plan.template.path=template/oa/project/
+contract_num_path=app-img/contractnumpath/
+#
+fromEmail=
+toEmail=
+emailName=
+emailPassword=
+sms_userid=26581
+sms_account=bjsshr
+sms_password=bjsshr
+sms_mobile=
+sms_content=
+sms_sendTime=
+sms_action=send
+sms_checkcontent=0
+cpu=100
+jvm=100
+ram=100
+rong_userid=8a216da86715511501673e331c24171e
+rong_token=3d7dc58c6a334ad6887317efbf847e41
+app_id=8a216da86715511501673e331c741725
+template_id=435329
+code_type=1
+#\u531E\u531E\u77ED\u4FE1\u6A21\u7248
+327821
+#\u745E\u534Eoa
+245207
+#openOffice
+open_office_addr=127.0.0.1
+open_office_port=8100
+#openfire\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05B7
+openfire.server=192.168.110.69
+sys.notify=http://cdn.gangwaninfo.com/jeeplus-resource-data/static/sys/notify.png
+#\u7528\u53CBAPI
+yy_apicode=35afe9ec3263424f9a18feb837177169
+yy_mhcxurl=https://api.yonyoucloud.com/apis/dst/enterpriseTicketQuery/enterpriseSearchByName
+yy_shcxurl=https://api.yonyoucloud.com/apis/dst/enterpriseTicketQuery/enterpriseTicketInfo
+#yy_mhcxurl=https://api.yonyoucloud.com/apis/dst/enterpriseTicketQuery/enterpriseSearchByName?keyword=KEY
+#yy_shcxurl=https://api.yonyoucloud.com/apis/dst/enterpriseTicketQuery/enterpriseTicketInfo?id=ID
+#\u767E\u5EA6BOS
+bos_access_key=9915286aab2949949b489e8ab3f70a09
+bos_secret_key=069036bdb93c4bc59c4995ccc543243e
+bos_endpoint=http://su.bcebos.com
+bos_buck_name=newxgccpm
+#bos_buck_name=xgccpm
+serverDomain=http://192.168.2.4:18080/total_process
@@ -0,0 +1,96 @@
+<kinggrid version="4.0" margin="20 20 30 30">
+ <table percent="100" spacingBefore="10" spacingAfter="15">
+ <tr>
+ <td borderWidth="0" align="center" fontWeight="bold" lineHeight="20" fontSize="16" >个人征信客户授权书</td>
+ </tr>
+ </table>
+ <paragraph firstLineIndent="20" indentationLeft="80" indentationRight="80" lineHeight="20">
+ <chunk fontSize="12" >尊敬的客户:为了维护您的权益,请在签署本授权书前,仔细阅读本授权</chunk>
+ <chunk fontSize="12" >书各条款(特别是黑字体条款),关注您在授权书中的权利、义务。</chunk>
+ </paragraph>
+ <chunk fontSize="12" >本人姓名:</chunk>
+ <chunk fontSize="12" >${姓名}</chunk>
+ <chunk fontSize="12" >证件名称及号码:</chunk>
+ <chunk fontSize="12" >${cardname_ID}</chunk>
+ <chunk fontSize="12" >签署日期:</chunk>
+ <chunk fontSize="12" >${year}</chunk>
+ <chunk fontSize="12" >年</chunk>
+ <chunk fontSize="12" >${month}</chunk>
+ <chunk fontSize="12" >月</chunk>
+ <chunk fontSize="12" >${day}</chunk>
+ <chunk fontSize="12" >日</chunk>
+ <chunk fontSize="12" >一、本人同意并不可撤销地授权:</chunk>
+ <chunk fontSize="12" fontWeight="bold">贵公司按照国家相关规定采集并向金融信</chunk>
+ <chunk fontSize="12" fontWeight="bold">用信息基础数据库及其他依法成立的征信机构提供本人个人信息和包括信贷信</chunk>
+ <chunk fontSize="12" fontWeight="bold">息在内的信用信息(包含本人因未及时履行合同义务产生的不良信息。)</chunk>
+ <chunk fontSize="12" >二、本人同意并不可撤销地授权:</chunk>
+ <chunk fontSize="12" fontWeight="bold">贵公司可以根据国家有关规定,在办理涉</chunk>
+ <chunk fontSize="12" fontWeight="bold">及本人的业务时,有权向金融信用信息基础数据库及其他依法成立的征信机构查</chunk>
+ <chunk fontSize="12" fontWeight="bold">询、打印、保存本人的信用信息,并用于下述用途:</chunk>
+ <paragraph firstLineIndent="20" indentationLeft="80" indentationRight="80" hlineHeight="20">
+ <chunk fontSize="12" fontWeight="bold">(一)审核本人融资款/贷款、贷记卡(信用卡)、准贷记卡申请;</chunk>
+ <chunk fontSize="12" fontWeight="bold">(二)审核本人作为提出融资/贷款申请或特约商户申请的个人、组织或机构</chunk>
+ <chunk fontSize="12" fontWeight="bold">的负责人、法定代表人。出资人、担保人、企业经营者、实际控制人;</chunk>
+ <chunk fontSize="12" fontWeight="bold">(三)对已向本人或本人担任法人、出资人、担保人、企业经营者、实际控</chunk>
+ <chunk fontSize="12" fontWeight="bold">制人的个人、机构或组织发放的融资款/贷款、贷记卡(信用卡)、准贷记卡进行</chunk>
+ <chunk fontSize="12" fontWeight="bold">贷后风险管理;</chunk>
+ <chunk fontSize="12" fontWeight="bold">(四)向本人提供的其他贵公司合法经营范围内的业务。</chunk>
+ <chunk fontSize="12" >三、如果贵公司超出本授权书范围进行数据报送和查询使用,则贵公司应</chunk>
+ <chunk fontSize="12" fontWeight="bold">承担与此有关的法律责任。本授权书有效期至本人业务结清之日止。</chunk>
+ <chunk fontSize="12" >四、若本人在贵公司业务未获批准办理,本授权书及本人信用报告等资料</chunk>
+ <chunk fontSize="12" fontWeight="bold">无需退回本人。</chunk>
+ <chunk fontSize="12" >五、本授权书内容与相关业务合同的条款不一致的,无论相关合同在本授</chunk>
+ <chunk fontSize="12" fontWeight="bold">权书之前或是之后签署,均应以本授权书的内容为准,但相关合同条款明确约</chunk>
+ <chunk fontSize="12" fontWeight="bold">定是针对本授权书内容所做修订的除外。</chunk>
+ <chunk fontSize="12" >本人声明:本人已仔细阅读上述条款,并已特别注意字体加黑的内容。贵</chunk>
+ <chunk fontSize="12" >公司已应本人要求对相关条款予以明确说明。本人对所有条款的含义及相应的</chunk>
+ <chunk fontSize="12" >法律后果已全部通晓并充分理解,本人自愿作出上述授权、承诺和声明。</chunk>
+ <chunk fontSize="12" > </chunk>
+</kinggrid>
@@ -0,0 +1,3 @@
+#\u8f93\u5165\u60a8\u7684\u7528\u6237\u540d\uff0c\u4ee5\u53calicense\uff0c\u4e00\u4e2alicense\u6388\u6743\u4e00\u4e2a\u9879\u76ee\u3002
+username=591489374
+license=0LR8ZC-8555506479575021
@@ -0,0 +1,77 @@
+<configuration debug="false" scan="true" scanPeriod="60 second">
+ <property name="PROJECT" value="ruihuaoa" />
+ <property name="ROOT" value="../logs/${PROJECT}/" />
+ <property name="FILESIZE" value="50MB" />
+ <property name="MAXHISTORY" value="100" />
+ <!--<timestamp key="DATETIME" datePattern="yyyy-MM-dd HH:mm:ss.SSS" />-->
+ <!-- 控制台打印 -->
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder charset="utf-8">
+ <pattern>
+ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{30} - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+ <!-- ERROR 输入到文件,按日期和文件大小 -->
+ <appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${ROOT}%d/error.%i.log</fileNamePattern>
+ <maxHistory>${MAXHISTORY}</maxHistory>
+ <timeBasedFileNamingAndTriggeringPolicy
+ class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+ <maxFileSize>${FILESIZE}</maxFileSize>
+ </timeBasedFileNamingAndTriggeringPolicy>
+ </rollingPolicy>
+ <!-- INFO 输入到文件,按日期和文件大小 -->
+ <appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <level>INFO</level>
+ <fileNamePattern>${ROOT}%d/info.%i.log</fileNamePattern>
+ <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+ <!-- project default level -->
+ <logger name="com.jeeplus.modules" level="debug" />
+ <!--log4jdbc -->
+ <logger name="jdbc.sqltiming" level="debug"/>
+ <logger name="com.ibatis" level="debug" />
+ <logger name="com.ibatis.common.jdbc.SimpleDataSource" level="debug" />
+ <logger name="com.ibatis.common.jdbc.ScriptRunner" level="debug" />
+ <logger name="com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate"
+ level="debug" />
+ <logger name="java.sql.Connection" level="debug" />
+ <logger name="java.sql.Statement" level="debug" />
+ <logger name="java.sql.PreparedStatement" level="debug" />
+ <logger name="java.sql.ResultSet" level="debug" />
+ <root level="info">
+ <appender-ref ref="STDOUT" />
+ <appender-ref ref="INFO" />
+ <appender-ref ref="ERROR" />
+ </root>
+</configuration>
@@ -0,0 +1,11 @@
+<?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.jeeplus.modules.act.dao.ActDao">
+ <update id="updateProcInsIdByBusinessId">
+ UPDATE ${businessTable} SET
+ proc_ins_id = #{procInsId}
+ WHERE id = #{businessId}
+ </update>
+</mapper>
@@ -0,0 +1,166 @@
+<mapper namespace="com.jeeplus.modules.activityassignment.dao.ActivityAssignmentDao">
+ <sql id="activityAssignmentColumns">
+ a.id AS "id",
+ a.create_by AS "createBy.id",
+ a.create_date AS "createDate",
+ a.update_by AS "updateBy.id",
+ a.update_date AS "updateDate",
+ a.remarks AS "remarks",
+ a.del_flag AS "delFlag",
+ a.type AS "type",
+ a.user_id AS "user.id",
+ a.start_date AS "startDate",
+ a.end_date AS "endDate",
+ a.company_id AS "companyId",
+ u.name AS "user.name",
+ c.name AS "createBy.name"
+ </sql>
+ <sql id="activityAssignmentJoins">
+ LEFT JOIN sys_user u ON u.id = a.user_id
+ LEFT JOIN sys_user c ON c.id = a.create_by
+ LEFT JOIN sys_user_office uo ON uo.user_id = a.create_by and uo.company_id = a.company_id
+ LEFT JOIN sys_office o ON o.id = uo.office_id
+ <select id="get" resultType="ActivityAssignment" >
+ SELECT
+ <include refid="activityAssignmentColumns"/>
+ FROM sys_activity_assignment a
+ <include refid="activityAssignmentJoins"/>
+ WHERE a.id = #{id}
+ </select>
+ <select id="getByUserIdAndDate" resultType="ActivityAssignment" >
+ WHERE a.create_by = #{createBy.id}
+ AND (a.type = #{type} OR a.type = '1')
+ AND a.company_id = #{companyId}
+ AND #{startDate} BETWEEN a.start_date AND a.end_date
+ <select id="findList" resultType="ActivityAssignment" >
+ <where>
+ a.del_flag = #{DEL_FLAG_NORMAL}
+ <if test="type != null and type != ''">
+ AND a.type = #{type}
+ </if>
+ <choose>
+ <when test="user != null and user.id != null and user.id != ''">
+ AND a.user_id = #{user.id}
+ </when>
+ <when test="createBy != null and createBy.id != null and createBy.id != ''">
+ AND (a.user_id = #{createBy.id} OR a.create_by = #{createBy.id})
+ <when test="branchOffice != null and branchOffice != ''">
+ AND find_in_set(o.branch_office ,#{branchOffice})
+ </choose>
+ <if test="startDate != null and startDate != ''">
+ </where>
+ <when test="page !=null and page.orderBy != null and page.orderBy != ''">
+ ORDER BY ${page.orderBy}
+ <otherwise>
+ ORDER BY a.update_date DESC
+ </otherwise>
+ <select id="findAllList" resultType="ActivityAssignment" >
+ <insert id="insert">
+ INSERT INTO sys_activity_assignment(
+ id,
+ create_by,
+ create_date,
+ update_by,
+ update_date,
+ remarks,
+ del_flag,
+ type,
+ user_id,
+ start_date,
+ end_date,
+ company_id
+ ) VALUES (
+ #{id},
+ #{createBy.id},
+ #{createDate},
+ #{updateBy.id},
+ #{updateDate},
+ #{remarks},
+ #{delFlag},
+ #{type},
+ #{user.id},
+ #{startDate},
+ #{endDate},
+ #{companyId}
+ )
+ </insert>
+ <update id="update">
+ UPDATE sys_activity_assignment SET
+ update_by = #{updateBy.id},
+ update_date = #{updateDate},
+ remarks = #{remarks},
+ type = #{type},
+ user_id = #{user.id},
+ start_date = #{startDate},
+ end_date = #{endDate},
+ company_id = #{companyId}
+ WHERE id = #{id}
+ <!--物理删除-->
+ <update id="delete">
+ DELETE FROM sys_activity_assignment
+ <!--逻辑删除-->
+ <update id="deleteByLogic">
+ del_flag = #{DEL_FLAG_DELETE}
+ <!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
+ <select id="findUniqueByProperty" resultType="ActivityAssignment" statementType="STATEMENT">
+ select * FROM sys_activity_assignment where ${propertyName} = '${value}'
@@ -0,0 +1,145 @@
+<mapper namespace="com.jeeplus.modules.alterinfo.dao.AlterInfoDao">
+ <sql id="alterInfoColumns">
+ a.reason AS "reason",
+ a.before_id AS "beforeId",
+ a.style AS "style"
+ <sql id="alterInfoJoins">
+ <select id="getByContractInfo" resultType="AlterInfo" parameterType="com.jeeplus.modules.workcontractinfo.entity.WorkContractInfo">
+ <include refid="alterInfoColumns"/>
+ FROM alter_info a
+ WHERE a.del_flag = '0'
+ AND a.type = '1'
+ AND a.style = '1'
+ AND a.before_id = #{id}
+ <select id="get" resultType="AlterInfo" >
+ <include refid="alterInfoJoins"/>
+ <select id="findList" resultType="AlterInfo" >
+ <if test="style != null and style != ''">
+ AND a.style = #{style}
+ <if test="beforeId != null and beforeId != ''">
+ AND a.before_id = #{beforeId}
+ <select id="findAllList" resultType="AlterInfo" >
+ INSERT INTO alter_info(
+ reason,
+ before_id,
+ style
+ #{reason},
+ #{beforeId},
+ #{style}
+ UPDATE alter_info SET
+ reason = #{reason},
+ before_id = #{beforeId},
+ style = #{style}
+ DELETE FROM alter_info
+ <select id="findUniqueByProperty" resultType="AlterInfo" statementType="STATEMENT">
+ select * FROM alter_info where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.appversion.dao.AppversionsDao">
+ <sql id="appversionsColumns">
+ a.versions AS "versions",
+ a.files AS "files",
+ a.content AS "content",
+ a.qrcode AS "qrcode",
+ a.url AS "url",
+ createBy.name AS "createBy.name"
+ <sql id="appversionsJoins">
+ LEFT JOIN sys_user createBy ON createBy.id = a.create_by
+ <select id="get" resultType="Appversions" >
+ <include refid="appversionsColumns"/>
+ FROM app_versions a
+ <include refid="appversionsJoins"/>
+ <select id="findList" resultType="Appversions" >
+ <if test="remarks != null and remarks != ''">
+ AND a.remarks = #{remarks}
+ <if test="versions != null and versions != ''">
+ AND a.versions like
+ <if test="dbName == 'oracle'">'%'||#{versions}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{versions}, '%')</if>
+ <select id="findAllList" resultType="Appversions" >
+ INSERT INTO app_versions(
+ versions,
+ files,
+ content,
+ qrcode,
+ url
+ #{versions},
+ #{files},
+ #{content},
+ #{qrcode},
+ #{url}
+ UPDATE app_versions SET
+ versions = #{versions},
+ files = #{files},
+ content = #{content},
+ qrcode = #{qrcode},
+ url = #{url}
+ DELETE FROM app_versions
+ <select id="findUniqueByProperty" resultType="Appversions" statementType="STATEMENT">
+ select * FROM app_versions where ${propertyName} = '${value}'
@@ -0,0 +1,161 @@
+<mapper namespace="com.jeeplus.modules.buydetails.dao.BuyDetailsDao">
+ <sql id="buyDetailsColumns">
+ a.oa_buyid AS "oaBuy.id",
+ a.name AS "name",
+ a.format AS "format",
+ a.amount AS "amount",
+ a.unit AS "unit",
+ a.price AS "price"
+ <sql id="buyDetailsJoins">
+ LEFT JOIN oa_buy oaBuy ON oaBuy.id = a.oa_buyid
+ <select id="get" resultType="BuyDetails" >
+ <include refid="buyDetailsColumns"/>
+ FROM buy_details a
+ <include refid="buyDetailsJoins"/>
+ <select id="findList" resultType="BuyDetails" >
+ <if test="oaBuy !=null and oaBuy.id!= null and oaBuy.id!= ''">
+ AND a.oa_buyid = #{oaBuy.id}
+ <select id="findAllList" resultType="BuyDetails" >
+ INSERT INTO buy_details(
+ oa_buyid,
+ name,
+ format,
+ amount,
+ unit,
+ price
+ #{oaBuy.id},
+ #{name},
+ #{format},
+ #{amount},
+ #{unit},
+ #{price}
+ UPDATE buy_details SET
+ oa_buyid = #{oaBuy.id},
+ name = #{name},
+ format = #{format},
+ amount = #{amount},
+ unit = #{unit},
+ price = #{price}
+ DELETE FROM buy_details
+ <select id="findUniqueByProperty" resultType="BuyDetails" statementType="STATEMENT">
+ select * FROM buy_details where ${propertyName} = '${value}'
+ <select id="findListByoaBuy" resultType="OaBuy">
+ *
+ FROM oa_buy a
+ <if test="id != null and id != ''">
+ AND a.id LIKE
+ <if test="dbName == 'oracle'">#{id}||'%'</if>
+ <if test="dbName == 'mssql'">#{id}+'%'</if>
+ <if test="dbName == 'mysql'">concat(#{id},'%')</if>
@@ -0,0 +1,152 @@
+<mapper namespace="com.jeeplus.modules.casebuildinfo.dao.CaseBuildInfoDao">
+ <sql id="caseBuildInfoColumns">
+ a.linkedman AS "linkedman",
+ a.mobile AS "mobile",
+ a.email AS "email",
+ a.case_id AS "caseId"
+ <sql id="caseBuildInfoJoins">
+ <select id="get" resultType="CaseBuildInfo" >
+ <include refid="caseBuildInfoColumns"/>
+ FROM case_build_info a
+ <include refid="caseBuildInfoJoins"/>
+ <select id="findList" resultType="CaseBuildInfo" >
+ <if test="caseId!= null and caseId!= ''">
+ AND a.case_id = #{caseId}
+ <if test="name != null and name != ''">
+ AND a.name LIKE
+ <if test="dbName == 'oracle'">'%'||#{name}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{name}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{name},'%')</if>
+ <if test="linkedman != null and linkedman != ''">
+ AND a.linkedman LIKE
+ <if test="dbName == 'oracle'">'%'||#{linkedman}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{linkedman}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{linkedman},'%')</if>
+ <if test="mobile != null and mobile != ''">
+ AND a.mobile LIKE
+ <if test="dbName == 'oracle'">'%'||#{mobile}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{mobile}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{mobile},'%')</if>
+ <select id="findAllList" resultType="CaseBuildInfo" >
+ INSERT INTO case_build_info(
+ linkedman,
+ mobile,
+ email,
+ case_id
+ #{linkedman},
+ #{mobile},
+ #{email},
+ #{caseId}
+ UPDATE case_build_info SET
+ linkedman = #{linkedman},
+ mobile = #{mobile},
+ email = #{email},
+ case_id = #{caseId}
+ DELETE FROM case_build_info
+ <select id="findUniqueByProperty" resultType="CaseBuildInfo" statementType="STATEMENT">
+ select * FROM case_build_info where ${propertyName} = '${value}'
@@ -0,0 +1,149 @@
+<mapper namespace="com.jeeplus.modules.casecategory.dao.CaseCategoryDao">
+ <sql id="caseCategoryColumns">
+ a.parent_id AS "parent.id",
+ a.parent_ids AS "parentIds",
+ a.sort AS "sort",
+ a.identifier AS "identifier"
+ <sql id="caseCategoryJoins">
+ <select id="get" resultType="CaseCategory" >
+ <include refid="caseCategoryColumns"/>
+ FROM case_category a
+ <include refid="caseCategoryJoins"/>
+ <select id="findList" resultType="CaseCategory" >
+ <if test="parent != null and parent.id != null and parent.id != ''">
+ AND a.parent_id = #{parent.id}
+ <if test="parentIds != null and parentIds != ''">
+ AND a.parent_ids LIKE
+ <if test="dbName == 'oracle'">'%'||#{parentIds}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{parentIds}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{parentIds},'%')</if>
+ ORDER BY a.sort ASC
+ <select id="findAllList" resultType="CaseCategory" >
+ <select id="findByParentIdsLike" resultType="CaseCategory">
+ a.id,
+ a.parent_ids
+ AND a.parent_ids LIKE #{parentIds}
+ INSERT INTO case_category(
+ parent_id,
+ parent_ids,
+ sort,
+ identifier
+ #{parent.id},
+ #{parentIds},
+ #{sort},
+ #{identifier}
+ UPDATE case_category SET
+ parent_id = #{parent.id},
+ parent_ids = #{parentIds},
+ sort = #{sort},
+ identifier = #{identifier}
+ <update id="updateParentIds">
+ parent_ids = #{parentIds}
+ DELETE FROM case_category
+ <select id="findUniqueByProperty" resultType="CaseCategory" statementType="STATEMENT">
+ select * FROM case_category where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.casedesigninfo.dao.CaseDesignInfoDao">
+ <sql id="caseDesignInfoColumns">
+ <sql id="caseDesignInfoJoins">
+ <select id="get" resultType="CaseDesignInfo" >
+ <include refid="caseDesignInfoColumns"/>
+ FROM case_design_info a
+ <include refid="caseDesignInfoJoins"/>
+ <select id="findList" resultType="CaseDesignInfo" >
+ <select id="findAllList" resultType="CaseDesignInfo" >
+ INSERT INTO case_design_info(
+ UPDATE case_design_info SET
+ DELETE FROM case_design_info
+ <select id="findUniqueByProperty" resultType="CaseDesignInfo" statementType="STATEMENT">
+ select * FROM case_design_info where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.caseexecuteinfo.dao.CaseExecuteInfoDao">
+ <sql id="caseExecuteInfoColumns">
+ <sql id="caseExecuteInfoJoins">
+ <select id="get" resultType="CaseExecuteInfo" >
+ <include refid="caseExecuteInfoColumns"/>
+ FROM case_execute_info a
+ <include refid="caseExecuteInfoJoins"/>
+ <select id="findList" resultType="CaseExecuteInfo" >
+ <select id="findAllList" resultType="CaseExecuteInfo" >
+ INSERT INTO case_execute_info(
+ UPDATE case_execute_info SET
+ DELETE FROM case_execute_info
+ <select id="findUniqueByProperty" resultType="CaseExecuteInfo" statementType="STATEMENT">
+ select * FROM case_execute_info where ${propertyName} = '${value}'
@@ -0,0 +1,582 @@
+<mapper namespace="com.jeeplus.modules.caseinfo.dao.CaseInfoDao">
+ <sql id="caseInfoColumns">
+ a.class_id AS "caseCategory.id",
+ a.source AS "source",
+ a.companyName AS "companyName",
+ a.area_id AS "area.id",
+ area.name AS "area.name",
+ a.price AS "price",
+ project.project_name AS "project.projectName",
+ a.project_id AS "project.id",
+ a.feature AS "feature",
+ a.record AS "record",
+ a.ext AS "ext",
+ a.contractName AS "contractName",
+ a.peculiarity AS "peculiarity",
+ a.status AS "status",
+ a.userids AS "userids",
+ a.share_status AS "shareStatus",
+ a.process_instance_id AS "processInstanceId",
+ a.office_id AS "officeId",
+ u.name AS "createBy.name",
+ u2.name AS "updateBy.name",
+ o.name AS "officeName",
+ c.name AS "caseCategory.name"
+ <sql id="caseInfoJoins">
+ LEFT JOIN case_category c ON c.id = a.class_id
+ left join sys_user u on a.create_by = u.id
+ left join sys_user u2 on a.update_by = u2.id
+ LEFT JOIN sys_area area ON area.id = a.area_id
+ LEFT JOIN project_records project ON project.id = a.project_id
+ JOIN sys_office o ON o.id = a.office_id
+ JOIN sys_office s ON s.id = a.company_id
+ <select id="get" resultType="CaseInfo" >
+ <include refid="caseInfoColumns"/>
+ FROM case_info a
+ <include refid="caseInfoJoins"/>
+ <select id="findListme" resultType="CaseInfo" >
+ <if test="caseCategory != null and caseCategory.id != null and caseCategory.id != ''">
+ AND a.class_id = #{caseCategory.id}
+ <if test="area != null and area.id != null and area.id != ''">
+ AND a.area_id = #{area.id}
+ <if test="createBy != null and createBy.id != null and createBy.id != ''">
+ AND a.create_by = #{createBy.id}
+ AND a.id = #{id}
+ <select id="findListoffice" resultType="CaseInfo" >
+ a.del_flag = #{DEL_FLAG_NORMAL} and a.status in('2','5')
+ <if test="officeId != null and officeId != ''">
+ AND a.office_id = #{officeId}
+ <select id="findListoffice2" resultType="CaseInfo" >
+ a.del_flag = #{DEL_FLAG_NORMAL} and a.status =5
+ <!--<select id="findList" resultType="CaseInfo" >
+ (a.share_status = '1' and
+ ) or
+ (
+ (a.del_flag = #{DEL_FLAG_NORMAL} AND a.status = '4'
+ ${sqlMap.dsf})
+ or(
+ (a.status != '4'
+ ) or (a.status in('2','3','4')
+ and find_in_set(#{createBy.id},a.userids)
+ </select>-->
+ <select id="findByAllList" resultType="CaseInfo" >
+ a.status = '5'
+ AND
+ <if test="shareStatus != null and shareStatus != ''">
+ AND a.share_status = #{shareStatus}
+ <select id="findByAllLists" resultType="CaseInfo" >
+ a.status = '5' and a.share_status is not null
+ <when test="dateOrder == 1">
+ order by a.start_date desc
+ <when test="dateOrder == 2">
+ order by a.start_date asc
+ <!--<when test="page !=null and page.orderBy != null and page.orderBy != ''">
+ </when>-->
+ <select id="findBuyCase" resultType="CaseInfo" >
+ DISTINCT
+ LEFT join case_member cm on cm.case_id = a.id
+ <if test="memberId != null and memberId != ''">
+ AND cm.member_id = #{memberId}
+ <select id="findCompanyList" resultType="CaseInfo" >
+ a.del_flag = #{DEL_FLAG_NORMAL} AND a.status = '5'
+ <if test="createBy != null and createBy != null and createBy.name != ''">
+ AND u.name LIKE
+ <if test="dbName == 'oracle'">'%'||#{createBy.name}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{createBy.name}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{createBy.name},'%')</if>
+ AND a.start_date = #{startDate}
+ <if test="companyId != null and companyId != ''">
+ AND find_in_set(a.company_id,#{companyId})
+ <select id="findAllList" resultType="CaseInfo" >
+ INSERT INTO case_info(
+ class_id,
+ area_id,
+ price,
+ project_id,
+ feature,
+ source,
+ companyName,
+ ext,
+ contractName,
+ peculiarity,
+ status,
+ userids,
+ share_status,
+ company_id,
+ office_id,
+ record
+ #{caseCategory.id},
+ #{area.id},
+ #{price},
+ #{project.id},
+ #{feature},
+ #{source},
+ #{companyName},
+ #{ext},
+ #{contractName},
+ #{peculiarity},
+ #{status},
+ #{userids},
+ #{shareStatus},
+ #{companyId},
+ #{officeId},
+ #{record}
+ UPDATE case_info SET
+ class_id = #{caseCategory.id},
+ area_id = #{area.id},
+ price = #{price},
+ project_id = #{project.id},
+ feature = #{feature},
+ source = #{source},
+ ext = #{ext},
+ contractName = #{contractName},
+ peculiarity = #{peculiarity},
+ status = #{status},
+ userids = #{userids},
+ share_status = #{shareStatus},
+ company_id = #{companyId},
+ office_id = #{officeId},
+ record = #{record}
+ DELETE FROM case_info
+ <select id="findUniqueByProperty" resultType="CaseInfo" statementType="STATEMENT">
+ select * FROM case_info where ${propertyName} = '${value}'
+ <select id="findListByproject" resultType="WorkProject">
+ FROM work_project a
+ <update id="updateProcessInstanceId">
+ process_instance_id = #{processInstanceId}
+ <select id="getByProcessInstanceId" resultType="CaseInfo">
+ WHERE a.process_instance_id = #{processInstanceId}
@@ -0,0 +1,206 @@
+<mapper namespace="com.jeeplus.modules.casematerials.dao.CaseMaterialsDao">
+ <sql id="caseMaterialsColumns">
+ a.brand AS "brand",
+ a.specification AS "specification",
+ a.parameter_performance AS "pp",
+ a.calculate_unit AS "calculateUnit",
+ a.count AS "count",
+ a.supplier AS "supplier",
+ a.taxPrice AS "taxPrice",
+ a.useDate AS "useDate",
+ a.tax AS "tax",
+ a.material AS "material",
+ <sql id="caseMaterialsJoins">
+ <select id="get" resultType="CaseMaterials" >
+ <include refid="caseMaterialsColumns"/>
+ FROM case_materials a
+ <include refid="caseMaterialsJoins"/>
+ <select id="findList" resultType="CaseMaterials" >
+ <if test="brand != null and brand != ''">
+ AND a.brand LIKE
+ <if test="dbName == 'oracle'">'%'||#{brand}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{brand}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{brand},'%')</if>
+ <if test="supplier != null and supplier != ''">
+ AND a.supplier LIKE
+ <if test="dbName == 'oracle'">'%'||#{supplier}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{supplier}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{supplier},'%')</if>
+ <select id="findAllList" resultType="CaseMaterials" >
+ INSERT INTO case_materials(
+ brand,
+ specification,
+ parameter_performance,
+ calculate_unit,
+ count,
+ supplier,
+ taxPrice,
+ useDate,
+ tax,
+ material,
+ #{brand},
+ #{specification},
+ #{pp},
+ #{calculateUnit},
+ #{count},
+ #{supplier},
+ #{taxPrice},
+ #{useDate},
+ #{tax},
+ #{material},
+ UPDATE case_materials SET
+ brand = #{brand},
+ specification = #{specification},
+ parameter_performance = #{pp},
+ calculate_unit = #{calculateUnit},
+ count = #{count},
+ supplier = #{supplier},
+ taxPrice = #{taxPrice},
+ useDate = #{useDate},
+ tax = #{tax},
+ material = #{material},
+ DELETE FROM case_materials
+ <update id="deleteCase">
+ WHERE case_id = #{caseId}
+ <select id="findUniqueByProperty" resultType="CaseMaterials" statementType="STATEMENT">
+ select * FROM case_materials where ${propertyName} = '${value}'
@@ -0,0 +1,142 @@
+<mapper namespace="com.jeeplus.modules.casematerialsnorm.dao.CaseMaterialsNormDao">
+ <sql id="caseMaterialsNormColumns">
+ a.unit_content AS "unitContent",
+ a.all_price AS "allPrice",
+ a.proportion AS "proportion",
+ <sql id="caseMaterialsNormJoins">
+ <select id="get" resultType="CaseMaterialsNorm" >
+ <include refid="caseMaterialsNormColumns"/>
+ FROM case_materials_norm a
+ <include refid="caseMaterialsNormJoins"/>
+ <select id="findList" resultType="CaseMaterialsNorm" >
+ <select id="findAllList" resultType="CaseMaterialsNorm" >
+ INSERT INTO case_materials_norm(
+ unit_content,
+ all_price,
+ proportion,
+ #{unitContent},
+ #{allPrice},
+ #{proportion},
+ UPDATE case_materials_norm SET
+ unit_content = #{unitContent},
+ all_price = #{allPrice},
+ proportion = #{proportion},
+ DELETE FROM case_materials_norm
+ <select id="findUniqueByProperty" resultType="CaseMaterialsNorm" statementType="STATEMENT">
+ select * FROM case_materials_norm where ${propertyName} = '${value}'
@@ -0,0 +1,148 @@
+<mapper namespace="com.jeeplus.modules.casemechanicalnorm.dao.CaseMechanicalNormDao">
+ <sql id="caseMechanicalNormColumns">
+ <sql id="caseMechanicalNormJoins">
+ <select id="get" resultType="CaseMechanicalNorm" >
+ <include refid="caseMechanicalNormColumns"/>
+ FROM case_mechanical_norm a
+ <include refid="caseMechanicalNormJoins"/>
+ <select id="findList" resultType="CaseMechanicalNorm" >
+ <select id="findAllList" resultType="CaseMechanicalNorm" >
+ INSERT INTO case_mechanical_norm(
+ UPDATE case_mechanical_norm SET
+ DELETE FROM case_mechanical_norm
+ <select id="findUniqueByProperty" resultType="CaseMechanicalNorm" statementType="STATEMENT">
+ select * FROM case_mechanical_norm where ${propertyName} = '${value}'
@@ -0,0 +1,125 @@
+<mapper namespace="com.jeeplus.modules.casemember.dao.CaseMemberDao">
+ <sql id="caseMemberColumns">
+ a.case_id AS "caseId",
+ a.member_id AS "memberId"
+ <sql id="caseMemberJoins">
+ <select id="get" resultType="CaseMember" >
+ <include refid="caseMemberColumns"/>
+ FROM case_member a
+ <include refid="caseMemberJoins"/>
+ <select id="findList" resultType="CaseMember" >
+ <if test="caseId != null and caseId != ''">
+ AND a.member_id = #{memberId}
+ <select id="findAllList" resultType="CaseMember" >
+ INSERT INTO case_member(
+ case_id,
+ member_id
+ #{caseId},
+ #{memberId}
+ UPDATE case_member SET
+ case_id = #{caseId},
+ member_id = #{memberId}
+ DELETE FROM case_member
+ <select id="findUniqueByProperty" resultType="CaseMember" statementType="STATEMENT">
+ select * FROM case_member where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.casenorm.dao.CaseNormDao">
+ <sql id="caseNormColumns">
+ a.each_content AS "eachContent",
+ a.percent AS "percent",
+ a.calculated_by AS "calculatedBy",
+ a.calculated_value AS "calculatedValue",
+ <sql id="caseNormJoins">
+ <select id="get" resultType="CaseNorm" >
+ <include refid="caseNormColumns"/>
+ FROM case_norm a
+ <include refid="caseNormJoins"/>
+ <select id="findList" resultType="CaseNorm" >
+ <select id="findAllList" resultType="CaseNorm" >
+ INSERT INTO case_norm(
+ each_content,
+ percent,
+ calculated_by,
+ calculated_value,
+ #{eachContent},
+ #{percent},
+ #{calculatedBy},
+ #{calculatedValue},
+ UPDATE case_norm SET
+ each_content = #{eachContent},
+ percent = #{percent},
+ calculated_by = #{calculatedBy},
+ calculated_value = #{calculatedValue},
+ DELETE FROM case_norm
+ <select id="findUniqueByProperty" resultType="CaseNorm" statementType="STATEMENT">
+ select * FROM case_norm where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.casepeoplenorm.dao.CasePeopleNormDao">
+ <sql id="casePeopleNormColumns">
+ <sql id="casePeopleNormJoins">
+ <select id="get" resultType="CasePeopleNorm" >
+ <include refid="casePeopleNormColumns"/>
+ FROM case_people_norm a
+ <include refid="casePeopleNormJoins"/>
+ <select id="findList" resultType="CasePeopleNorm" >
+ <select id="findAllList" resultType="CasePeopleNorm" >
+ INSERT INTO case_people_norm(
+ UPDATE case_people_norm SET
+ DELETE FROM case_people_norm
+ <select id="findUniqueByProperty" resultType="CasePeopleNorm" statementType="STATEMENT">
+ select * FROM case_people_norm where ${propertyName} = '${value}'
@@ -0,0 +1,138 @@
+<mapper namespace="com.jeeplus.modules.caseprojectfeature.dao.CaseProjectFeatureDao">
+ <sql id="caseProjectFeatureColumns">
+ a.value AS "value",
+ <sql id="caseProjectFeatureJoins">
+ <select id="get" resultType="CaseProjectFeature" >
+ <include refid="caseProjectFeatureColumns"/>
+ FROM case_project_feature a
+ <include refid="caseProjectFeatureJoins"/>
+ <select id="findList" resultType="CaseProjectFeature" >
+ <if test="value != null and value != ''">
+ AND a.value LIKE
+ <if test="dbName == 'oracle'">'%'||#{value}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{value}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{value},'%')</if>
+ <select id="findAllList" resultType="CaseProjectFeature" >
+ INSERT INTO case_project_feature(
+ value,
+ #{value},
+ UPDATE case_project_feature SET
+ value = #{value},
+ DELETE FROM case_project_feature
+ <select id="findUniqueByProperty" resultType="CaseProjectFeature" statementType="STATEMENT">
+ select * FROM case_project_feature where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.contractclient.dao.WorkContractClientDao">
+ <sql id="workContractClientColumns">
+ a.contract_id AS "contractId",
+ a.client_id AS "clientId"
+ <sql id="workContractClientJoins">
+ <select id="get" resultType="WorkContractClient" >
+ <include refid="workContractClientColumns"/>
+ FROM work_contract_client a
+ <include refid="workContractClientJoins"/>
+ <select id="findList" resultType="WorkContractClient" >
+ <if test="contractId != null and contractId != ''">
+ AND a.contract_id = #{contractId}
+ <if test="clientId != null and clientId != ''">
+ AND a.client_id = #{clientId}
+ <select id="findAllList" resultType="WorkContractClient" >
+ INSERT INTO work_contract_client(
+ contract_id,
+ client_id
+ #{contractId},
+ #{clientId}
+ UPDATE work_contract_client SET
+ contract_id = #{contractId},
+ client_id = #{clientId}
+ DELETE FROM work_contract_client
+ <select id="findUniqueByProperty" resultType="WorkContractClient" statementType="STATEMENT">
+ select * FROM work_contract_client where ${propertyName} = '${value}'
@@ -0,0 +1,147 @@
+<mapper namespace="com.jeeplus.modules.echarts.dao.ChinaWeatherDataBeanDao">
+ <sql id="chinaWeatherDataBeanColumns">
+ a.datestr AS "datestr",
+ a.beijing_maxtemp AS "beijingMaxTemp",
+ a.beijing_mintemp AS "beijingMinTemp",
+ a.changchun_maxtemp AS "changchunMaxTemp",
+ a.changchun_mintemp AS "changchunMinTemp",
+ a.shenyang_maxtemp AS "shenyangMaxTemp",
+ a.shenyang_mintemp AS "shenyangMinTemp",
+ a.haerbin_maxtemp AS "haerbinMaxTemp",
+ a.haerbin_mintemp AS "haerbinMinTemp"
+ <sql id="chinaWeatherDataBeanJoins">
+ <select id="get" resultType="ChinaWeatherDataBean" >
+ <include refid="chinaWeatherDataBeanColumns"/>
+ FROM test_line_weather_main_city a
+ <include refid="chinaWeatherDataBeanJoins"/>
+ <select id="findList" resultType="ChinaWeatherDataBean" >
+ <select id="findAllList" resultType="ChinaWeatherDataBean" >
+ INSERT INTO test_line_weather_main_city(
+ datestr,
+ beijing_maxtemp,
+ beijing_mintemp,
+ changchun_maxtemp,
+ changchun_mintemp,
+ shenyang_maxtemp,
+ shenyang_mintemp,
+ haerbin_maxtemp,
+ haerbin_mintemp
+ #{datestr},
+ #{beijingMaxTemp},
+ #{beijingMinTemp},
+ #{changchunMaxTemp},
+ #{changchunMinTemp},
+ #{shenyangMaxTemp},
+ #{shenyangMinTemp},
+ #{haerbinMaxTemp},
+ #{haerbinMinTemp}
+ UPDATE test_line_weather_main_city SET
+ datestr = #{datestr},
+ beijing_maxtemp = #{beijingMaxTemp},
+ beijing_mintemp = #{beijingMinTemp},
+ changchun_maxtemp = #{changchunMaxTemp},
+ changchun_mintemp = #{changchunMinTemp},
+ shenyang_maxtemp = #{shenyangMaxTemp},
+ shenyang_mintemp = #{shenyangMinTemp},
+ haerbin_maxtemp = #{haerbinMaxTemp},
+ haerbin_mintemp = #{haerbinMinTemp}
+ DELETE FROM test_line_weather_main_city
+ <select id="findUniqueByProperty" resultType="ChinaWeatherDataBean" statementType="STATEMENT">
+ select * FROM test_line_weather_main_city where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.echarts.dao.PieClassDao">
+ <sql id="pieClassColumns">
+ a.class_name AS "className",
+ a.num AS "num"
+ <sql id="pieClassJoins">
+ <select id="get" resultType="PieClass" >
+ <include refid="pieClassColumns"/>
+ FROM test_pie_class a
+ <include refid="pieClassJoins"/>
+ <select id="findList" resultType="PieClass" >
+ <if test="className != null and className != ''">
+ AND a.class_name LIKE
+ <if test="dbName == 'oracle'">'%'||#{className}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{className}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{className},'%')</if>
+ <select id="findAllList" resultType="PieClass" >
+ INSERT INTO test_pie_class(
+ class_name,
+ num
+ #{className},
+ #{num}
+ UPDATE test_pie_class SET
+ class_name = #{className},
+ num = #{num}
+ DELETE FROM test_pie_class
+ <select id="findUniqueByProperty" resultType="PieClass" statementType="STATEMENT">
+ select * FROM test_pie_class where ${propertyName} = '${value}'
@@ -0,0 +1,216 @@
+<mapper namespace="com.jeeplus.modules.exampleeconomics.dao.ExampleEconomicsDao">
+ <sql id="exampleEconomicsColumns">
+ a.example_id AS "exampleId",
+ a.exampleindices_id AS "exampleindicesId",
+ a.index_id AS "indexId",
+ a.digits AS "digits",
+ a.money AS "money",
+ a.cost AS "cost",
+ a.proportion AS "proportion"
+ <sql id="exampleEconomicsJoins">
+ <select id="get" resultType="ExampleEconomics" >
+ <include refid="exampleEconomicsColumns"/>
+ FROM example_economics a
+ <include refid="exampleEconomicsJoins"/>
+ <select id="getCount" resultType="ExampleEconomics" >
+ i.name AS "name",
+ count(a.index_id) AS counts,
+ sum(a.money) AS sums,
+ max(a.cost) AS maxs,
+ min(a.cost) AS mins,
+ e.build_scale AS avgs
+ FROM
+ example_economics a
+ INNER JOIN work_example e ON e.id = a.example_id
+ LEFT JOIN work_example_indices i ON i.id = a.exampleindices_id
+ INNER JOIN (
+ id
+ main_dict_detail
+ WHERE
+ (FIND_IN_SET(#{dictId}, parent_ids) OR id = #{dictId})
+ AND end_flag = '1'
+ AND company_id = #{companyId}
+ ) d ON d.id = e.type
+ <if test="areaId != null and areaId != ''">
+ select id from sys_area where (FIND_IN_SET(#{areaId},parent_ids) OR id = #{areaId})
+ ) r ON r.id = e.address
+ a.del_flag = '0'
+ AND e.company_id = #{companyId}
+ AND i.is_disable = '0' AND i.one_items = '2'
+ AND a.index_id = #{indexId}
+ AND e.status = '5'
+ GROUP BY a.exampleindices_id;
+ <select id="findList" resultType="ExampleEconomics" >
+ <if test="exampleId != null and exampleId != ''">
+ AND a.example_id = #{exampleId}
+ <if test="exampleindicesId != null and exampleindicesId != ''">
+ AND a.exampleindices_id = #{exampleindicesId}
+ <if test="indexId != null and indexId != ''">
+ <select id="findAllList" resultType="ExampleEconomics" >
+ INSERT INTO example_economics(
+ example_id,
+ exampleindices_id,
+ index_id,
+ digits,
+ money,
+ cost,
+ proportion
+ #{exampleId},
+ #{exampleindicesId},
+ #{indexId},
+ #{digits},
+ #{money},
+ #{cost},
+ #{proportion}
+ UPDATE example_economics SET
+ example_id = #{exampleId},
+ exampleindices_id = #{exampleindicesId},
+ index_id = #{indexId},
+ digits = #{digits},
+ money = #{money},
+ cost = #{cost},
+ proportion = #{proportion}
+ DELETE FROM example_economics
+ <update id="deleteByEId">
+ WHERE example_id = #{eId}
+ <update id="delteByIndexId">
+ WHERE example_id = #{eId} and index_id = #{indexId}
+ <select id="findUniqueByProperty" resultType="ExampleEconomics" statementType="STATEMENT">
+ select * FROM example_economics where ${propertyName} = '${value}'
+ <select id="findEconomics" resultType="ExampleEconomics" >
@@ -0,0 +1,217 @@
+<mapper namespace="com.jeeplus.modules.exampleexpend.dao.ExampleExpendDao">
+ <sql id="exampleExpendColumns">
+ a.quota AS "quota"
+ <sql id="exampleExpendJoins">
+ <select id="get" resultType="ExampleExpend" >
+ <include refid="exampleExpendColumns"/>
+ FROM example_expend a
+ <include refid="exampleExpendJoins"/>
+ <select id="getCount" resultType="ExampleExpend" >
+ sum(a.count) AS sums,
+ max(a.quota) AS maxs,
+ min(a.quota) AS mins,
+ example_expend a
+ <select id="findList" resultType="ExampleExpend" >
+ <select id="findAllList" resultType="ExampleExpend" >
+ INSERT INTO example_expend(
+ quota
+ #{quota}
+ UPDATE example_expend SET
+ quota = #{quota}
+ DELETE FROM example_expend
+ <select id="findUniqueByProperty" resultType="ExampleExpend" statementType="STATEMENT">
+ select * FROM example_expend where ${propertyName} = '${value}'
+ <select id="findExpend" resultType="ExampleExpend" >
@@ -0,0 +1,214 @@
+<mapper namespace="com.jeeplus.modules.exampleproject.dao.ExampleProjectDao">
+ <sql id="exampleProjectColumns">
+ <sql id="exampleProjectJoins">
+ <select id="get" resultType="ExampleProject" >
+ <include refid="exampleProjectColumns"/>
+ FROM example_project a
+ <include refid="exampleProjectJoins"/>
+ <select id="getCount" resultType="ExampleProject" >
+ example_project a
+ AND i.is_disable = '0'
+ AND i.one_items = '2'
+ <select id="findList" resultType="ExampleProject" >
+ <select id="findAllList" resultType="ExampleProject" >
+ INSERT INTO example_project(
+ UPDATE example_project SET
+ DELETE FROM example_project
+ <select id="findUniqueByProperty" resultType="ExampleProject" statementType="STATEMENT">
+ select * FROM example_project where ${propertyName} = '${value}'
+ <select id="findProject" resultType="ExampleProject" >
@@ -0,0 +1,219 @@
+<mapper namespace="com.jeeplus.modules.examplesingle.dao.ExampleSingleDao">
+ <sql id="exampleSingleColumns">
+ a.exampleindices_id AS "exampleIndicesId",
+ <sql id="exampleSingleJoins">
+ <select id="get" resultType="ExampleSingle" >
+ <include refid="exampleSingleColumns"/>
+ FROM example_single a
+ <include refid="exampleSingleJoins"/>
+ <select id="getCount" resultType="ExampleSingle" >
+ example_single a
+ <select id="findList" resultType="ExampleSingle" >
+ <if test="exampleIndicesId != null and exampleIndicesId != ''">
+ AND a.exampleindices_id = #{exampleIndicesId}
+ <select id="findAllList" resultType="ExampleSingle" >
+ INSERT INTO example_single(
+ #{exampleIndicesId},
+ UPDATE example_single SET
+ exampleindices_id = #{exampleIndicesId},
+ DELETE FROM example_single
+ <select id="findUniqueByProperty" resultType="ExampleSingle" statementType="STATEMENT">
+ select * FROM example_single where ${propertyName} = '${value}'
+ <select id="findSingle" resultType="ExampleSingle" >
+ limit 1
@@ -0,0 +1,83 @@
+<mapper namespace="com.jeeplus.modules.gen.dao.GenDataBaseDictDao">
+ <!---->
+ <!--<select id="findTableList" resultType="GenTable">-->
+ <!--<if test="dbName == 'oracle'">-->
+ <!--SELECT -->
+ <!--t.TABLE_NAME AS name, -->
+ <!--c.COMMENTS AS comments-->
+ <!--FROM user_tables t, user_tab_comments c -->
+ <!--WHERE t.table_name = c.table_name-->
+ <!--<if test="name != null and name != ''">-->
+ <!--AND t.TABLE_NAME = upper(#{name})-->
+ <!--</if>-->
+ <!--ORDER BY t.TABLE_NAME-->
+ <!--<if test="dbName == 'mysql'"> -->
+ <!--SELECT t.table_name AS name,t.TABLE_COMMENT AS comments -->
+ <!--FROM information_schema.`TABLES` t -->
+ <!--WHERE t.TABLE_SCHEMA = (select database())-->
+ <!--</select>-->
+ <!--<select id="findTableColumnList" resultType="GenTableColumn">-->
+ <!--SELECT-->
+ <!--t.COLUMN_NAME AS name,<!– -->
+ <!--t.DATA_TYPE,-->
+ <!--t.DATA_LENGTH,-->
+ <!--t.DATA_PRECISION,-->
+ <!--t.DATA_SCALE, –>-->
+ <!--(CASE WHEN t.NULLABLE = 'Y' THEN '1' ELSE '0' END) AS isNull,-->
+ <!--(t.COLUMN_ID * 10) AS sort,-->
+ <!--c.COMMENTS AS comments,-->
+ <!--decode(t.DATA_TYPE,'DATE',t.DATA_TYPE || '(' || t.DATA_LENGTH || ')',-->
+ <!--'VARCHAR2', t.DATA_TYPE || '(' || t.DATA_LENGTH || ')',-->
+ <!--'VARCHAR', t.DATA_TYPE || '(' || t.DATA_LENGTH || ')',-->
+ <!--'NVARCHAR2', t.DATA_TYPE || '(' || t.DATA_LENGTH/2 || ')',-->
+ <!--'CHAR', t.DATA_TYPE || '(' || t.DATA_LENGTH || ')',-->
+ <!--'NUMBER',t.DATA_TYPE || (nvl2(t.DATA_PRECISION,nvl2(decode(t.DATA_SCALE,0,null,t.DATA_SCALE),-->
+ <!--'(' || t.DATA_PRECISION || ',' || t.DATA_SCALE || ')', -->
+ <!--'(' || t.DATA_PRECISION || ')'),'(18)')),t.DATA_TYPE) AS jdbcType -->
+ <!--FROM user_tab_columns t, user_col_comments c -->
+ <!--WHERE t.TABLE_NAME = c.table_name -->
+ <!--AND t.COLUMN_NAME = c.column_name -->
+ <!--ORDER BY t.COLUMN_ID-->
+ <!--SELECT t.COLUMN_NAME AS name, (CASE WHEN t.IS_NULLABLE = 'YES' THEN '1' ELSE '0' END) AS isNull,-->
+ <!--(t.ORDINAL_POSITION * 10) AS sort,t.COLUMN_COMMENT AS comments,t.COLUMN_TYPE AS jdbcType -->
+ <!--FROM information_schema.`COLUMNS` t -->
+ <!--ORDER BY t.ORDINAL_POSITION-->
+ <!--<select id="findTablePK" resultType="string">-->
+ <!--SELECT lower(cu.COLUMN_NAME) AS columnName-->
+ <!--FROM user_cons_columns cu, user_constraints au-->
+ <!--WHERE cu.constraint_name = au.constraint_name-->
+ <!--AND au.constraint_type = 'P'-->
+ <!--AND au.table_name = upper(#{name})-->
+ <!--<if test="dbName == 'mysql'">-->
+ <!--SELECT lower(au.COLUMN_NAME) AS columnName -->
+ <!--FROM information_schema.`COLUMNS` au-->
+ <!--WHERE au.TABLE_SCHEMA = (select database()) -->
+ <!--AND au.COLUMN_KEY='PRI' AND au.TABLE_NAME = upper(#{name})-->
@@ -0,0 +1,121 @@
+<mapper namespace="com.jeeplus.modules.gen.dao.GenSchemeDao">
+ <!--<sql id="genSchemeColumns">-->
+ <!--a.*,-->
+ <!--a.gen_table_id AS "genTable.id"-->
+ <!--</sql>-->
+ <!--<sql id="genSchemeJoins">-->
+ <!--<select id="get" resultType="GenScheme">-->
+ <!--<include refid="genSchemeColumns"/>-->
+ <!--FROM gen_scheme a-->
+ <!--<include refid="genSchemeJoins"/>-->
+ <!--WHERE a.id = #{id}-->
+ <!--<select id="findList" resultType="GenScheme">-->
+ <!--WHERE a.del_flag = #{DEL_FLAG_NORMAL} -->
+ <!--AND a.name LIKE -->
+ <!--<if test="dbName == 'oracle'">'%'||#{name}||'%'</if>-->
+ <!--<if test="dbName == 'mssql'">'%'+#{name}+'%'</if>-->
+ <!--<if test="dbName == 'mysql'">concat('%',#{name},'%')</if>-->
+ <!--ORDER BY a.update_date DESC-->
+ <!--<select id="findAllList" resultType="GenScheme">-->
+ <!--<insert id="insert">-->
+ <!--INSERT INTO gen_scheme(-->
+ <!--id, -->
+ <!--name, -->
+ <!--category, -->
+ <!--package_name, -->
+ <!--module_name, -->
+ <!--sub_module_name, -->
+ <!--function_name, -->
+ <!--function_name_simple, -->
+ <!--function_author, -->
+ <!--gen_table_id, -->
+ <!--create_by, -->
+ <!--create_date, -->
+ <!--update_by, -->
+ <!--update_date, -->
+ <!--remarks, -->
+ <!--del_flag-->
+ <!--) VALUES (-->
+ <!--#{id}, -->
+ <!--#{name}, -->
+ <!--#{category}, -->
+ <!--#{packageName}, -->
+ <!--#{moduleName}, -->
+ <!--#{subModuleName}, -->
+ <!--#{functionName}, -->
+ <!--#{functionNameSimple}, -->
+ <!--#{functionAuthor}, -->
+ <!--#{genTable.id}, -->
+ <!--#{createBy.id}, -->
+ <!--#{createDate}, -->
+ <!--#{updateBy.id}, -->
+ <!--#{updateDate}, -->
+ <!--#{remarks}, -->
+ <!--#{delFlag}-->
+ <!--)-->
+ <!--</insert>-->
+ <!--<update id="update">-->
+ <!--UPDATE gen_scheme SET -->
+ <!--name = #{name}, -->
+ <!--category = #{category}, -->
+ <!--package_name = #{packageName}, -->
+ <!--module_name = #{moduleName}, -->
+ <!--sub_module_name = #{subModuleName}, -->
+ <!--function_name = #{functionName}, -->
+ <!--function_name_simple = #{functionNameSimple}, -->
+ <!--function_author = #{functionAuthor}, -->
+ <!--gen_table_id = #{genTable.id}, -->
+ <!--update_by = #{updateBy.id}, -->
+ <!--update_date = #{updateDate}, -->
+ <!--remarks = #{remarks}-->
+ <!--WHERE id = #{id}-->
+ <!--</update>-->
+ <!--<update id="delete">-->
+ <!--DELETE FROM gen_scheme-->
+ <!--<update id="deleteByLogic">-->
+ <!--del_flag = #{DEL_FLAG_DELETE}-->
+ <!--<!– 根据实体名称和字段名称和字段值获取唯一记录 –>-->
+ <!--<select id="findUniqueByProperty" resultType="GenScheme" statementType="STATEMENT">-->
+ <!--<include refid="genSchemeJoins"/> where ${propertyName} = '${value}'-->
@@ -0,0 +1,185 @@
+<mapper namespace="com.jeeplus.modules.gen.dao.GenTableColumnDao">
+ <!--<sql id="genTableColumnColumns">-->
+ <!--b.id AS "genTable.id",-->
+ <!--b.name AS "genTable.name",-->
+ <!--b.comments AS "genTable.comments",-->
+ <!--b.class_name AS "genTable.className",-->
+ <!--b.parent_table AS "genTable.parentTable",-->
+ <!--b.parent_table_fk AS "genTable.parentTableFk"-->
+ <!--<sql id="genTableColumnJoins">-->
+ <!--JOIN gen_table b ON b.id = a.gen_table_id-->
+ <!--<select id="get" resultType="GenTableColumn">-->
+ <!--<include refid="genTableColumnColumns"/>-->
+ <!--FROM gen_table_column a-->
+ <!--<include refid="genTableColumnJoins"/>-->
+ <!--<select id="findList" resultType="GenTableColumn">-->
+ <!--<if test="genTable != null and genTable.id != null and genTable.id != ''">-->
+ <!--AND a.gen_table_id = #{genTable.id}-->
+ <!--ORDER BY a.sort ASC-->
+ <!--<select id="findAllList" resultType="GenTableColumn">-->
+ <!--INSERT INTO gen_table_column(-->
+ <!--comments, -->
+ <!--jdbc_type, -->
+ <!--java_type, -->
+ <!--java_field, -->
+ <!--is_pk, -->
+ <!--is_null, -->
+ <!--is_insert, -->
+ <!--is_edit, -->
+ <!--is_form,-->
+ <!--is_list, -->
+ <!--is_query, -->
+ <!--query_type, -->
+ <!--show_type, -->
+ <!--dict_type, -->
+ <!--sort, -->
+ <!--del_flag,-->
+ <!--tableName,-->
+ <!--fieldLabels,-->
+ <!--fieldKeys,-->
+ <!--searchLabel,-->
+ <!--searchKey,-->
+ <!--validateType,-->
+ <!--min_length,-->
+ <!--max_length,-->
+ <!--min_value,-->
+ <!--max_value-->
+ <!--#{comments}, -->
+ <!--#{jdbcType}, -->
+ <!--#{javaType}, -->
+ <!--#{javaField}, -->
+ <!--#{isPk}, -->
+ <!--#{isNull}, -->
+ <!--#{isInsert}, -->
+ <!--#{isEdit}, -->
+ <!--#{isForm}, -->
+ <!--#{isList}, -->
+ <!--#{isQuery}, -->
+ <!--#{queryType}, -->
+ <!--#{showType}, -->
+ <!--#{dictType}, -->
+ <!--#{sort}, -->
+ <!--#{delFlag},-->
+ <!--#{tableName},-->
+ <!--#{fieldLabels},-->
+ <!--#{fieldKeys},-->
+ <!--#{searchLabel},-->
+ <!--#{searchKey},-->
+ <!--#{validateType},-->
+ <!--#{minLength},-->
+ <!--#{maxLength},-->
+ <!--#{minValue},-->
+ <!--#{maxValue}-->
+ <!--UPDATE gen_table_column SET -->
+ <!--comments = #{comments}, -->
+ <!--jdbc_type = #{jdbcType}, -->
+ <!--java_type = #{javaType}, -->
+ <!--java_field = #{javaField}, -->
+ <!--is_pk = #{isPk}, -->
+ <!--is_null = #{isNull}, -->
+ <!--is_insert = #{isInsert}, -->
+ <!--is_edit = #{isEdit}, -->
+ <!--is_list = #{isList}, -->
+ <!--is_query = #{isQuery}, -->
+ <!--query_type = #{queryType}, -->
+ <!--show_type = #{showType}, -->
+ <!--dict_type = #{dictType}, -->
+ <!--sort = #{sort}, -->
+ <!--remarks = #{remarks},-->
+ <!--del_flag = #{delFlag},-->
+ <!--tableName = #{tableName},-->
+ <!--fieldLabels = #{fieldLabels},-->
+ <!--fieldKeys = #{fieldKeys},-->
+ <!--searchLabel = #{searchLabel},-->
+ <!--searchKey = #{searchKey},-->
+ <!--validateType = #{validateType},-->
+ <!--min_length = #{minLength},-->
+ <!--max_length = #{maxLength},-->
+ <!--min_value = #{minValue},-->
+ <!--max_value = #{maxValue}-->
+ <!--DELETE FROM gen_table_column -->
+ <!--<update id="deleteByGenTable">-->
+ <!--WHERE gen_table_id = #{id}-->
+ <!--<update id="deleteByGenTableByLogic">-->
+ <!--del_flag = '1'-->
@@ -0,0 +1,139 @@
+<mapper namespace="com.jeeplus.modules.gen.dao.GenTableDao">
+ <!--<sql id="genTableColumns">-->
+ <!--a.*-->
+ <!--<sql id="genTableJoins">-->
+ <!--<select id="get" resultType="GenTable">-->
+ <!--<include refid="genTableColumns"/>-->
+ <!--FROM gen_table a-->
+ <!--<include refid="genTableJoins"/>-->
+ <!--<select id="findList" resultType="GenTable">-->
+ <!--AND a.name = #{name}-->
+ <!--<if test="nameLike != null and nameLike != ''">-->
+ <!--<if test="dbName == 'oracle'">'%'||#{nameLike}||'%'</if>-->
+ <!--<if test="dbName == 'mssql'">'%'+#{nameLike}+'%'</if>-->
+ <!--<if test="dbName == 'mysql'">concat('%',#{nameLike},'%')</if>-->
+ <!--<if test="comments != null and comments != ''">-->
+ <!--AND a.comments LIKE -->
+ <!--<if test="dbName == 'oracle'">'%'||#{comments}||'%'</if>-->
+ <!--<if test="dbName == 'mssql'">'%'+#{comments}+'%'</if>-->
+ <!--<if test="dbName == 'mysql'">concat('%',#{comments},'%')</if>-->
+ <!--<if test="parentTable != null and parentTable != ''">-->
+ <!--AND a.parent_table = #{parentTable}-->
+ <!--<choose>-->
+ <!--<when test="page.orderBy != null and page.orderBy != ''">-->
+ <!--ORDER BY ${page.orderBy}-->
+ <!--</when>-->
+ <!--<otherwise>-->
+ <!--ORDER BY a.name ASC-->
+ <!--</otherwise>-->
+ <!--</choose>-->
+ <!--<select id="findAllList" resultType="GenTable">-->
+ <!--WHERE a.del_flag = #{DEL_FLAG_NORMAL}-->
+ <!--<when test="page !=null and page.orderBy != null and page.orderBy != ''">-->
+ <!--INSERT INTO gen_table(-->
+ <!--table_type,-->
+ <!--class_name, -->
+ <!--parent_table, -->
+ <!--parent_table_fk, -->
+ <!--issync-->
+ <!--#{comments},-->
+ <!--#{tableType}, -->
+ <!--#{className}, -->
+ <!--#{parentTable}, -->
+ <!--#{parentTableFk}, -->
+ <!--#{isSync}-->
+ <!--UPDATE gen_table SET <!– -->
+ <!--name = #{name}, –>-->
+ <!--table_type = #{tableType},-->
+ <!--class_name = #{className}, -->
+ <!--parent_table = #{parentTable}, -->
+ <!--parent_table_fk = #{parentTableFk}, -->
+ <!--issync = #{isSync}-->
+ <!--DELETE FROM gen_table -->
+ <!--UPDATE gen_table SET -->
+ <!--<update id="buildTable" statementType="STATEMENT"> -->
+ <!--${sql}-->
+ <!--<select id="findUniqueByProperty" resultType="GenTable" statementType="STATEMENT">-->
+ <!--select * FROM gen_table where ${propertyName} = '${value}'-->
@@ -0,0 +1,105 @@
+<mapper namespace="com.jeeplus.modules.gen.dao.GenTemplateDao">
+ <!--<sql id="genTemplateColumns">-->
+ <!--<sql id="genTemplateJoins">-->
+ <!--<select id="get" resultType="GenTemplate">-->
+ <!--<include refid="genTemplateColumns"/>-->
+ <!--FROM gen_template a-->
+ <!--<include refid="genTemplateJoins"/>-->
+ <!--<select id="findList" resultType="GenTemplate">-->
+ <!--<if test="category != null and category != ''">-->
+ <!--AND a.category LIKE -->
+ <!--<if test="dbName == 'oracle'">'%'||#{category}||'%'</if>-->
+ <!--<if test="dbName == 'mssql'">'%'+#{category}+'%'</if>-->
+ <!--<if test="dbName == 'mysql'">concat('%',#{category},'%')</if>-->
+ <!--ORDER BY a.name, a.update_date DESC-->
+ <!--<select id="findAllList" resultType="GenTemplate">-->
+ <!--INSERT INTO gen_template(-->
+ <!--file_path, -->
+ <!--file_name, -->
+ <!--content, -->
+ <!--#{filePath}, -->
+ <!--#{fileName}, -->
+ <!--#{content}, -->
+ <!--UPDATE gen_template SET -->
+ <!--file_path = #{filePath}, -->
+ <!--file_name = #{fileName}, -->
+ <!--content = #{content}, -->
+ <!--DELETE FROM gen_template -->
@@ -0,0 +1,386 @@
+<mapper namespace="com.jeeplus.modules.hr.dao.UserInfoDao">
+ <sql id="userInfoColumns">
+ a.user_id AS "userId",
+ a.nick_name AS "nickName",
+ a.gender AS "gender",
+ a.job_number AS "jobNumber",
+ a.highest_degree AS "highestDegree",
+ a.highest_school AS "highestSchool",
+ a.highest_profession AS "highestProfession",
+ a.highest_graduationtime AS "highestGraduationTime",
+ a.first_degree AS "firstDegree",
+ a.first_chool AS "firstSchool",
+ a.first_profession AS "firstProfession",
+ a.first_graduationtime AS "firstGraduationTime",
+ a.birthday AS "birthday",
+ a.id_card AS "idCard",
+ a.professional_title AS "professionalTitle",
+ a.professional_getdate AS "professionalGetdate",
+ a.social_insurance_account AS "socialInsuranceAccount",
+ a.medical_insurance_account AS "medicalInsuranceAccount",
+ a.bank_account AS "bankAccount",
+ a.provident_fund_account AS "providentFundAccount",
+ a.qq AS "qq",
+ a.weixin AS "weixin",
+ a.mobilephone AS "mobilePhone",
+ a.is_costengineer AS "isCostengineer",
+ a.costengineer_getdate AS "costengineerGetdate",
+ a.workstart_date AS "workstartDate",
+ a.probation_position AS "probationPosition",
+ a.probation_duration AS "probationDuration",
+ a.probation_enddate AS "probationEnddate",
+ a.professional_qualification AS "professionalQualification",
+ a.engaged_job AS "engagedJob",
+ a.other_qualification AS "otherQualification",
+ a.personal_profile AS "personalProfile"
+ <sql id="userInfoJoins">
+ <select id="findUserInfoList" resultType="UserInfo" >
+ ui.id AS "id",
+ ui.create_by AS "createBy",
+ ui.create_date AS "reateDate",
+ ui.update_by AS "updateBy.id",
+ ui.update_date AS "updateDate",
+ ui.remarks AS "remarks",
+ ui.del_flag AS "delFlag",
+ ui.user_id AS "userId",
+ ui.company_id AS "companyId",
+ ui.name AS "name",
+ ui.nick_name AS "nickName",
+ ui.gender AS "gender",
+ ui.job_number AS "jobNumber",
+ ui.highest_degree AS "highestDegree",
+ ui.highest_school AS "highestSchool",
+ ui.highest_profession AS "highestProfession",
+ ui.highest_graduationtime AS "highestGraduationTime",
+ ui.first_degree AS "firstDegree",
+ ui.first_chool AS "firstSchool",
+ ui.first_profession AS "firstProfession",
+ ui.first_graduationtime AS "firstGraduationTime",
+ ui.birthday AS "birthday",
+ ui.id_card AS "idCard",
+ ui.professional_title AS "professionalTitle",
+ ui.professional_getdate AS "professionalGetdate",
+ ui.social_insurance_account AS "socialInsuranceAccount",
+ ui.medical_insurance_account AS "medicalInsuranceAccount",
+ ui.bank_account AS "bankAccount",
+ ui.provident_fund_account AS "providentFundAccount",
+ ui.qq AS "qq",
+ ui.weixin AS "weixin",
+ ui.mobilephone AS "mobilePhone",
+ ui.email AS "email",
+ ui.is_costengineer AS "isCostengineer",
+ ui.costengineer_getdate AS "costengineerGetdate",
+ ui.workstart_date AS "workstartDate",
+ ui.probation_position AS "probationPosition",
+ ui.probation_duration AS "probationDuration",
+ ui.probation_enddate AS "probationEnddate",
+ ui.professional_qualification AS "professionalQualification",
+ ui.engaged_job AS "engagedJob",
+ ui.other_qualification AS "otherQualification",
+ ui.personal_profile AS "personalProfile",
+ uo.id AS "userOffice.id",
+ uo.create_by AS "userOffice.createBy.id",
+ uo.create_date AS "userOffice.createDate",
+ uo.update_by AS "userOffice.updateBy.id",
+ uo.update_date AS "userOffice.updateDate",
+ uo.remarks AS "userOffice.remarks",
+ uo.del_flag AS "userOffice.delFlag",
+ uo.user_id AS "userOffice.userId",
+ uo.company_id AS "userOffice.companyId",
+ uo.office_id AS "userOffice.officeId",
+ uo.master AS "userOffice.master",
+ uo.status AS "userOffice.status",
+ u.id AS "userOffice.user.id",
+ u.com_id AS "userOffice.user.comId",
+ u.company_id AS "userOffice.user.company.id",
+ u.office_id AS "userOffice.user.office.id",
+ u.login_name AS "userOffice.user.loginName",
+ u.password AS "userOffice.user.passwork",
+ u.password_remake AS "userOffice.user.passwordRemake",
+ u.no AS "userOffice.user.no",
+ u.name AS "userOffice.user.name",
+ u.sex AS "userOffice.user.sex",
+ u.email AS "userOffice.user.email",
+ u.phone AS "userOffice.user.phone",
+ u.mobile AS "userOffice.user.mobile",
+ u.ishide AS "userOffice.user.ishide",
+ u.user_type AS "userOffice.user.userType",
+ u.login_ip AS "userOffice.user.loginIp",
+ u.login_date AS "userOffice.user.loginDate",
+ u.remarks AS "userOffice.user.remarks",
+ u.login_flag AS "userOffice.user.loginFlag",
+ u.photo AS "userOffice.user.photo",
+ u.default_photo AS "userOffice.user.defaultPhoto",
+ u.qrcode AS "userOffice.user.qrcode",
+ u.sign AS "userOffice.user.sign",
+ u.create_by AS "userOffice.user.createBy.id",
+ u.create_date AS "userOffice.user.createDate",
+ u.update_by AS "userOffice.user.updateBy.id",
+ u.update_date AS "userOffice.user.updateDate",
+ u.del_flag AS "userOffice.user.delFlag"
+ FROM sys_user_office uo
+ LEFT JOIN sys_user u ON u.id = uo.user_id
+ LEFT JOIN sys_user_info ui ON ui.sys_user_office_id = uo.id
+ uo.del_flag = '0'
+ AND uo.status = '3'
+ <if test="companyId !=null and companyId !=''">
+ AND uo.company_id = #{companyId}
+ <if test="name != null and name !=''">
+ AND (ui.name LIKE concat('%',#{name},'%') or u.name LIKE concat('%',#{name},'%'))
+ <if test="gender != null and gender !=''">
+ AND (ui.gender = #{gender} or u.sex = #{gender})
+ <if test="mobilePhone !=null and mobilePhone != ''">
+ AND (ui.mobilePhone LIKE concat('%',#{mobilePhone},'%') or u.phone LIKE concat ('%',#{mobilePhone},'%'))
+ <if test="idCard !=null and idCard !=''">
+ AND (ui.id_card LIKE concat('%',#{idCard},'%'))
+ <if test="officeId != null and officeId !=''">
+ AND uo.office_id = #{officeId}
+ ORDER BY uo.create_by DESC
+ <select id="findUserInfoByUserIdCompanyId" resultType="UserInfo">
+ SELECT <include refid="userInfoColumns"/>
+ FROM sys_user_info a
+ AND user_id = #{userId}
+ <select id="get" resultType="UserInfo" >
+ <include refid="userInfoColumns"/>
+ <include refid="userInfoJoins"/>
+ <select id="findList" resultType="UserInfo">
+ <include refid="userInfoColumns"/>,
+ <select id="findAllList" resultType="UserInfo" >
+ INSERT INTO sys_user_info(
+ sys_user_office_id,
+ nick_name,
+ gender,
+ job_number,
+ highest_degree,
+ highest_school,
+ highest_profession,
+ highest_graduationtime,
+ first_degree,
+ first_chool,
+ first_profession,
+ first_graduationtime,
+ birthday,
+ id_card,
+ professional_title,
+ professional_getdate,
+ social_insurance_account,
+ medical_insurance_account,
+ bank_account,
+ provident_fund_account,
+ qq,
+ weixin,
+ mobilephone,
+ is_costengineer,
+ costengineer_getdate,
+ workstart_date,
+ probation_position,
+ probation_duration,
+ probation_enddate,
+ professional_qualification,
+ engaged_job,
+ other_qualification,
+ personal_profile
+ #{userId},
+ #{userOffice.id},
+ #{nickName},
+ #{gender},
+ #{jobNumber},
+ #{highestDegree},
+ #{highestSchool},
+ #{highestProfession},
+ #{highestGraduationTime},
+ #{firstDegree},
+ #{firstSchool},
+ #{firstProfession},
+ #{firstGraduationTime},
+ #{birthday},
+ #{idCard},
+ #{professionalTitle},
+ #{professionalGetdate},
+ #{socialInsuranceAccount},
+ #{medicalInsuranceAccount},
+ #{bankAccount},
+ #{providentFundAccount},
+ #{qq},
+ #{weixin},
+ #{mobilePhone},
+ #{isCostengineer},
+ #{costengineerGetdate},
+ #{workstartDate},
+ #{probationPosition},
+ #{probationDuration},
+ #{probationEnddate},
+ #{professionalQualification},
+ #{engagedJob},
+ #{otherQualification},
+ #{personalProfile}
+ UPDATE sys_user_info SET
+ user_id = #{userId},
+ nick_name = #{nickName},
+ gender = #{gender},
+ job_number = #{jobNumber},
+ highest_degree = #{highestDegree},
+ highest_school = #{highestSchool},
+ highest_profession = #{highestProfession},
+ highest_graduationtime = #{highestGraduationTime},
+ first_degree = #{firstDegree},
+ first_chool = #{firstSchool},
+ first_profession = #{firstProfession},
+ first_graduationtime = #{firstGraduationTime},
+ birthday = #{birthday},
+ id_card = #{idCard},
+ professional_title = #{professionalTitle},
+ professional_getdate = #{professionalGetdate},
+ social_insurance_account = #{socialInsuranceAccount},
+ medical_insurance_account = #{medicalInsuranceAccount},
+ bank_account = #{bankAccount},
+ provident_fund_account = #{providentFundAccount},
+ qq = #{qq},
+ weixin = #{weixin},
+ mobilephone = #{mobilePhone},
+ is_costengineer = #{isCostengineer},
+ costengineer_getdate = #{costengineerGetdate},
+ workstart_date = #{workstartDate},
+ probation_position = #{probationPosition},
+ probation_duration = #{probationDuration},
+ probation_enddate = #{probationEnddate},
+ professional_qualification = #{professionalQualification},
+ engaged_job = #{engagedJob},
+ other_qualification = #{otherQualification},
+ personal_profile = #{personalProfile},
+ sys_user_office_id = #{userOffice.id}
+ DELETE FROM sys_user_info
+ <select id="findUniqueByProperty" resultType="UserInfo" statementType="STATEMENT">
+ select * FROM sys_user_info where ${propertyName} = '${value}'
@@ -0,0 +1,179 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.ChatHistoryDao">
+ <sql id="chatHistoryColumns">
+ a.userid1 AS "userid1",
+ a.userid2 AS "userid2",
+ a.msg AS "msg",
+ a.type AS "type"
+ <sql id="chatHistoryJoins">
+ <select id="get" resultType="ChatHistory">
+ <include refid="chatHistoryColumns"/>
+ FROM iim_chat_history a
+ <include refid="chatHistoryJoins"/>
+ <select id="findList" resultType="ChatHistory">
+ <if test="userid1 != null and userid1 != ''">
+ AND a.userid1 = #{userid1}
+ <if test="userid2 != null and userid2 != ''">
+ AND a.userid2 = #{userid2}
+ <if test="msg != null and msg != ''">
+ AND a.msg LIKE
+ <if test="dbName == 'oracle'">'%'||#{msg}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{msg}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{msg},'%')</if>
+ <if test="status != null and status != ''">
+ AND a.status = #{status}
+ <if test="createDate != null and createDate != ''">
+ AND a.create_date = #{createDate}
+ group by userid2
+ ORDER BY a.create_date asc
+ <select id="findLogList" resultType="ChatHistory">
+ <if test="userid1 != null and userid1 != '' and userid2 != null and userid2 != ''">
+ AND ((a.userid1 = #{userid1} AND a.userid2 = #{userid2}) or (a.userid1 = #{userid2} AND a.userid2 = #{userid1}))
+ ORDER BY a.create_date desc
+ <select id="getIMUserContacts" resultType="ChatHistory">
+ a.type = 'friend'
+ GROUP BY a.userid1
+ LIMIT 10
+ <select id="findGroupLogList" resultType="ChatHistory">
+ <select id="findAllList" resultType="ChatHistory">
+ INSERT INTO iim_chat_history(
+ userid1,
+ userid2,
+ msg,
+ type
+ #{userid1},
+ #{userid2},
+ #{msg},
+ #{type}
+ UPDATE iim_chat_history SET
+ userid1 = #{userid1},
+ userid2 = #{userid2},
+ msg = #{msg},
+ create_date = #{createDate},
+ type = #{type}
+ DELETE FROM iim_chat_history
+ <!-- 查询全部用户数目 -->
+ <select id="findUnReadCount" resultType="int">
+ COUNT(1)
+ FROM iim_chat_history a WHERE
+ a.userid1 = #{userid2} AND a.userid2 = #{userid1}
+ AND a.status = '0'
@@ -0,0 +1,133 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.LayGroupDao">
+ <sql id="layGroupColumns">
+ a.groupname AS "groupname",
+ a.avatar AS "avatar",
+ t_user.name AS "createBy.name",
+ t_user.photo AS "createBy.photo",
+ t_user.login_name AS "createBy.loginName"
+ <sql id="layGroupJoins">
+ LEFT JOIN sys_user t_user ON t_user.id = a.create_by
+ <select id="get" resultType="LayGroup" >
+ <include refid="layGroupColumns"/>
+ FROM t_group a
+ <include refid="layGroupJoins"/>
+ <select id="findList" resultType="LayGroup" >
+ <if test="groupname != null and groupname != ''">
+ AND a.groupname LIKE
+ <if test="dbName == 'oracle'">'%'||#{groupname}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{groupname}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{groupname},'%')</if>
+ <select id="findAllList" resultType="LayGroup" >
+ INSERT INTO t_group(
+ groupname,
+ avatar,
+ del_flag
+ #{groupname},
+ #{avatar},
+ #{delFlag}
+ UPDATE t_group SET
+ groupname = #{groupname},
+ avatar = #{avatar},
+ create_by = #{createBy.id},
+ remarks = #{remarks}
+ DELETE FROM t_group
+ <select id="findUniqueByProperty" resultType="LayGroup" statementType="STATEMENT">
+ select * FROM t_group where ${propertyName} = '${value}'
@@ -0,0 +1,164 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.LayGroupUserDao">
+ <sql id="layGroupUserColumns">
+ a.group_id AS "group.id",
+ a.is_admin AS "isAdmin",
+ t_user.name AS "user.name",
+ t_user.photo AS "user.photo",
+ t_user.login_name AS "user.loginName"
+ <sql id="layGroupUserJoins">
+ LEFT JOIN t_group b ON b.id = a.group_id
+ LEFT JOIN sys_user t_user ON t_user.id = a.user_id
+ <select id="get" resultType="LayGroupUser" >
+ <include refid="layGroupUserColumns"/>
+ FROM group_user a
+ <include refid="layGroupUserJoins"/>
+ <select id="findList" resultType="LayGroupUser" >
+ <if test="user != null and user.id != null and user.id != ''">
+ <if test="isAdmin != null and isAdmin != ''">
+ AND a.is_admin = #{isAdmin}
+ <if test="group != null and group.id != null and group.id != ''">
+ AND a.group_id = #{group.id}
+ ORDER BY a.create_date DESC
+ <select id="findAllList" resultType="LayGroupUser" >
+ ORDER BY a.create_date ASC
+ INSERT INTO group_user(
+ is_admin,
+ group_id
+ #{isAdmin},
+ #{group.id}
+ UPDATE group_user SET
+ is_admin = #{isAdmin},
+ group_id = #{group.id}
+ DELETE FROM group_user
+ <when test="id !=null and id != ''">
+ WHERE group_id = #{group.id}
+ <update id="deleteUser">
+ WHERE group_id = #{group.id} AND user_id = #{user.id}
+ <select id="findUniqueByProperty" resultType="LayGroupUser" statementType="STATEMENT">
+ select * FROM group_user where ${propertyName} = '${value}'
@@ -0,0 +1,158 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.MailBoxDao">
+ <sql id="mailBoxColumns">
+ a.readstatus AS "readstatus",
+ a.senderid AS "sender.id",
+ a.receiverid AS "receiver.id",
+ a.sendtime AS "sendtime",
+ a.mailid AS "mail.id",
+ receiver.name AS "receiver.name",
+ sender.name AS "sender.name",
+ sender.photo AS "sender.photo",
+ mail.title AS "mail.title",
+ mail.overview AS "mail.overview",
+ mail.content AS "mail.content"
+ <sql id="mailBoxJoins">
+ LEFT JOIN iim_mail mail ON mail.id = a.mailid
+ LEFT JOIN sys_user receiver ON receiver.id = a.receiverid
+ LEFT JOIN sys_user sender ON sender.id = a.senderid
+ <resultMap type="MailBox" id="MailMap" autoMapping="true">
+ <association property="mail" javaType="Mail">
+ <id property="id" column="mail.id"/>
+ <result property="title" column="mail.title"/>
+ <result property="overview" column="mail.overview"/>
+ <result property="content" column="mail.content" typeHandler="com.jeeplus.common.mapper.ConvertBlobTypeHandler"/>
+ </association>
+ </resultMap>
+ <select id="get" resultMap="MailMap">
+ <include refid="mailBoxColumns"/>
+ FROM iim_mail_box a
+ <include refid="mailBoxJoins"/>
+ <select id="findList" resultType="MailBox">
+ <if test="receiver != null and receiver.id != null and receiver.id != ''">
+ AND a.receiverid = #{receiver.id}
+ <if test="readstatus != null and readstatus != ''">
+ AND a.readstatus = #{readstatus}
+ <if test="mail != null and mail.title != null and mail.title != ''">
+ AND ( mail.title like
+ <if test="dbName == 'oracle'">'%'||#{mail.title}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{mail.title}, '%')</if>
+ or
+ mail.content like
+ <select id="findAllList" resultType="MailBox">
+ <select id="getCount" resultType="java.lang.Integer">
+ SELECT count(*)
+ <if test="readstatus !=null and readstatus != ''">
+ and a.readstatus = #{readstatus}
+ INSERT INTO iim_mail_box(
+ readstatus,
+ senderid,
+ receiverid,
+ sendtime,
+ mailid
+ #{readstatus},
+ #{sender.id},
+ #{receiver.id},
+ #{sendtime},
+ #{mail.id}
+ UPDATE iim_mail_box SET
+ readstatus = #{readstatus},
+ senderid = #{sender.id},
+ receiverid = #{receiver.id},
+ sendtime = #{sendtime},
+ mailid = #{mail.id}
+ DELETE FROM iim_mail_box
+ WHERE mailid = #{mail.id}
+<!-- <update id="deleteByLogic">
+ </update>-->
@@ -0,0 +1,157 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.MailComposeDao">
+ <sql id="mailComposeColumns">
+ <sql id="mailComposeJoins">
+ <resultMap type="MailCompose" id="MailMap" autoMapping="true">
+ <include refid="mailComposeColumns"/>
+ FROM iim_mail_compose a
+ <include refid="mailComposeJoins"/>
+ <select id="findList" resultType="MailCompose">
+ <select id="findAllList" resultType="MailCompose">
+ <if test="sender != null and sender.id != null and sender.id != ''">
+ AND a.senderid = #{sender.id}
+ <if test="status !=null and status != ''">
+ and a.status = #{status}
+ INSERT INTO iim_mail_compose(
+ UPDATE iim_mail_compose SET
+ DELETE FROM iim_mail_compose
+ <!-- <update id="deleteByLogic">
@@ -0,0 +1,95 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.MailDao">
+ <sql id="mailColumns">
+ a.title AS "title",
+ a.overview AS "overview",
+ a.content AS "content"
+ <sql id="mailJoins">
+ <select id="get" resultType="Mail">
+ <include refid="mailColumns"/>
+ FROM iim_mail a
+ <include refid="mailJoins"/>
+ <select id="findList" resultType="Mail">
+ <if test="title != null and title != ''">
+ AND a.title LIKE
+ <if test="dbName == 'oracle'">'%'||#{title}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{title}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{title},'%')</if>
+ <select id="findAllList" resultType="Mail">
+ INSERT INTO iim_mail(
+ title,
+ overview,
+ content
+ #{title},
+ #{overview},
+ #{content}
+ UPDATE iim_mail SET
+ title = #{title},
+ overview = #{overview},
+ content = #{content}
+ DELETE FROM iim_mail
@@ -0,0 +1,209 @@
+<mapper namespace="com.jeeplus.modules.iim.dao.MyCalendarDao">
+ <sql id="myCalendarColumns">
+ a.starttime AS "start",
+ a.endtime AS "end",
+ a.allday AS "adllDay",
+ a.color AS "color",
+ a.userid AS "user.id",
+ a.location AS "location",
+ a.noticetime AS "notice",
+ tuser.name AS "user.name",
+ a.office_id AS "officeId"
+ <!--新加location字段和notice字段 -->
+ <sql id="myCalendarJoins">
+ LEFT JOIN sys_user tuser ON tuser.id = a.userid
+ <select id="get" resultType="MyCalendar">
+ <include refid="myCalendarColumns" />
+ FROM calendar a
+ <include refid="myCalendarJoins" />
+ <select id="getByUserIdCount" resultType="MyCalendar">
+ count(*) AS "count"
+ WHERE 1=1
+ <if test="start != null and start != ''">
+ AND str_to_date(a.starttime,'%Y-%m-%d') = str_to_date(#{start},'%Y-%m-%d')
+ or ( str_to_date(a.starttime,'%Y-%m-%d') < str_to_date( #{start},'%Y-%m-%d')
+ and str_to_date(a.endtime,'%Y-%m-%d') >= str_to_date( #{start},'%Y-%m-%d'))
+ GROUP BY a.userid
+ <select id="findList" resultType="MyCalendar">
+ AND a.userid = #{user.id}
+ <select id="findListByDate" resultType="MyCalendar">
+ <if test="start != null and start != '' and end != null and end != ''">
+ AND a.starttime <= #{start}
+ AND a.endtime >= #{end}
+ <select id="findListByStart" resultType="MyCalendar">
+ AND a.starttime like CONCAT(#{start},'%')
+ <select id="findAllList" resultType="MyCalendar">
+ INSERT INTO calendar(
+ starttime,
+ endtime,
+ allday,
+ color,
+ userid,
+ location,
+ noticetime
+ #{start},
+ #{end},
+ #{adllDay},
+ #{color},
+ #{location},
+ #{notice}
+ UPDATE calendar SET
+ starttime = #{start},
+ endtime = #{end},
+ allday = #{adllDay},
+ color = #{color},
+ userid = #{user.id},
+ location = #{location},
+ noticetime = #{notice}
+ <!--物理删除 -->
+ DELETE FROM calendar
+ <!--逻辑删除 -->
+ <select id="findUniqueByProperty" resultType="MyCalendar"
+ statementType="STATEMENT">
+ select * FROM calendar where ${propertyName} =
+ '${value}'
@@ -0,0 +1,215 @@
+<mapper namespace="com.jeeplus.modules.isignature.dao.ISignatureDocumentDao">
+ <sql id="iSignatureDocumentColumns">
+ a.record_id AS "recordId",
+ a.subject AS "subject",
+ a.file_path AS "filePath",
+ a.file_name AS "fileName",
+ a.image_path AS "imagePath",
+ a.isignature_status as "isignatureStatus"
+ <sql id="iSignatureDocumentJoins">
+ <select id="get" resultType="ISignatureDocument" >
+ <include refid="iSignatureDocumentColumns"/>
+ FROM isignature_document a
+ <include refid="iSignatureDocumentJoins"/>
+ <select id="getByRecordId" resultType="ISignatureDocument" >
+ WHERE a.record_id = #{recordId}
+ <select id="findList" resultType="ISignatureDocument" >
+ <if test="companyId != null and companyId !=''">
+ <!--<if test="createBy != null and createBy.id !=null and createBy.id !=''">
+ </if>-->
+ <if test="subject != null and subject !=''">
+ AND a.subject like "%"#{subject}"%"
+ <select id="findAllList" resultType="ISignatureDocument" >
+ INSERT INTO isignature_document(
+ record_id,
+ subject,
+ file_path,
+ file_name,
+ image_path,
+ isignature_status
+ #{recordId},
+ #{subject},
+ #{filePath},
+ #{fileName},
+ #{imagePath},
+ #{isignatureStatus}
+ UPDATE isignature_document SET
+ record_id = #{recordId},
+ subject = #{subject},
+ file_path = #{filePath},
+ file_name = #{fileName},
+ image_path = #{imagePath},
+ isignature_status = #{isignatureStatus}
+ DELETE FROM isignature_document
+ <select id="findUniqueByProperty" resultType="ISignatureDocument" statementType="STATEMENT">
+ select * FROM isignature_document where ${propertyName} = '${value}'
+ <update id="updateSelective">
+ UPDATE isignature_document
+ SET
+ <trim suffixOverrides=",">
+ <if test="updateBy!=null">
+ <if test="updateDate!=null">
+ <if test="remarks!=null">
+ <if test="recordId!=null">
+ <if test="subject!=null">
+ <if test="type!=null">
+ <if test="status!=null">
+ <if test="companyId!=null">
+ <if test="filePath!=null">
+ <if test="fileName!=null">
+ <if test="imagePath!=null">
+ <if test="isignatureStatus!=null">
+ </trim>
+ <select id="getCount" resultType="int" >
+ count(*)
+ join work_attachment w on w.id=a.record_id and w.attachment_id=#{id}
+ where a.isignature_status='1'
@@ -0,0 +1,360 @@
+<mapper namespace="com.jeeplus.modules.leaveapply.dao.LeaveApplyDao">
+ <sql id="leaveApplyColumns">
+ a.branch_office AS "branchOffice",
+ a.staff_id AS "staffId",
+ a.start_time AS "startTime",
+ a.end_time AS "endTime",
+ a.start_type AS "startType",
+ a.end_type AS "endType",
+ a.long_time AS "longTime",
+ a.sell_status AS "sellStatus",
+ a.apply_time AS "applyTime",
+ a.no AS "no",
+ w.name AS "basicInfo.name",
+ w.id AS "basicInfo.id",
+ w.no AS "basicInfo.no",
+ w.status as "basicInfo.status",
+ m.top_company AS "basicInfo.office.name",
+ m.id AS "basicInfo.office.id",
+ j.name AS "basicInfo.jobGrade.name",
+ a.applyer,
+ a.back_time,
+ a.contrast,
+ a.back_start_type as "backStartType"
+ <sql id="leaveApplyJoins">
+ left join work_staff_achives w on w.id=a.staff_id
+ left join sys_office m on m.id=w.office_id
+ left join work_job_grade j on j.id=w.job_grade
+ LEFT JOIN sys_office o ON o.id = a.office_id
+ LEFT JOIN sys_office s ON s.id = a.company_id
+ LEFT JOIN sys_user u ON u.id = a.create_by
+ <select id="get" resultType="LeaveApply" >
+ <include refid="leaveApplyColumns"/>
+ FROM leave_apply a
+ <include refid="leaveApplyJoins"/>
+ <select id="getByStaffIdAndTime" resultType="LeaveApply" >
+ LEFT JOIN leave_detail d ON d.leave_id = a.id
+ WHERE a.staff_id = #{staffId}
+ AND a.status IN ('5','8')
+ AND #{time}
+ BETWEEN d.start_time AND d.end_time
+ AND #{time} <= d.real_end_time;
+ <select id="findList" resultType="LeaveApply" >
+ <if test="beginApplyTime != null and endApplyTime != null and beginApplyTime != '' and endApplyTime != ''">
+ AND a.apply_time BETWEEN #{beginApplyTime} AND #{endApplyTime}
+ <if test="basicInfo != null and basicInfo.name != null and basicInfo.name != ''">
+ AND w.name LIKE
+ <if test="dbName == 'oracle'">'%'||#{basicInfo.name}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{basicInfo.name}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{basicInfo.name},'%')</if>
+ ${sqlMap.dsf}
+ <if test="staffId != null and staffId != ''">
+ AND a.staff_id = #{staffId}
+ <select id="findAllList" resultType="LeaveApply" >
+ INSERT INTO leave_apply(
+ branch_office,
+ staff_id,
+ start_time,
+ end_time,
+ start_type,
+ end_type,
+ long_time,
+ process_instance_id,
+ sell_status,
+ apply_time,
+ no,
+ applyer,
+ back_time,
+ contrast,
+ back_start_type
+ #{branchOffice},
+ #{basicInfo.id},
+ #{startTime},
+ #{endTime},
+ #{startType},
+ #{endType},
+ #{longTime},
+ #{processInstanceId},
+ #{sellStatus},
+ #{applyTime},
+ #{no},
+ #{applyer},
+ #{backTime},
+ #{contrast},
+ #{backStartType}
+ UPDATE leave_apply SET
+ branch_office = #{branchOffice},
+ staff_id = #{basicInfo.id},
+ start_time = #{startTime},
+ end_time = #{endTime},
+ start_type = #{startType},
+ end_type = #{endType},
+ long_time = #{longTime},
+ process_instance_id = #{processInstanceId},
+ sell_status = #{sellStatus},
+ apply_time = #{applyTime},
+ no = #{no},
+ applyer=#{applyer},
+ back_time = #{backTime},
+ contrast=#{contrast},
+ back_start_type = #{backStartType}
+ DELETE FROM leave_apply
+ <select id="findUniqueByProperty" resultType="LeaveApply" statementType="STATEMENT">
+ select * FROM leave_apply where ${propertyName} = '${value}'
+ <update id="updateProcessIdAndStatus" >
+ status = #{status}
+ <select id="getCount" resultType="LeaveApply" >
+ WHERE a.staff_id = #{basicInfo.id} and a.status not in ('8')
+ <select id="getMaxTime" resultType="java.lang.String" parameterType="java.lang.String">
+ max(DATE_FORMAT(end_time, '%Y-%m-%d')) AS endTime
+ FROM `leave_apply` l
+ del_flag='0'
+ and staff_id = #{staffId}
+ and id !=#{id}
+ <select id="findHisTime" resultType="java.lang.Integer">
+ count(*) as "total"
+ FROM leave_detail a
+ AND a.leave_id in
+ (select y.id from leave_apply y where y.staff_id=#{staffId} and y.status='8' and y.del_flag='0'
+ and y.id!=#{id}
+ </if>)
+ and ((#{startTime}> a.start_time and #{startTime} < a.end_time)
+ or (#{endTime} > a.start_time and #{endTime} < a.end_time))
+</select>
+ <select id="findHisDate" resultType="java.lang.Integer">
+ count(*) AS "total" FROM
+ leave_detail a WHERE
+ a.del_flag = '0' AND a.leave_id IN (
+ SELECT y.id FROM leave_apply y WHERE y.staff_id =#{staffId}
+ AND y. STATUS = '8'
+ AND y.del_flag = '0'
+ AND y.id !=#{id})
+ AND ((a.start_time = #{startTime} and a.start_type=#{startType})
+ OR (a.start_time = #{endTime} and a.start_type=#{endType})
+ OR (a.end_time = #{startTime} and a.end_type=#{startType})
+ OR (a.end_time = #{endTime} and a.end_type=#{endType}))
+ <select id="getMange" resultType="LeaveApply" >
+ WHERE a.company_id=#{companyId} and a.del_flag = '0' and a.status in('5','8','6','7','9')
+ <if test="basicInfo != null and basicInfo.office != null and basicInfo.office.id != null and basicInfo.office.id != ''">
+ AND a.office_id = #{basicInfo.office.id}
+<!-- 有异常-->
+<!-- group by a.staff_id order by w.no ASC-->
+ <select id="getSumDays" resultType="LeaveApply" parameterType="java.lang.String">
+ ifnull(sum(a.sums),0) as "sumDays"
+ FROM leave_count a
+ where
+ and a.staff_id =#{staffId}
+ <select id="getResetState" resultType="int" parameterType="java.lang.String">
+ and a.reset_state='0'
+ <update id="updateDetailFlat">
+ UPDATE leave_detail a SET
+ a.flat = '1',a.state='0'
+ WHERE a.leave_id=#{id}
+ <update id="deleteDetail">
+ DELETE FROM leave_detail
+ WHERE leave_id = #{id} and state='1'
+ <update id="updateBack">
+ UPDATE leave_apply a SET
+ a.back_time=null,
+ a.contrast=null
+ WHERE a.id=#{id}
+ <update id="updateLongTime">
+ a.long_time=(select ifnull(sum(days),0) from leave_detail
+ WHERE leave_id = #{id} and state!='1')
+ <select id="getBackTaskList" resultType="LeaveApply" >
+ where a.id in (SELECT a.id FROM leave_apply a
+ LEFT JOIN (SELECT d.leave_id, max(d.end_time) AS end_time FROM leave_detail d
+ WHERE d.del_flag = '0' GROUP BY d.leave_id) i ON i.leave_id = a.id
+ AND a.`status` = '5'
+ AND date_add(DATE_FORMAT(i.end_time, '%Y-%m-%d'),INTERVAL 1 day)=DATE_FORMAT(now(), '%Y-%m-%d'))
@@ -0,0 +1,151 @@
+<mapper namespace="com.jeeplus.modules.leaveapply.dao.LeaveCountDao">
+ <sql id="leaveCountColumns">
+ a.reset_state as "resetState",
+ a.leave_type_id AS "leaveTypeId",
+ a.counts AS "counts",
+ a.sums AS "sums",
+ a.up_days AS "upDays",
+ a.year AS "year",
+ a.reset_date AS "resetDate",
+ l.name as "leaveType.name",
+ l.method as "leaveType.method",
+ l.zero as "leaveType.zero"
+ <sql id="leaveCountJoins">
+ left join leave_type l on l.id=a.leave_type_id
+ <select id="get" resultType="LeaveCount" >
+ <include refid="leaveCountColumns"/>
+ <include refid="leaveCountJoins"/>
+ <select id="findList" resultType="LeaveCount" >
+ <if test="leaveTypeId != null and leaveTypeId != ''">
+ AND a.leave_type_id = #{leaveTypeId}
+ <if test="year != null and year != ''">
+ AND a.year = #{year}
+ <if test="resetState != null and resetState != ''">
+ AND a.reset_state = #{resetState}
+ <select id="findAllList" resultType="LeaveCount" >
+ INSERT INTO leave_count(
+ leave_type_id,
+ counts,
+ sums,
+ reset_date,
+ reset_state,
+ up_days,
+ year
+ #{staffId},
+ #{leaveTypeId},
+ #{counts},
+ #{sums},
+ #{resetDate},
+ #{resetState},
+ #{upDays},
+ #{year}
+ UPDATE leave_count SET
+ counts = #{counts},
+ sums = #{sums},
+ update_date = #{updateDate}
+ <update id="updateReset" parameterType="java.lang.String">
+ counts ='0',
+ sums = '0',
+ reset_date=now(),
+ reset_state='1',
+ update_date=now()
+ DELETE FROM leave_count
+ <select id="findUniqueByProperty" resultType="LeaveCount" statementType="STATEMENT">
+ select * FROM leave_count where ${propertyName} = '${value}'
@@ -0,0 +1,297 @@
+<mapper namespace="com.jeeplus.modules.leaveapply.dao.LeaveDetailDao">
+ <sql id="leaveDetailColumns">
+ a.leave_id AS "leaveId",
+ a.days AS "days",
+ a.flat AS "flat",
+ a.state AS "state",
+ a.real_end_time AS "realEndTime",
+ a.real_end_type AS "realEndType",
+ a.real_days AS "realDays",
+ a.is_use AS "isUse",
+ b.name as "leaveType.name",
+ b.model as "leaveType.model",
+ b.unit as "leaveType.unit",
+ b.method as "leaveType.method",
+ b.zero as "leaveType.zero",
+ b.is_attendance as "leaveType.isAttendance",
+ b.is_next as "leaveType.isNext",
+ b.no as "leaveType.no",
+ b.id as "leaveType.id"
+ <sql id="leaveDetailJoins">
+ left join leave_type b on b.id=a.leave_type_id
+ <select id="get" resultType="LeaveDetail" >
+ <include refid="leaveDetailColumns"/>
+ <include refid="leaveDetailJoins"/>
+ <select id="findList" resultType="LeaveDetail" >
+ AND a.leave_id = #{leaveId}
+ ORDER BY a.create_date Asc
+ <select id="findAllList" resultType="LeaveDetail" >
+ INSERT INTO leave_detail(
+ leave_id,
+ days,
+ flat,
+ state,
+ real_end_time,
+ is_use,
+ real_end_type,
+ real_days
+ #{leaveId},
+ #{days},
+ #{flat},
+ #{leaveType.id},
+ #{state},
+ #{realEndTime},
+ #{isUse},
+ #{realEndType},
+ #{realDays}
+ UPDATE leave_detail SET
+ leave_id = #{leaveId},
+ days = #{days},
+ del_flag=#{delFlag},
+ leave_type_id = #{leaveType.id},
+ end_type = #{endType}
+ <select id="findUniqueByProperty" resultType="LeaveDetail" statementType="STATEMENT">
+ select * FROM leave_detail where ${propertyName} = '${value}'
+ <select id="findListHis" resultType="LeaveDetail" parameterType="java.lang.String">
+ b.name as "name",
+ a.sums as "sumDays",
+ a.counts as "counts",
+ a.sums as "days"
+ a.staff_id=#{staffId}
+ <select id="findListResetHis" resultType="LeaveDetail" parameterType="java.lang.String">
+ sum(a.days) as "sumDays",
+ count(*) as "counts",
+ sum(a.days) as "days"
+ a.del_flag = '0' and (a.reset_state='0' or a.reset_state is null)
+ AND a.leave_id in (select id from leave_apply y where y.staff_id=#{staffId} and y.status='8' and y.del_flag='0')
+ group by a.leave_type_id
+ update leave_detail a
+ set a.reset_state='1',
+ reset_time=now()
+ <select id="findHisList" resultType="LeaveDetail" parameterType="java.lang.String">
+ and a.is_use='0'
+ <select id="findListValidateTime" resultType="LeaveDetail" parameterType="java.lang.String">
+ AND a.leave_id in (select id from leave_apply y where y.staff_id=#{staffId} and y.del_flag='0'AND y.status not in('1','3','4') )
+ <update id="updateState" >
+ set a.state='0'
+ AND a.leave_id =#{leaveId}
+ <select id="findMaxEndTime" resultType="java.lang.String" parameterType="java.lang.String">
+ leave_detail a
+ a.del_flag = '0' and a.state = '0'
+ <update id="updateRealEndDate" >
+ set a.real_end_time=#{time},
+ a.real_end_type=#{type},
+ a.real_days=#{realDays}
+ a.id =#{id}
+ <update id="updateIsUse" >
+ set a.is_use='1'
+ <select id="sumday" resultType="java.lang.String" parameterType="java.lang.String">
+ ifnull(sum(d.real_days),0) sumday
+ leave_detail d
+ d.is_use = '0'
+ AND d.del_flag = '0'
+ AND d.state = '0'
+ AND d.leave_type_id =#{typeId}
+ AND d.leave_id !=#{leaveId}
+ <select id="onlyOne" resultType="LeaveDetail" parameterType="java.lang.String">
+ a.is_use = '0'
+ AND a.del_flag = '0'
+ AND a.state = '0'
+ and a.leave_id in (select id from leave_apply y where y.staff_id=#{staffId} and y.status='8' and y.del_flag='0')
+ and a.leave_type_id=#{typeId}
+ <select id="maxdays" resultType="java.lang.String" parameterType="java.lang.String">
+ AND d.leave_id in (select id from leave_apply y where y.staff_id=#{staffId} and y.status='8' and y.del_flag='0')
@@ -0,0 +1,254 @@
+<mapper namespace="com.jeeplus.modules.leavetype.dao.LeaveTypeDao">
+ <sql id="leaveTypeColumns">
+ a.model AS "model",
+ a.method AS "method",
+ a.zero AS "zero",
+ a.max_days AS "maxDays",
+ a.is_attendance AS "isAttendance",
+ a.is_subsidized AS "isSubsidized",
+ a.is_next AS "isNext",
+ a.set_days AS "setDays",
+ a.is_sys AS "isSys",
+ a.parent_id AS "parentId",
+ a.is_end AS "isEnd",
+ b.name as "parentName",
+ a.set_key as "key"
+ <sql id="leaveTypeJoins">
+ left join leave_type b on b.id=a.parent_id
+ <select id="get" resultType="LeaveType" >
+ <include refid="leaveTypeColumns"/>
+ FROM leave_type a
+ <include refid="leaveTypeJoins"/>
+ <select id="findList" resultType="LeaveType" >
+ <if test="no != null and no != ''">
+ AND a.no LIKE
+ <if test="dbName == 'oracle'">'%'||#{no}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{no}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{no},'%')</if>
+ <if test="state != null and state != ''">
+ AND a.state = #{state}
+ <if test="model != null and model != ''">
+ AND a.model = #{model}
+ <if test="unit != null and unit != ''">
+ AND a.unit = #{unit}
+ <if test="method != null and method != ''">
+ AND a.method = #{method}
+ <if test="zero != null and zero != ''">
+ AND a.zero = #{zero}
+ <if test="maxDays != null and maxDays != ''">
+ AND a.max_days = #{maxDays}
+ <if test="isAttendance != null and isAttendance != ''">
+ AND a.is_attendance = #{isAttendance}
+ <if test="isSubsidized != null and isSubsidized != ''">
+ AND a.is_subsidized = #{isSubsidized}
+ <if test="isNext != null and isNext != ''">
+ AND a.is_next = #{isNext}
+ <if test="setDays != null and setDays != ''">
+ AND a.set_days = #{setDays}
+ <if test="isSys != null and isSys != ''">
+ AND a.is_sys = #{isSys}
+ <if test="isEnd != null and isEnd != ''">
+ AND a.is_end = #{isEnd}
+ ORDER BY a.parent_ids ASC,a.no asc
+ <select id="findAllList" resultType="LeaveType" >
+ INSERT INTO leave_type(
+ model,
+ method,
+ zero,
+ max_days,
+ is_attendance,
+ is_subsidized,
+ is_next,
+ set_days,
+ is_sys,
+ is_end,
+ set_key
+ #{model},
+ #{method},
+ #{zero},
+ #{maxDays},
+ #{isAttendance},
+ #{isSubsidized},
+ #{isNext},
+ #{setDays},
+ #{isSys},
+ #{parentId},
+ #{isEnd},
+ #{key}
+ UPDATE leave_type SET
+ model = #{model},
+ method = #{method},
+ zero = #{zero},
+ max_days = #{maxDays},
+ is_attendance = #{isAttendance},
+ is_subsidized = #{isSubsidized},
+ is_next = #{isNext},
+ set_days = #{setDays},
+ is_sys = #{isSys},
+ parent_id = #{parentId},
+ is_end = #{isEnd}
+ DELETE FROM leave_type
+ <select id="findUniqueByProperty" resultType="LeaveType" statementType="STATEMENT">
+ select * FROM leave_type where ${propertyName} = '${value}'
+ <!-- 修改末级标志 -->
+ <update id="upateEndFlag">
+ <update id="updateDelFlag">
+ state = #{flat}
+ <select id="getNameByIdAndKey" resultType="LeaveType" >
+ WHERE a.set_key = #{key}
+ and a.company_id=#{companyId}
+<mapper namespace="com.jeeplus.modules.modules.dao.ModuleChooseDao">
+ <sql id="moduleChooseColumns">
+ a.module_id AS "moduleId",
+ user.name AS "user.name"
+ <sql id="moduleChooseJoins">
+ LEFT JOIN sys_user user ON user.id = a.user_id
+ <select id="get" resultType="ModuleChoose" >
+ <include refid="moduleChooseColumns"/>
+ FROM work_module_choose a
+ <include refid="moduleChooseJoins"/>
+ <select id="findList" resultType="ModuleChoose" >
+ <select id="findAllList" resultType="ModuleChoose" >
+ INSERT INTO work_module_choose(
+ module_id,
+ #{moduleId},
+ UPDATE work_module_choose SET
+ module_id = #{moduleId},
+ DELETE FROM work_module_choose
+ <select id="findUniqueByProperty" resultType="ModuleChoose" statementType="STATEMENT">
+ select * FROM work_module_choose where ${propertyName} = '${value}'
@@ -0,0 +1,102 @@
+<mapper namespace="com.jeeplus.modules.monitor.dao.MonitorDao">
+ <sql id="monitorColumns">
+ a.cpu AS "cpu",
+ a.jvm AS "jvm",
+ a.ram AS "ram",
+ a.toemail AS "toEmail"
+ <sql id="monitorJoins">
+ <select id="get" resultType="Monitor">
+ <include refid="monitorColumns"/>
+ FROM monitor a
+ <include refid="monitorJoins"/>
+ <select id="findList" resultType="Monitor">
+ <select id="findAllList" resultType="Monitor">
+ INSERT INTO monitor(
+ cpu,
+ jvm,
+ ram,
+ toemail
+ #{cpu},
+ #{jvm},
+ #{ram},
+ #{toEmail}
+ UPDATE monitor SET
+ cpu = #{cpu},
+ jvm = #{jvm},
+ ram = #{ram},
+ toemail = #{toEmail}
+ DELETE FROM monitor
+ <select id="findUniqueByProperty" resultType="Monitor" statementType="STATEMENT">
+ select * FROM monitor where ${propertyName} = '${value}'
@@ -0,0 +1,313 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.LeaveDao">
+ <sql id="leaveColumns">
+ a.*,
+ u.id AS "createBy.id",
+ o.id AS "createBy.office.id",
+ o.name AS "createBy.office.name"
+ <sql id="leaveJoins">
+ JOIN sys_user u ON u.id = a.create_by
+ JOIN sys_office o ON o.id = u.office_id
+ <select id="get" resultType="Leave">
+ <include refid="leaveColumns"/>
+ FROM oa_leave a
+ <include refid="leaveJoins"/>
+ <select id="getCreateDateList" resultType="string">
+ SELECT create_date FROM oa_leave
+ WHERE #{date} LIKE LEFT (create_date,7)
+ ORDER BY create_date asc
+ <select id="getByProcessInstanceId" resultType="Leave">
+ <select id="findList" resultType="Leave">
+ WHERE a.del_flag = #{DEL_FLAG_NORMAL}
+ <if test="createDateStart != null and createDateStart != ''">
+ AND a.create_date >= #{createDateStart}
+ <if test="createDateEnd != null and createDateEnd != ''">
+ AND a.create_date <= #{createDateEnd}
+ <if test="leaveType != null and leaveType != ''">
+ AND a.leave_type = #{leaveType}
+ <if test="updateBy != null and updateBy.id != null and updateBy.id != ''">
+ AND a.update_by = #{updateBy.id}
+ <if test="ids != null and ids != ''">
+ AND a.id IN (${ids})
+ <select id="findAllList" resultType="Leave">
+ INSERT INTO oa_leave(
+ leave_days,
+ leave_time,
+ leave_type,
+ reality_start_time,
+ reality_end_time,
+ leave_Details,
+ status
+ #{leaveDays},
+ #{leaveTime},
+ #{leaveType},
+ #{realityStartTime},
+ #{realityEndTime},
+ #{leaveDetails},
+ #{status}
+ UPDATE oa_leave SET
+ leave_type = #{leaveType},
+ leave_days = #{leaveDays},
+ leave_time = #{leaveTime},
+ leave_Details=#{leaveDetails},
+ company_id=#{companyId},
+ files=#{files},
+ status=#{status}
+ <update id="updateRealityTime">
+ reality_start_time = #{realityStartTime},
+ reality_end_time = #{realityEndTime},
+ DELETE FROM oa_leave
+ <select id="findByCompany2" resultType="Leave" parameterType="java.util.Map">
+ a.del_flag = #{leave.DEL_FLAG_NORMAL}
+ <if test="date != null and date != ''">
+ AND #{date} LIKE LEFT (a.create_date , 7)
+ <if test="leave.companyId != null and leave.companyId != ''">
+ AND a.company_id = #{leave.companyId}
+ <when test="leave.page !=null and leave.page.orderBy != null and leave.page.orderBy != ''">
+ ORDER BY ${leave.page.orderBy}
+ <select id="findByCompany" resultType="Leave" >
+ AND Date(a.create_date) = #{createDate}
+ <select id="getCreateDateList1" resultType="string">
+ SELECT a.create_date FROM oa_leave a
+ WHERE DATE_FORMAT(a.create_date, '%Y-%m') = #{time}
+ and a.create_by=#{userId}
+ <select id="findByCompany1" resultType="Leave">
+ and DATE_FORMAT(a.create_date, '%Y-%m') = #{time}
+ <select id="getCreateDateListAll" resultType="string">
+ SELECT a.create_date
+ LEFT JOIN sys_user u on u.id = a.create_by
+ ${sqlStr}
+ <select id="findByCompanyAll" resultType="Leave">
+ a.*
+ <select id="findByCompanySelf" resultType="Leave">
+ <if test="time != null and time != ''">
+ and DATE_FORMAT(a.create_date, '%Y-%m-%d') = #{time}
+ <if test="startDate != null and endDate != null and startDate != '' and endDate != ''">
+ and DATE_FORMAT(a.create_date, '%Y-%m-%d') BETWEEN #{startDate} AND #{endDate}
+ <select id="findByManage" resultType="Leave">
@@ -0,0 +1,415 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaAttendanceDao">
+ <sql id="oaAttendanceColumns">
+ a.company_id AS "company.id",
+ a.rule_id AS "rule.id",
+ a.sign_date AS "signDate",
+ a.office_id AS "office.id",
+ company.name AS "company.name",
+ office.name AS "office.name",
+ rule.name AS "rule.name",
+ user.name AS "user.name",
+ rule.workdays AS "rule.workdays",
+ rule.start_time AS "rule.startTime",
+ rule.end_time AS "rule.endTime"
+ <sql id="oaAttendanceJoins">
+ LEFT JOIN sys_office company ON company.id = a.company_id
+ LEFT JOIN sys_office office ON office.id = a.office_id
+ LEFT JOIN oa_attendance_rule rule ON rule.id = a.rule_id
+ <select id="getOaAttendanceByCompanyIdAndUserIdAndSignDate" resultType="OaAttendance">
+ SELECT <include refid="oaAttendanceColumns"/>
+ FROM oa_attendance a
+ <include refid="oaAttendanceJoins"/>
+ AND a.user_id = #{userId}
+ AND a.sign_date = #{signDate}
+ <select id="getOaAttendanceList" resultType="OaAttendance">
+ <select id="getCompanyList" resultType="string">
+ SELECT DISTINCT company_id
+ SELECT create_date FROM oa_attendance
+ <select id="get" resultType="OaAttendance" >
+ <include refid="oaAttendanceColumns"/>
+ <select id="findList" resultType="OaAttendance" >
+ <if test="company != null and company.id != null and company.id != ''">
+ AND a.company_id = #{company.id}
+ <if test="user !=null and user.name != null and user.name != ''">
+ AND user.name LIKE
+ <if test="dbName == 'oracle'">'%'||#{user.name}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{user.name}, '%')</if>
+ <if test="fromThisDay != null and fromThisDay != ''">
+ AND a.sign_date <![CDATA[>=]]> #{fromThisDay}
+ <if test="toThisDay !=null and toThisDay !=''">
+ AND a.sign_date <![CDATA[<=]]> #{toThisDay}
+ <if test="signDate !=null and signDate !=''">
+ ORDER BY a.sign_date DESC ,a.create_date ASC
+ <select id="findListByUser" resultType="OaAttendance" >
+ <if test="company != null and company.id != ''">
+ <if test="user != null and user.name != null and user.name != ''">
+ <if test="signDate != null and signDate != ''">
+ <select id="findByCompany2" resultType="OaAttendance" parameterType="java.util.Map">
+ a.del_flag = #{attendance.DEL_FLAG_NORMAL}
+ AND #{date} LIKE LEFT (a.create_date,7)
+ <if test="attendance.company != null and attendance.company.id != ''">
+ AND a.company_id = #{attendance.company.id}
+ <when test="attendance.page !=null and attendance.page.orderBy != null and attendance.page.orderBy != ''">
+ ORDER BY ${attendance.page.orderBy}
+ <select id="findByCompany" resultType="OaAttendance" >
+ <select id="findAllList" resultType="OaAttendance" >
+ INSERT INTO oa_attendance(
+ rule_id,
+ sign_date,
+ #{company.id},
+ #{office.id},
+ #{rule.id},
+ #{signDate},
+ UPDATE oa_attendance SET
+ company_id = #{company.id},
+ office_id = #{office.id},
+ rule_id = #{rule.id},
+ sign_date = #{signDate},
+ DELETE FROM oa_attendance
+ <select id="findUniqueByProperty" resultType="OaAttendance" statementType="STATEMENT">
+ select * FROM oa_attendance where ${propertyName} = '${value}'
+ <select id="findListByrule" resultType="OaAttendanceRule">
+ FROM oa_attendance_rule a
+ AND a.id == #{id}
+ <select id="findListByComapny" resultType="Office">
+ SELECT a.create_date FROM oa_attendance a
+ <select id="findByCompany1" resultType="OaAttendance">
+ <select id="findByCompanyAll" resultType="OaAttendance">
+ <select id="findByCompanySelf" resultType="OaAttendance">
+ <select id="findByManage" resultType="OaAttendance">
+ s.name AS "company.name",
+ o.name AS "office.name",
@@ -0,0 +1,162 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaAttendancePlaceDao">
+ <sql id="oaAttendancePlaceColumns">
+ a.place_name AS "placeName",
+ a.place_scope AS "placeScope",
+ a.longitude AS "longitude",
+ a.latitude AS "latitude",
+ a.oa_attendance_rule_id AS "oaAttendanceRule.id",
+ a.del_flag AS "delFlag"
+ <sql id="oaAttendancePlaceJoins">
+ <select id="get" resultType="OaAttendancePlace" >
+ <include refid="oaAttendancePlaceColumns"/>
+ FROM oa_attendance_place a
+ <include refid="oaAttendancePlaceJoins"/>
+ <select id="findList" resultType="OaAttendancePlace" >
+ <if test="oaAttendanceRule != null and oaAttendanceRule != ''">
+ AND a.oa_attendance_rule_id = #{oaAttendanceRule.id}
+ <select id="findAllList" resultType="OaAttendancePlace" >
+ INSERT INTO oa_attendance_place(
+ place_name,
+ place_scope,
+ longitude,
+ latitude,
+ oa_attendance_rule_id,
+ #{placeName},
+ #{placeScope},
+ #{longitude},
+ #{latitude},
+ #{oaAttendanceRule.id},
+ UPDATE oa_attendance_place SET
+ place_name = #{placeName},
+ place_scope = #{placeScope},
+ longitude = #{longitude},
+ latitude = #{latitude},
+ oa_attendance_rule_id = #{oaAttendanceRule.id},
+ DELETE FROM oa_attendance_place
+ WHERE oa_attendance_rule_id = #{oaAttendanceRule.id}
+ <select id="findUniqueByProperty" resultType="OaAttendancePlace" statementType="STATEMENT">
+ select * FROM oa_attendance_place where ${propertyName} = '${value}'
+ <select id="getPlaceNameById" resultType="string">
+ SELECT place_name AS "placeName"
+ where a.id = #{placeId}
@@ -0,0 +1,169 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaAttendanceRuleDao">
+ <sql id="oaAttendanceRuleColumns">
+ a.workdays AS "workdays",
+ a.wifi AS "wifi",
+ a.wifi_name AS "wifiName",
+ a.place_id AS "placeId",
+ company.name AS "company.name"
+ <sql id="oaAttendanceRuleJoins">
+ <select id="get" resultType="OaAttendanceRule" >
+ <include refid="oaAttendanceRuleColumns"/>
+ <include refid="oaAttendanceRuleJoins"/>
+ GROUP BY a.id
+ <select id="findList" resultType="OaAttendanceRule" >
+ AND a.name = #{name}
+ <select id="findAllList" resultType="OaAttendanceRule" >
+ INSERT INTO oa_attendance_rule(
+ workdays,
+ place_id,
+ wifi,
+ wifi_name,
+ name
+ #{workdays},
+ #{placeId},
+ #{wifi},
+ #{wifiName},
+ #{name}
+ UPDATE oa_attendance_rule SET
+ workdays = #{workdays},
+ place_id = #{placeId},
+ wifi = #{wifi},
+ wifi_name = #{wifiName},
+ name = #{name}
+ DELETE FROM oa_attendance_rule
+ <select id="findUniqueByProperty" resultType="OaAttendanceRule" statementType="STATEMENT">
+ select * FROM oa_attendance_rule where ${propertyName} = '${value}'
+ <select id="findListByComapny" resultType="OaAttendanceRule">
+ <if test="company.id != null and company.id != ''">
+ <!-- 查询规则 -->
+ <select id="queryRuleByCompanyIdAndRuleId" parameterType="java.util.HashMap" resultType="OaAttendanceRule">
+ select * from oa_attendance_rule where id = #{ruleId} and company_id = #{companyId}
@@ -0,0 +1,316 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaNotifyDao">
+ <sql id="oaNotifyColumns">
+ a.ID AS "id",
+ a.TYPE AS "type",
+ a.TITLE AS "title",
+ a.CONTENT AS "content",
+ CONCAT(a.CONTENTS,<![CDATA['<style>img{max-width:100%!important;}</style>']]>) AS "contents",
+ a.FILES AS "files",
+ a.STATUS AS "status",
+ a.CREATE_BY AS "createBy.id",
+ a.CREATE_DATE AS "createDate",
+ a.UPDATE_BY AS "updateBy.id",
+ a.UPDATE_DATE AS "updateDate",
+ a.REMARKS AS "remarks",
+ a.DEL_FLAG AS "delFlag",
+ a.number AS "number",
+ b.read_num ,
+ b.un_read_num,
+ o.top_company AS "office.name"
+ <sql id="oaNotifyJoins">
+ <!-- 查询已读和未读条数 -->
+ LEFT JOIN (
+ SELECT r.oa_notify_id,
+ sum(case when r.read_flag = '1' then 1 else 0 end) read_num,
+ sum(case when r.read_flag != '1' then 1 else 0 end) un_read_num
+ FROM oa_notify_record r WHERE r.user_id is not null and r.read_flag != '' GROUP BY r.oa_notify_id
+ ) b ON b.oa_notify_id = a.id
+ <select id="get" resultType="OaNotify">
+ <include refid="oaNotifyColumns"/>
+ FROM oa_notify a
+ <include refid="oaNotifyJoins"/>
+ <select id="findList" resultType="OaNotify">
+ <if test="isSelf">,
+ r.read_flag
+ <!-- 我的通告 -->
+ <if test="isSelf">
+ JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id,jdbcType=VARCHAR}
+ <!-- 未读0,已读1 -->
+ <if test="readFlag != null and readFlag != ''">
+ AND r.read_flag = #{readFlag}
+ AND a.TITLE LIKE
+ <if test="dbName == 'mysql'">CONCAT('%', #{title}, '%')</if>
+ AND a.TYPE = #{type}
+ <if test="number != null and number != ''">
+ AND a.number = #{number}
+ AND a.STATUS = #{status}
+ <!-- 我的通告:只查询"发布"状态的,不要"草稿"状态的 -->
+ AND a.STATUS = '5'
+ AND a.title like
+ <if test="dbName == 'oracle'">'%'||#{ctitle}||'%'</if>
+ <if test="content != null and content != ''">
+ AND a.content like
+ <if test="dbName == 'oracle'">'%'||#{content}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{content}, '%')</if>
+ <if test="company != null and company.id !=null and company.id != ''">
+ <if test="office != null and office.id !=null and office.id != ''">
+ AND a.office_id = #{office.id}
+ <if test="createBy != null and createBy.id !=null and createBy.id != ''">
+ AND a.CREATE_BY = #{createBy.id}
+ <if test="createBy != null and createBy.name !=null and createBy.name != ''">
+ AND u.name like
+ <if test="dbName == 'mysql'">CONCAT('%', #{createBy.name}, '%')</if>
+ <if test="createStartDate != null and createStartDate != ''">
+ AND a.create_date >= #{createStartDate}
+ <if test="createEndDate != null and createEndDate != ''">
+ AND a.create_date <= #{createEndDate}
+ <if test="nowDate != null and nowDate != ''">
+ AND a.start_date <= #{nowDate} AND a.end_date >= #{nowDate}
+ <select id="findListByPc" resultType="OaNotify">
+ o.top_company AS "office.name",
+ a.process_instance_id AS "processInstanceId"
+ <select id="findAllList" resultType="OaNotify">
+ <select id="findCount" resultType="Long">
+ count(1)
+ JOIN oa_notify_record r ON r.oa_notify_id = a.id AND r.user_id = #{currentUser.id}
+ AND a.STATUS = '1'
+ INSERT INTO oa_notify(
+ ID,
+ TYPE,
+ COMPANY_ID,
+ OFFICE_ID,
+ TITLE,
+ CONTENT,
+ CONTENTS,
+ FILES,
+ STATUS,
+ CREATE_BY,
+ CREATE_DATE,
+ UPDATE_BY,
+ UPDATE_DATE,
+ REMARKS,
+ number,
+ DEL_FLAG
+ #{contents},
+ #{number},
+ UPDATE oa_notify SET
+ TYPE = #{type},
+ TITLE = #{title},
+ COMPANY_ID = #{company.id},
+ OFFICE_ID = #{office.id},
+ CONTENT = #{content},
+ CONTENTS = #{contents},
+ FILES = #{files},
+ STATUS = #{status},
+ UPDATE_BY = #{updateBy.id},
+ UPDATE_DATE = #{updateDate},
+ number = #{number},
+ REMARKS = #{remarks}
+ <update id="saveRemarks">
+ DELETE FROM oa_notify
+ <select id="getCreateId" resultType="string">
+ SELECT create_by FROM oa_notify WHERE id = #{id}
+ <update id="updateStatusById">
@@ -0,0 +1,38 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaNotifyDetailDao">
+ <insert id="batchInsert" parameterType="java.util.Map">
+ INSERT INTO oa_notify_detail
+ (notify_id ,handler_id, flag)
+ VALUES
+ <foreach collection="handlerList" item="linkman" separator=",">
+ ( #{notifyId}, #{linkman.id}, #{flag})
+ </foreach>
+ <delete id="deleteHandlers">
+ DELETE FROM oa_notify_detail
+ WHERE notify_id = #{notifyId}
+ AND flag = #{flag}
+ </delete>
+ <select id="queryUserList" resultType="User">
+ SELECT t1.id,t1.name,t1.photo,GROUP_CONCAT(t3.name ORDER BY t3.parent_ids SEPARATOR '-') AS 'officeName'
+ FROM oa_notify_detail t
+ LEFT JOIN sys_user t1 ON t.handler_id = t1.id
+ LEFT JOIN sys_office t2 ON t1.office_id = t2.id
+ LEFT JOIN sys_office t3 ON (FIND_IN_SET(t3.id,t2.parent_ids) OR t3.id = t2.id)
+ WHERE t.notify_id = #{id} AND flag = 0
+ GROUP BY t1.id;
+ <select id="queryOfficeList" resultType="Office">
+ SELECT t1.id,GROUP_CONCAT(t2.name ORDER BY t2.parent_ids SEPARATOR '-') AS 'name'
+ LEFT JOIN sys_office t1 ON t.handler_id = t1.id
+ LEFT JOIN sys_office t2 ON (FIND_IN_SET(t2.id,t1.parent_ids) OR t2.id = t1.id)
+ WHERE t.notify_id = #{id} AND flag = 1
@@ -0,0 +1,177 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.OaNotifyRecordDao">
+ <sql id="oaNotifyRecordColumns">
+ a.OA_NOTIFY_ID AS "oaNotify.id",
+ a.USER_ID AS "user.id",
+ a.READ_FLAG AS "readFlag",
+ a.READ_DATE AS "readDate",
+ o.name AS "user.office.name",
+ o.name AS "user.officeName",
+ so.name AS "officeName"
+ <sql id="oaNotifyRecordColumn">
+ a.READ_DATE AS "readDate"
+ <sql id="oaNotifyRecordJoins">
+ LEFT JOIN sys_office o ON o.id = u.office_id
+ LEFT JOIN sys_office so ON so.id = a.office_id
+ <select id="get" resultType="OaNotifyRecord">
+ <include refid="oaNotifyRecordColumns"/>
+ FROM oa_notify_record a
+ <include refid="oaNotifyRecordJoins"/>
+ <select id="findList" resultType="OaNotifyRecord">
+ <if test="oaNotify != null and oaNotify.id != null and oaNotify.id != ''">
+ AND oa_notify_id = #{oaNotify.id}
+ AND a.read_flag=#{readFlag}
+ AND a.office_id is NULL
+ ORDER BY a.read_flag ASC
+ <select id="findOffices" resultType="OaNotifyRecord">
+ WHERE a.user_id is NULL
+ ORDER BY a.id ASC
+ <select id="findUsers" resultType="OaNotifyRecord">
+ WHERE a.office_id is NULL
+ <!--PC端使用:包含已读和未读 -->
+ <select id="findList2" resultType="OaNotifyRecord">
+ AND a.oa_notify_id = #{oaNotify.id}
+ <select id="findUserList" resultType="OaNotifyRecord">
+ <include refid="oaNotifyRecordColumn"/>
+ WHERE a.read_flag=#{readFlag}
+ <select id="findAllList" resultType="OaNotifyRecord">
+ INSERT INTO oa_notify_record(
+ OA_NOTIFY_ID,
+ USER_ID,
+ READ_FLAG,
+ READ_DATE
+ #{oaNotify.id},
+ #{readFlag},
+ #{readDate}
+ <insert id="insertAll" parameterType="List">
+ <foreach collection="list" item="e" separator=" UNION ALL ">
+ #{e.id},
+ #{e.oaNotify.id},
+ #{e.user.id},
+ #{e.readFlag},
+ #{e.readDate}
+ FROM dual
+ <insert id="insertOfficeAll" parameterType="List">
+ OFFICE_ID
+ #{e.officeId}
+ UPDATE oa_notify_record SET
+ READ_FLAG = #{readFlag},
+ READ_DATE = #{readDate}
+ WHERE OA_NOTIFY_ID = #{oaNotify.id}
+ AND USER_ID = #{user.id}
+ AND READ_FLAG != '1'
+ <delete id="delete">
+ DELETE FROM oa_notify_record
+ <update id="deleteByOaNotifyId">
+ UPDATE oa_notify_record SET READ_FLAG = ''
+ WHERE oa_notify_id = #{oaNotifyId}
@@ -0,0 +1,192 @@
+<mapper namespace="com.jeeplus.modules.oa.dao.TestAuditDao">
+ <sql id="testAuditColumns">
+ a.post,
+ a.age,
+ a.edu,
+ a.content,
+ a.olda,
+ a.oldb,
+ a.oldc,
+ a.newa,
+ a.newb,
+ a.newc,
+ a.add_num,
+ a.exe_date,
+ a.hr_text,
+ a.lead_text,
+ a.main_lead_text,
+ a.proc_ins_id,
+ u.id AS "user.id",
+ o.id AS "office.id",
+ a.create_date,
+ a.update_date,
+ a.remarks,
+ a.del_flag
+ <sql id="testAuditJoins">
+ JOIN sys_user u ON u.id=a.user_id
+ JOIN sys_office o ON o.id=a.office_id
+ <select id="get" resultType="TestAudit">
+ <include refid="testAuditColumns"/>
+ FROM oa_test_audit a
+ <include refid="testAuditJoins"/>
+ <select id="getByProcInsId" resultType="TestAudit">
+ WHERE a.proc_ins_id = #{procInsId}
+ <select id="findList" resultType="TestAudit">
+ AND u.id LIKE
+ <if test="dbName == 'oracle'">'%'||#{user.id}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{user.id}, '%')</if>
+ <select id="findAllList" resultType="TestAudit">
+ INSERT INTO oa_test_audit(
+ post,
+ age,
+ edu,
+ olda,
+ oldb,
+ oldc,
+ newa,
+ newb,
+ newc,
+ add_num,
+ exe_date,
+ #{post},
+ #{age},
+ #{edu},
+ #{olda},
+ #{oldb},
+ #{oldc},
+ #{newa},
+ #{newb},
+ #{newc},
+ #{addNum},
+ #{exeDate},
+ UPDATE oa_test_audit SET
+ post = #{post},
+ age = #{age},
+ edu = #{edu},
+ olda = #{olda},
+ oldb = #{oldb},
+ oldc = #{oldc},
+ newa = #{newa},
+ newb = #{newb},
+ newc = #{newc},
+ add_num = #{addNum},
+ exe_date = #{exeDate},
+ <update id="updateInsId">
+ proc_ins_id = #{procInsId},
+ <update id="updateHrText">
+ hr_text = #{hrText},
+ <update id="updateLeadText">
+ lead_text = #{leadText},
+ <update id="updateMainLeadText">
+ main_lead_text = #{mainLeadText},
+ DELETE FROM oa_test_audit
@@ -0,0 +1,321 @@
+<mapper namespace="com.jeeplus.modules.oa_evection.dao.oa_evection.OaEvectionDao">
+ <sql id="oaEvectionColumns">
+ a.reality_start_time AS "realityStartTime",
+ a.reality_end_time AS "realityEndTime",
+ a.address AS "address",
+ a.date_count AS "dateCount",
+ <sql id="oaEvectionJoins">
+ SELECT create_date FROM oa_evection
+ <select id="get" resultType="OaEvection" >
+ <include refid="oaEvectionColumns"/>
+ FROM oa_evection a
+ <include refid="oaEvectionJoins"/>
+ <select id="getByProcessInstanceId" resultType="OaEvection">
+ <select id="findList" resultType="OaEvection" >
+ <select id="findByCompany2" resultType="OaEvection" parameterType="java.util.Map">
+ a.del_flag = #{evection.DEL_FLAG_NORMAL}
+ <if test="evection.companyId != null and evection.companyId != ''">
+ AND a.company_id = #{evection.companyId}
+ <when test="evection.page !=null and evection.page.orderBy != null and evection.page.orderBy != ''">
+ ORDER BY ${evection.page.orderBy}
+ <select id="findAllList" resultType="OaEvection" >
+ INSERT INTO oa_evection(
+ address,
+ date_count,
+ files
+ #{address},
+ #{dateCount},
+ #{files}
+ UPDATE oa_evection SET
+ address = #{address},
+ date_count = #{dateCount},
+ DELETE FROM oa_evection
+ <select id="findUniqueByProperty" resultType="OaEvection" statementType="STATEMENT">
+ select * FROM oa_evection where ${propertyName} = '${value}'
+ SELECT a.create_date FROM oa_evection a
+ <select id="findByCompany1" resultType="OaEvection">
+ <select id="findByCompanyAll" resultType="OaEvection">
+ <select id="findByCompanySelf" resultType="OaEvection">
+ <select id="findByManage" resultType="OaEvection">
+<mapper namespace="com.jeeplus.modules.oaall.dao.OaAllDao">
+ <sql id="oaAllColumns">
+ a.apply_content AS "applyContent",
+ files AS "files",
+ a.approve_detail AS "approveDetail",
+ (select name from sys_user where id = a.create_by) AS "createBy.name"
+ <sql id="oaAllJoins">
+ <select id="get" resultType="OaAll" >
+ <include refid="oaAllColumns"/>
+ FROM oa_all a
+ <include refid="oaAllJoins"/>
+ <select id="findList" resultType="OaAll" >
+ <select id="findAllList" resultType="OaAll" >
+ INSERT INTO oa_all(
+ apply_content,
+ approve_detail,
+ #{applyContent},
+ #{approveDetail},
+ UPDATE oa_all SET
+ apply_content = #{applyContent},
+ approve_detail = #{approveDetail},
+ files = #{files}
+ DELETE FROM oa_all
+ <select id="findUniqueByProperty" resultType="OaAll" statementType="STATEMENT">
+ select * FROM oa_all where ${propertyName} = '${value}'
+ <select id="getByProcessInstanceId" resultType="OaAll">
@@ -0,0 +1,183 @@
+<mapper namespace="com.jeeplus.modules.oabuy.dao.OaBuyDao">
+ <sql id="oaBuyColumns">
+ a.totalPrice AS "totalPrice",
+ a.buy_sort AS "buySort",
+ a.deliver_date AS "deliverDate",
+ a.pay_style AS "payStyle",
+ <sql id="oaBuyJoins">
+ <select id="get" resultType="OaBuy" >
+ <include refid="oaBuyColumns"/>
+ <include refid="oaBuyJoins"/>
+ <select id="findList" resultType="OaBuy" >
+ <select id="findAllList" resultType="OaBuy" >
+ INSERT INTO oa_buy(
+ buy_sort,
+ deliver_date,
+ pay_style,
+ totalPrice
+ #{buySort},
+ #{deliverDate},
+ #{payStyle},
+ #{totalPrice}
+ UPDATE oa_buy SET
+ buy_sort = #{buySort},
+ deliver_date = #{deliverDate},
+ pay_style = #{payStyle},
+ totalPrice = #{totalPrice}
+ DELETE FROM oa_buy
+ <select id="findUniqueByProperty" resultType="OaBuy" statementType="STATEMENT">
+ select * FROM oa_buy where ${propertyName} = '${value}'
+ <select id="getByProcessInstanceId" resultType="OaBuy">
@@ -0,0 +1,184 @@
+<mapper namespace="com.jeeplus.modules.oaperformance.dao.OaPerformanceDao">
+ <sql id="oaPerformanceColumns">
+ a.last_work AS "lastWork",
+ a.finish_work AS "finishWork",
+ a.finish_rate AS "finishRate",
+ a.last_performance AS "lastPerformance",
+ a.now_work AS "nowWork",
+ a.now_plan AS "nowPlan",
+ <sql id="oaPerformanceJoins">
+ <select id="get" resultType="OaPerformance" >
+ <include refid="oaPerformanceColumns"/>
+ FROM oa_performance a
+ <include refid="oaPerformanceJoins"/>
+ <select id="findList" resultType="OaPerformance" >
+ <select id="findAllList" resultType="OaPerformance" >
+ INSERT INTO oa_performance(
+ last_work,
+ finish_work,
+ finish_rate,
+ last_performance,
+ now_work,
+ now_plan
+ #{lastWork},
+ #{finishWork},
+ #{finishRate},
+ #{lastPerformance},
+ #{nowWork},
+ #{nowPlan}
+ UPDATE oa_performance SET
+ last_work = #{lastWork},
+ finish_work = #{finishWork},
+ finish_rate = #{finishRate},
+ last_performance = #{lastPerformance},
+ now_work = #{nowWork},
+ now_plan = #{nowPlan}
+ DELETE FROM oa_performance
+ <select id="findUniqueByProperty" resultType="OaPerformance" statementType="STATEMENT">
+ select * FROM oa_performance where ${propertyName} = '${value}'
+ <select id="getByProcessInstanceId" resultType="OaPerformance">
@@ -0,0 +1,221 @@
+<mapper namespace="com.jeeplus.modules.officehonor.dao.OfficehonorDao">
+ <sql id="officehonorColumns">
+ a.honor_type AS "honorType",
+ a.issued_date AS "issuedDate",
+ a.issued_agency AS "issuedAgency",
+ a.user_name AS "userName",
+ a.prove_file AS "proveFile",
+ a.file_place AS "filePlace",
+ a.image AS "image",
+ a.upload_date AS "uploadDate",
+ a.company_name AS "companyName",
+ a.num AS "num",
+ wa.attachment_name AS "uName",
+ wa.url AS "url",
+ a.sysoffice_id AS "office.id"
+ <sql id="officehonorJoins">
+ LEFT JOIN sys_office office ON office.id = a.sysoffice_id
+ LEFT join work_attachment wa on wa.attachment_id = a.id
+ <select id="get" resultType="Officehonor" >
+ <include refid="officehonorColumns"/>
+ FROM office_honor a
+ <include refid="officehonorJoins"/>
+ <select id="findList" resultType="Officehonor" >
+ <if test="honorType != null and honorType != ''">
+ AND a.honor_type = #{honorType}
+ <if test="(companyId == null or companyId == '') and office != null and office.id != null and office.id != ''">
+ AND a.sysoffice_id = #{office.id}
+ <if test="companyName != null and companyName != ''">
+ AND a.company_name LIKE
+ <if test="dbName == 'oracle'">'%'||#{companyName}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{companyName}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{companyName},'%')</if>
+ AND a.content = #{content}
+ <if test="issuedAgency != null and issuedAgency != ''">
+ AND a.issued_agency = #{issuedAgency}
+ <select id="findAllList" resultType="Officehonor" >
+ INSERT INTO office_honor(
+ honor_type,
+ issued_date,
+ issued_agency,
+ user_name,
+ prove_file,
+ file_place,
+ image,
+ upload_date,
+ company_name,
+ num,
+ sysoffice_id
+ #{honorType},
+ #{issuedDate},
+ #{issuedAgency},
+ #{userName},
+ #{proveFile},
+ #{filePlace},
+ #{image},
+ #{uploadDate},
+ #{num},
+ #{office.id}
+ UPDATE office_honor SET
+ honor_type = #{honorType},
+ issued_date = #{issuedDate},
+ issued_agency = #{issuedAgency},
+ user_name = #{userName},
+ prove_file = #{proveFile},
+ file_place = #{filePlace},
+ image = #{image},
+ upload_date= #{uploadDate},
+ company_name = #{companyName},
+ num = #{num},
+ sysoffice_id = #{office.id}
+ DELETE FROM office_honor
+ <select id="findUniqueByProperty" resultType="Officehonor" statementType="STATEMENT">
+ select * FROM office_honor where ${propertyName} = '${value}'
+ <select id="findListByoffice" resultType="Office">
+ FROM sys_office a
+ <if test="dbName == 'oracle'">#{name}||'%'</if>
+ <if test="dbName == 'mssql'">#{name}+'%'</if>
+ <if test="dbName == 'mysql'">concat(#{name},'%')</if>
@@ -0,0 +1,180 @@
+<mapper namespace="com.jeeplus.modules.officeintroduce.dao.OfficeintroduceDao">
+ <sql id="officeintroduceColumns">
+ a.introduce AS "introduce",
+ <sql id="officeintroduceJoins">
+ <select id="get" resultType="Officeintroduce" >
+ <include refid="officeintroduceColumns"/>
+ FROM office_introduce a
+ <include refid="officeintroduceJoins"/>
+ <select id="findList" resultType="Officeintroduce" >
+ <if test="introduce != null and introduce != ''">
+ AND a.introduce LIKE
+ <if test="dbName == 'oracle'">'%'||#{introduce}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{introduce}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{introduce},'%')</if>
+ <select id="findAllList" resultType="Officeintroduce" >
+ INSERT INTO office_introduce(
+ introduce,
+ #{introduce},
+ UPDATE office_introduce SET
+ introduce = #{introduce},
+ DELETE FROM office_introduce
+ <select id="findUniqueByProperty" resultType="Officeintroduce" statementType="STATEMENT">
+ select * FROM office_introduce where ${propertyName} = '${value}'
@@ -0,0 +1,168 @@
+<mapper namespace="com.jeeplus.modules.officelicense.dao.OfficeLicenseDao">
+ <sql id="officeLicenseColumns">
+ a.sysoffice_id AS "office.id",
+ a.is_chapter AS "isChapter"
+ <sql id="officeLicenseJoins">
+ <select id="get" resultType="OfficeLicense" >
+ <include refid="officeLicenseColumns"/>
+ FROM office_license a
+ <include refid="officeLicenseJoins"/>
+ <select id="findList" resultType="OfficeLicense" >
+ <if test="num != null and num != ''">
+ AND a.num = #{num}
+ <if test="isChapter != null and isChapter != ''">
+ AND a.is_chapter = #{isChapter}
+ <select id="findAllList" resultType="OfficeLicense" >
+ INSERT INTO office_license(
+ sysoffice_id,
+ is_chapter
+ #{isChapter}
+ UPDATE office_license SET
+ upload_date = #{uploadDate},
+ sysoffice_id = #{office.id},
+ is_chapter = #{isChapter}
+ DELETE FROM office_license
+ <select id="findUniqueByProperty" resultType="OfficeLicense" statementType="STATEMENT">
+ select * FROM office_license where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.officequalify.dao.OfficequalifyDao">
+ <sql id="officequalifyColumns">
+ a.qualify_grade AS "qualifyGrade",
+ a.specialty AS "specialty",
+ a.first_date AS "firstDate",
+ a.continue_date AS "continueDate",
+ a.introduction AS "introduction",
+ <sql id="officequalifyJoins">
+ <select id="get" resultType="Officequalify" >
+ <include refid="officequalifyColumns"/>
+ FROM office_qualify a
+ <include refid="officequalifyJoins"/>
+ <select id="findList" resultType="Officequalify" >
+ a.del_flag = #{DEL_FLAG_NORMAL} and wa.attachment_flag = '109'
+ <if test="qualifyGrade != null and qualifyGrade != ''">
+ AND a.qualify_grade = #{qualifyGrade}
+ <if test="specialty != null and specialty != ''">
+ AND a.specialty = #{specialty}
+ <select id="findAllList" resultType="Officequalify" >
+ INSERT INTO office_qualify(
+ qualify_grade,
+ specialty,
+ first_date,
+ continue_date,
+ introduction,
+ #{qualifyGrade},
+ #{specialty},
+ #{firstDate},
+ #{continueDate},
+ #{introduction},
+ UPDATE office_qualify SET
+ qualify_grade = #{qualifyGrade},
+ specialty = #{specialty},
+ first_date = #{firstDate},
+ continue_date = #{continueDate},
+ introduction = #{introduction},
+ DELETE FROM office_qualify
+ <select id="findUniqueByProperty" resultType="Officequalify" statementType="STATEMENT">
+ select * FROM office_qualify where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.project.dao.ArchivedirectoryDao">
+ <sql id="archivedirectoryColumns">
+ a.page_number AS "pageNumber",
+ a.bid_information_id AS "bidInformationId"
+ <sql id="archivedirectoryJoins">
+ <select id="get" resultType="Archivedirectory" >
+ <include refid="archivedirectoryColumns"/>
+ FROM archive_directory a
+ <include refid="archivedirectoryJoins"/>
+ <select id="getbidInformationById" resultType="Archivedirectory" >
+ SELECT (SELECT COUNT(id) FROM archive_directory AS tbl1 WHERE tbl1.id <= tbl2.id and bid_information_id = #{id}) as seq,
+ id,create_by,create_date,update_by,update_date,remarks,del_flag,name,number,page_number,bid_information_id
+ FROM archive_directory AS tbl2 where bid_information_id = #{id}
+ <select id="findList" resultType="Archivedirectory" >
+ <select id="findAllList" resultType="Archivedirectory" >
+ INSERT INTO archive_directory(
+ page_number,
+ bid_information_id
+ #{pageNumber},
+ #{bidInformationId}
+ UPDATE archive_directory SET
+ page_number = #{pageNumber},
+ bid_information_id = #{bidInformationId}
+ DELETE FROM archive_directory
+ <select id="findUniqueByProperty" resultType="Archivedirectory" statementType="STATEMENT">
+ select * FROM archive_directory where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.project.dao.BidInformationDao">
+ <sql id="bidInformationColumns">
+ a.bid_opening_time AS "bidOpeningTime",
+ a.winning_bid_number AS "winningBidNumber",
+ a.central_investment_online AS "centralInvestmentOnline",
+ a.tenderee_archives AS "tendereeArchives",
+ a.paper_archiving AS "paperArchiving",
+ a.time_of_winning_bid AS "timeOfWinningBid",
+ a.filing_time AS "filingTime",
+ a.first_acceptance_time AS "firstAcceptanceTime",
+ a.final_archiving_time AS "finalArchivingTime",
+ a.project_id AS "projectId"
+ <sql id="bidInformationJoins">
+ <sql id="bidInformationColumn">
+ Date(a.bid_opening_time) AS "bidOpeningTime",
+ Date(a.time_of_winning_bid) AS "timeOfWinningBid",
+ Date(a.filing_time) AS "filingTime",
+ Date(a.first_acceptance_time) AS "firstAcceptanceTime",
+ Date(a.final_archiving_time) AS "finalArchivingTime",
+ a.project_id AS "projectId",
+ b.create_date AS "project.createDate",
+ b.project_number AS "project.projectNumber",
+ b.project_name AS "project.projectName",
+ e.name AS "workClientInfo.name",
+ cc.leader AS "workprojectgroup.leader",
+ GROUP_CONCAT(f.name) AS "archivedirectory.name",
+ GROUP_CONCAT(f.number) AS "archivedirectory.number",
+ GROUP_CONCAT(f.remarks) AS "archivedirectory.remarks",
+ GROUP_CONCAT(f.page_number) AS "archivedirectory.pageNumber"
+ <sql id="bidInformationJoin">
+ left join project b on a.project_id=b.id
+ left join project_group_info cc on cc.project_id = b.id
+ left join work_contract_info dd on dd.id = b.contract_info
+ left join work_client_info e on dd.client_id = e.id
+ left join archive_directory f on f.bid_information_id = a.id
+ <select id="get" resultType="BidInformation" >
+ <include refid="bidInformationColumn"/>
+ FROM bid_information a
+ <include refid="bidInformationJoin"/>
+ <select id="findList" resultType="BidInformation" >
+ <if test="project != null and project.projectName != null and project.projectName != ''">
+ AND b.project_name = #{project.projectName}
+ <if test="project != null and project.projectNumber != null and project.projectNumber != ''">
+ AND b.project_number = #{project.projectNumber}
+ <if test="project != null and project.createDate != null and project.createDate != ''">
+ AND #{project.createDate} LIKE
+ concat('%' ,DATE(b.create_date),'%')
+ <if test="workClientInfo != null and workClientInfo.name != null and workClientInfo.name != ''">
+ AND e.name = #{workClientInfo.name}
+ <if test="workprojectgroup != null and workprojectgroup.leader != null and workprojectgroup.leader != ''">
+ AND cc.leader = #{workprojectgroup.leader}
+ <select id="findAllList" resultType="BidInformation" >
+ <include refid="bidInformationColumns"/>
+ <include refid="bidInformationJoins"/>
+ INSERT INTO bid_information(
+ bid_opening_time,
+ winning_bid_number,
+ central_investment_online,
+ tenderee_archives,
+ paper_archiving,
+ time_of_winning_bid,
+ filing_time,
+ first_acceptance_time,
+ final_archiving_time,
+ project_id
+ #{bidOpeningTime},
+ #{winningBidNumber},
+ #{centralInvestmentOnline},
+ #{tendereeArchives},
+ #{paperArchiving},
+ #{timeOfWinningBid},
+ #{filingTime},
+ #{firstAcceptanceTime},
+ #{finalArchivingTime},
+ #{projectId}
+ UPDATE bid_information SET
+ bid_opening_time = #{bidOpeningTime},
+ winning_bid_number = #{winningBidNumber},
+ central_investment_online = #{centralInvestmentOnline},
+ tenderee_archives = #{tendereeArchives},
+ paper_archiving = #{paperArchiving},
+ time_of_winning_bid = #{timeOfWinningBid},
+ filing_time = #{filingTime},
+ first_acceptance_time = #{firstAcceptanceTime},
+ final_archiving_time = #{finalArchivingTime},
+ project_id = #{projectId}
+ DELETE FROM bid_information
+ <select id="findUniqueByProperty" resultType="BidInformation" statementType="STATEMENT">
+ select * FROM bid_information where ${propertyName} = '${value}'
@@ -0,0 +1,325 @@
+<mapper namespace="com.jeeplus.modules.project.dao.ProjectDao">
+ <sql id="projectColumns">
+ a.project_number AS "projectNumber",
+ a.project_name AS "projectName",
+ a.tenderee_type AS "tendereeType",
+ a.batch AS "batch",
+ a.investment_amounts AS "investmentAmounts",
+ a.entrust_company AS "entrustCompany.id",
+ a.contract_info AS "contractInfo.id",
+ a.project_general AS "projectGeneral.id",
+ a.work_client_linkman AS "workClientLinkman.id",
+ a.project_evaluation_record AS "projectEvaluationRecord.id",
+ a.project_group_info AS "workprojectgroup.id",
+ <sql id="projectJoins">
+ <!--只是备注该表与其他表的关联关系 -->
+ <sql id="projectJoins2">
+ LEFT JOIN work_client_linkman entrustCompany ON entrustCompany.id = a.entrust_company
+ LEFT JOIN work_contract_info contractInfo ON contractInfo.id = a.contract_info
+ LEFT JOIN project_general projectGeneral ON projectGeneral.id = a.project_general
+ LEFT JOIN project_evaluation_record projectEvaluationRecord ON projectEvaluationRecord.id = a.project_evaluation_record
+ LEFT JOIN project_group_info workprojectgroup ON workprojectgroup.id = a.project_group_info
+ <select id="get" resultType="Project" >
+ <include refid="projectColumns"/>
+ FROM project a
+ <include refid="projectJoins"/>
+ <select id="findList" resultType="Project" >
+ <include refid="projectColumns"/>,
+ clientInfo.name AS "contractInfo.client.name",
+ workprojectgroup.leader AS "workprojectgroup.leader",
+ contractInfo.name AS "contractInfo.name",
+ contractInfo.contract_num AS "contractInfo.contractNum"
+ LEFT JOIN work_client_info clientInfo ON clientInfo.id = contractInfo.client_id
+ <if test="projectNumber != null and projectNumber != ''">
+ AND a.project_number LIKE
+ <if test="dbName == 'oracle'">'%'||#{projectNumber}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{projectNumber}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{projectNumber},'%')</if>
+ <if test="projectName != null and projectName != ''">
+ AND a.project_name LIKE
+ <if test="dbName == 'oracle'">'%'||#{projectName}||'%'</if>
+ <if test="dbName == 'mssql'">'%'+#{projectName}+'%'</if>
+ <if test="dbName == 'mysql'">concat('%',#{projectName},'%')</if>
+ <if test="tendereeType != null and tendereeType != ''">
+ AND a.tenderee_type = #{tendereeType}
+ <select id="findAllList" resultType="Project" >
+ INSERT INTO project(
+ project_number,
+ project_name,
+ tenderee_type,
+ batch,
+ investment_amounts,
+ entrust_company,
+ contract_info,
+ project_general,
+ work_client_linkman,
+ project_evaluation_record,
+ project_group_info,
+ #{projectNumber},
+ #{projectName},
+ #{tendereeType},
+ #{batch},
+ #{investmentAmounts},
+ #{entrustCompany},
+ #{contractInfo},
+ #{projectGeneral},
+ #{workClientLinkman},
+ #{projectEvaluationRecord},
+ #{workprojectgroup},
+ UPDATE project SET
+ project_number = #{projectNumber},
+ project_name = #{projectName},
+ tenderee_type = #{tendereeType},
+ batch = #{batch},
+ investment_amounts = #{investmentAmounts},
+ entrust_company = #{entrustCompany},
+ contract_info = #{contractInfo},
+ project_general = #{projectGeneral},
+ work_client_linkman = #{workClientLinkman},
+ project_evaluation_record = #{projectEvaluationRecord},
+ project_group_info = #{workprojectgroup},
+ DELETE FROM project
+ <select id="findUniqueByProperty" resultType="Project" statementType="STATEMENT">
+ select * FROM project where ${propertyName} = '${value}'
+ <select id="findListByentrustCompany" resultType="WorkClientLinkman">
+ FROM work_client_linkman a
+ <select id="findListBycontractInfo" resultType="WorkContractInfo">
+ FROM work_contract_info a
+ <select id="findListByprojectGeneral" resultType="Projectgeneral">
+ FROM project_general a
+ <select id="findListByworkClientLinkman" resultType="WorkClientLinkman">
+ <select id="findListByprojectEvaluationRecord" resultType="ProjectEvaluationRecord">
+ FROM project_evaluation_record a
+ <select id="findListByworkprojectgroup" resultType="Workprojectgroup">
+ FROM project_group_info a
@@ -0,0 +1,155 @@
+<mapper namespace="com.jeeplus.modules.project.dao.ProjectDepositManagementDao">
+ <sql id="projectDepositManagementColumns">
+ a.deposit_amount AS "depositAmount",
+ p.project_name AS "project.projectName",
+ p.project_number AS "project.projectNumber",
+ r.openbid_time AS "openbidTime",
+ a.client_Id AS "clientId",
+ i.name AS "clientName"
+ <sql id="projectDepositManagementJoins">
+ LEFT JOIN project p ON p.id = a.project_id
+ LEFT JOIN work_client_info i ON i.id = a.client_id
+ LEFT JOIN project_evaluation_record r ON r.project_id = a.project_id
+ <select id="get" resultType="ProjectDepositManagement" >
+ <include refid="projectDepositManagementColumns"/>
+ FROM project_deposit_management a
+ <include refid="projectDepositManagementJoins"/>
+ <select id="getByProcessInstanceId" resultType="ProjectDepositManagement">
+ <select id="findList" resultType="ProjectDepositManagement" >
+ <if test="depositAmount != null and depositAmount != ''">
+ AND a.deposit_amount = #{depositAmount}
+ ORDER BY a.update_date ASC
+ <select id="findAllList" resultType="ProjectDepositManagement" >
+ INSERT INTO project_deposit_management(
+ deposit_amount,
+ client_Id,
+ process_instance_id
+ #{depositAmount},
+ #{clientId},
+ #{processInstanceId}
+ UPDATE project_deposit_management SET
+ deposit_amount = #{depositAmount},
+ project_id = #{projectId},
+ DELETE FROM project_deposit_management
+ <select id="findUniqueByProperty" resultType="ProjectDepositManagement" statementType="STATEMENT">
+ select * FROM project_deposit_management where ${propertyName} = '${value}'
+<mapper namespace="com.jeeplus.modules.project.dao.ProjectEvaluationRecordDao">
+ <sql id="projectEvaluationRecordColumns">
+ a.client_id AS "clientId",
+ a.bidsuccess_money AS "bidsuccessMoney",
+ a.duration AS "duration",
+ a.project_manager AS "projectManager",
+ a.openbid_time AS "openbidMime",
+ a.openbid_place AS "openbidPlace",
+ a.assessbid_time AS "assessbidTime",
+ a.assessbid_place AS "assessbidPlace",
+ <sql id="projectEvaluationRecordJoins">
+ <select id="get" resultType="ProjectEvaluationRecord" >
+ <include refid="projectEvaluationRecordColumns"/>
+ <include refid="projectEvaluationRecordJoins"/>
+ <select id="findList" resultType="ProjectEvaluationRecord" >
+ <select id="findAllList" resultType="ProjectEvaluationRecord" >
+ INSERT INTO project_evaluation_record(
+ client_id,
+ bidsuccess_money,
+ duration,
+ project_manager,
+ openbid_time,
+ openbid_place,
+ assessbid_time,
+ assessbid_place,
+ #{bidsuccessMoney},
+ #{duration},
+ #{projectManager},
+ #{openbidMime},
+ #{openbidPlace},
+ #{assessbidTime},
+ #{assessbidPlace},
+ UPDATE project_evaluation_record SET
+ client_id = #{clientId},
+ bidsuccess_money = #{bidsuccessMoney},
+ duration = #{duration},
+ project_manager = #{projectManager},
+ openbid_time = #{openbidMime},
+ openbid_place = #{openbidPlace},
+ assessbid_time = #{assessbidTime},
+ assessbid_place = #{assessbidPlace},
+ DELETE FROM project_evaluation_record
+ <select id="findUniqueByProperty" resultType="ProjectEvaluationRecord" statementType="STATEMENT">
+ select * FROM project_evaluation_record where ${propertyName} = '${value}'
@@ -0,0 +1,175 @@
+<mapper namespace="com.jeeplus.modules.project.dao.ProjectgeneralDao">
+ <sql id="projectgeneralColumns">
+ a.demand_department AS "demandDepartment",
+ a.project_type AS "projectType",
+ a.construction_site AS "constructionSite",
+ a.supervision_unit AS "supervisionUnit",
+ a.service_classification AS "serviceClassification",
+ a.fund_attribute AS "fundAttribute",
+ a.asset_nature AS "assetNature",
+ a.tender_scope AS "tenderScope",
+ a.online_bidding AS "onlineBidding",
+ a.evaluation_expert AS "evaluationExpert",
+ a.price_ceiling AS "priceCeiling",
+ a.bid_price_or_bid_control_price AS "bidPriceOrBidControlPrice",
+ a.bid_price_or_bid_control_price_money AS "bidPriceOrBidControlPriceMoney",
+ a.bid_evaluation_officer AS "bidEvaluationOfficer",
+ a.bid_evaluation_staff AS "bidEvaluationStaff",
+ <sql id="projectgeneralJoins">
+ <select id="get" resultType="Projectgeneral" >
+ <include refid="projectgeneralColumns"/>
+ <include refid="projectgeneralJoins"/>
+ <select id="findList" resultType="Projectgeneral" >
+ <select id="findAllList" resultType="Projectgeneral" >
+ INSERT INTO project_general(
+ demand_department,
+ project_type,
+ construction_site,
+ supervision_unit,
+ service_classification,
+ fund_attribute,
+ asset_nature,
+ tender_scope,
+ online_bidding,
+ evaluation_expert,
+ price_ceiling,
+ bid_price_or_bid_control_price,
+ bid_price_or_bid_control_price_money,
+ bid_evaluation_officer,
+ bid_evaluation_staff,
+ #{demandDepartment},
+ #{projectType},
+ #{constructionSite},
+ #{supervisionUnit},
+ #{serviceClassification},
+ #{fundAttribute},
+ #{assetNature},
+ #{tenderScope},
+ #{onlineBidding},
+ #{evaluationExpert},
+ #{priceCeiling},
+ #{bidPriceOrBidControlPrice},
+ #{bidPriceOrBidControlPriceMoney},
+ #{bidEvaluationOfficer},
+ #{bidEvaluationStaff},
+ UPDATE project_general SET
+ demand_department = #{demandDepartment},
+ project_type = #{projectType},
+ construction_site = #{constructionSite},
+ supervision_unit = #{supervisionUnit},
+ service_classification = #{serviceClassification},
+ fund_attribute = #{fundAttribute},
+ asset_nature = #{assetNature},
+ tender_scope = #{tenderScope},
+ online_bidding = #{onlineBidding},
+ evaluation_expert = #{evaluationExpert},
+ price_ceiling = #{priceCeiling},
+ bid_price_or_bid_control_price = #{bidPriceOrBidControlPrice},
+ bid_price_or_bid_control_price_money = #{bidPriceOrBidControlPriceMoney},
+ bid_evaluation_officer = #{bidEvaluationOfficer},
+ bid_evaluation_staff = #{bidEvaluationStaff},
+ DELETE FROM project_general
+ <select id="findUniqueByProperty" resultType="Projectgeneral" statementType="STATEMENT">
+ select * FROM project_general where ${propertyName} = '${value}'
@@ -0,0 +1,127 @@
+<mapper namespace="com.jeeplus.modules.project.dao.WorkprojectgroupDao">
+ <sql id="workprojectgroupColumns">
+ a.leader AS "leader",
+ a.member_ids AS "memberIds",
+ a.list_preparation AS "listPreparation",
+ <sql id="workprojectgroupJoins">
+ <select id="get" resultType="Workprojectgroup" >
+ <include refid="workprojectgroupColumns"/>
+ <include refid="workprojectgroupJoins"/>
+ <select id="findList" resultType="Workprojectgroup" >
+ <select id="findAllList" resultType="Workprojectgroup" >
+ INSERT INTO project_group_info(
+ leader,
+ member_ids,
+ list_preparation,
+ #{leader},
+ #{memberIds},
+ #{listPreparation},
+ UPDATE project_group_info SET
+ leader = #{leader},
+ member_ids = #{memberIds},
+ list_preparation = #{listPreparation},
+ DELETE FROM project_group_info
+ <select id="findUniqueByProperty" resultType="Workprojectgroup" statementType="STATEMENT">
+ select * FROM project_group_info where ${propertyName} = '${value}'
@@ -0,0 +1,25 @@
+<mapper namespace="com.jeeplus.modules.projectrecord.dao.ProjectClientLinkmanDao">
+ INSERT INTO project_client_linkman
+ (project_id ,linkman_id, client_id, is_entrust)
+ <foreach collection="linkmanList" item="linkman" separator=",">
+ ( #{projectId}, #{linkman.id}, #{linkman.clientId.id}, #{isEntrust})
+ <delete id="deleteProjectLinkmans">
+ DELETE FROM project_client_linkman
+ WHERE project_id = #{projectId}
+ AND is_entrust = #{isEntrust}
+ <select id="getLinkManByNameAndOffice" parameterType="WorkClientLinkman" resultType="WorkClientLinkman">
+ select *
+ from project_client_linkman
+ where name = #{name} and office = #{office}
@@ -0,0 +1,220 @@
+<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectBasedDataDao">
+ <sql id="projectBasedDataColumns">
+ a.provider AS "provider",
+ a.provide_date AS "provideDate",
+ a.upload_environment AS "uploadEnvironment",
+ a.upload_user AS "uploadUser.id",
+ u.name AS "uploadUser.name"
+ <sql id="projectBasedDataJoins">
+ LEFT JOIN project_records r ON r.id = a.project_id
+ LEFT JOIN sys_user u ON u.id = a.upload_user
+ <select id="get" resultType="ProjectBasedData" >
+ <include refid="projectBasedDataColumns"/>
+ FROM project_based_data a
+ <include refid="projectBasedDataJoins"/>
+ <select id="findReportBased" resultType="ProjectBasedData" >
+ JOIN project_report_content rc ON rc.content_id = a.id
+ WHERE rc.report_id = #{reportId}
+ AND rc.type = #{type}
+ <select id="findList" resultType="ProjectBasedData" >
+ <if test="project != null and project.id != null and project.id != ''">
+ AND a.project_id = #{project.id}
+ AND a.name like
+ <if test="dbName == 'mysql'">CONCAT('%', #{name}, '%')</if>
+ <if test="uploadUser!=null and uploadUser.id != null and uploadUser.id != ''">
+ AND a.upload_user = #{uploadUser.id}
+ <if test="provider!=null and provider != ''">
+ AND a.provider like
+ <if test="dbName == 'oracle'">'%'||#{provider}||'%'</if>
+ <if test="dbName == 'mysql'">CONCAT('%', #{provider}, '%')</if>
+ AND a.upload_date >= #{startDate}
+ <if test="endDate != null and endDate != ''">
+ AND a.upload_date <= #{endDate}
+ <select id="findAllList" resultType="ProjectBasedData" >
+ <select id="getNumber" resultType="ProjectBasedData" >
+ a.number AS "number"
+ ORDER BY a.number DESC
+ INSERT INTO project_based_data(
+ provider,
+ provide_date,
+ upload_environment,
+ upload_user,
+ upload_date
+ #{provider},
+ #{provideDate},
+ #{uploadEnvironment},
+ #{uploadUser.id},
+ #{uploadDate}
+ UPDATE project_based_data SET
+ provider = #{provider},
+ provide_date = #{provideDate},
+ upload_environment = #{uploadEnvironment},
+ upload_user = #{uploadUser.id},
+ upload_date = #{uploadDate}
+ DELETE FROM project_based_data
+ <select id="findUniqueByProperty" resultType="ProjectBasedData" statementType="STATEMENT">
+ select * FROM project_based_data where ${propertyName} = '${value}'
+ <select id="queryListByContentId" resultType="ProjectBasedData">
+ LEFT JOIN project_content_based pb ON pb.based_id = a.id
+ pb.content_id = #{contentId}
@@ -0,0 +1,200 @@
+<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectContentChangeDao">
+ <sql id="projectcontentinfoColumns">
+ a.info_id AS "infoId",
+ a.dict_type AS "dictType",
+ a.link_id AS "linkId"
+ <sql id="projectcontentinfoJoins">
+ <select id="get" resultType="Projectcontentinfo" >
+ <include refid="projectcontentinfoColumns"/>
+ FROM project_content_change a
+ <include refid="projectcontentinfoJoins"/>
+ <select id="getByInfoId" resultType="Projectcontentinfo" >
+ WHERE a.info_id = #{infoId}
+ <select id="findList" resultType="Projectcontentinfo" >
+ AND a.parent_ids = #{parentIds}
+ <if test="infoId != null and infoId != ''">
+ AND a.info_id = #{infoId}
+ <select id="findAllList" resultType="Projectcontentinfo" >
+ INSERT INTO project_content_change(
+ info_id,
+ dict_type,
+ link_id
+ #{infoId},
+ #{dictType},
+ #{linkId}
+ UPDATE project_content_change SET
+ info_id = #{infoId},
+ dict_type = #{dictType},
+ DELETE FROM project_content_change
+ <update id="deleteChange">
+ WHERE info_id = #{infoId} AND project_id = #{project.id}
+ <insert id="saveProjectContentDataRelevanceInfo">
+ insert into project_content_data_relevance (
+ project_content_id,
+ project_content_dynamic_id
+ values
+ #{projectContentId},
+ #{projectContentDynamicId}
+ ) ;
+ <select id="findUniqueByProperty" resultType="Projectcontentinfo" statementType="STATEMENT">
+ select * FROM project_content_change where ${propertyName} = '${value}'
@@ -0,0 +1,244 @@
+<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectContentDataDao">
+ <sql id="projectContentDataColumns">
+ a.master AS "master.id",
+ a.content_details_id AS "contentDetailsId",
+ su.name AS "master.name"
+ <sql id="projectContentDataJoins">
+ LEFT JOIN sys_user su ON su.id = a.master
+ <select id="get" resultType="ProjectContentData" >
+ <include refid="projectContentDataColumns"/>
+ FROM project_content_data a
+ <include refid="projectContentDataJoins"/>
+ <select id="findList" resultType="ProjectContentData" >
+ <if test="name !=null and name != ''">
+ AND a.name LIKE concat('%',#{name},'%')
+ <if test="number !=null and number != ''">
+ <if test="master !=null and master.name != null and master.name !=''">
+ AND su.name LIKE concat('%',#{master.name},'%')
+ <if test="project!=null and project.id!=null and project.id!=''">
+ <if test="type!=null and type!=''">
+ <if test="parentType != null">
+ AND a.type LIKE concat(#{parentType},'%')
+ <if test="startDate != null">
+ AND a.create_date >= #{startDate}
+ <if test="endDate != null">
+ AND a.create_date <= #{endDate}
+ <if test="extId !=null and extId!=''">
+ AND a.id != #{extId}
+ AND a.del_flag = #{DEL_FLAG_NORMAL}
+ <select id="findReportContent" resultType="ProjectContentData" >
+ <select id="findAllList" resultType="ProjectContentData" >
+ <select id="getNumber" resultType="ProjectContentData" >
+ INSERT INTO project_content_data(
+ master,
+ content_details_id
+ #{master.id},
+ #{contentDetailsId}
+ <insert id="saveReportContent">
+ INSERT INTO project_report_content(
+ report_id,
+ content_id,
+ #{reportId},
+ #{contentId},
+ UPDATE project_content_data SET
+ master = #{master.id},
+ content_details_id = #{contentDetailsId}
+ <select id="findUniqueByProperty" resultType="ProjectContentData" statementType="STATEMENT">
+ select * FROM project_content_data where ${propertyName} = '${value}'
+ <select id="querySerialNum" resultType="int">
+ SELECT MAX(cast(`number` as UNSIGNED INTEGER))
+ from project_content_data pd LEFT JOIN work_content_type wt ON wt.type_id = pd.type
+ WHERE pd.project_id = #{project.id} AND wt.parent_id = (SELECT parent_id from work_content_type where type_id = #{type})
+ <update id="deleteBasedByContentId">
+ DELETE FROM project_content_based WHERE content_id = #{contentId}
+ <update id="deleteBasedData">
+ DELETE FROM project_content_based WHERE content_id = #{contentId} and based_id = #{basedId}
+ <update id="deleteReportDataInfo">
+ DELETE FROM project_report_content WHERE content_id = #{contentId} and report_id = #{reportId} AND type = #{type}
+ <update id="deleteReportDataMenu">
+ DELETE FROM project_content_change WHERE info_id = #{reportId} and project_id = #{projectId} and link_id = #{linkId}
+ <insert id="batchInsertBaseData" parameterType="java.util.Map">
+ INSERT INTO project_content_based
+ (content_id ,based_id)
+ <foreach collection="projectBasedDataList" item="projectBasedData" separator=",">
+ ( #{contentId}, #{projectBasedData.id})
+ <select id="countByBaseId" resultType="int">
+ SELECT count(*) FROM project_content_based WHERE based_id = #{basedId}
+ <select id="findByLinkId" resultType="java.lang.String">
+ SELECT id FROM project_content_info WHERE info_id = #{contentId} and project_id = #{projectId}
@@ -0,0 +1,355 @@
+<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectReportChangeDao">
+ <sql id="projectReportDataColumns">
+ a.achievement_type AS "achievementType",
+ a.review_standard AS "reviewStandard",
+ a.sign_cost_one AS "signCostOne.id",
+ a.sign_cost_two AS "signCostTwo.id",
+ a.report_date AS "reportDate",
+ a.file_status AS "fileStatus",
+ m.name AS "master.name",
+ a.report_id AS "reportId",
+ a.before_count AS "beforeCount",
+ a.before_id AS "beforeEntity.id",
+ a.report_type AS "reportType",
+ a.number_path as "numberPath",
+ a.review_fee AS "reviewFee",
+ a.approval_fee AS "approvalFee",
+ a.contract_fee AS "contractFee",
+ a.verify_fee AS "verifyFee",
+ a.verify_rate AS "verifyRate",
+ a.consult_fee AS "consultFee",
+ a.building_fee AS "buildingFee",
+ a.install_fee AS "installFee"
+ <sql id="projectReportDataJoins">
+ LEFT JOIN sys_user m ON m.id = a.master
+ <select id="get" resultType="ProjectReportData" >
+ <include refid="projectReportDataColumns"/>
+ FROM project_report_change a
+ <include refid="projectReportDataJoins"/>
+ <select id="findByBefore" resultType="ProjectReportData" >
+ WHERE a.report_id = #{reportId} AND a.status = '5'
+ ORDER BY before_count DESC
+ <select id="getNumber" resultType="ProjectReportData" >
+ <select id="findList" resultType="ProjectReportData" >
+ a.del_flag = #{DEL_FLAG_NORMAL} AND a.report_id is NOT NULL
+ <if test="master!=null and master.id != null and master.id != ''">
+ AND a.master = #{master.id}
+ AND a.report_date >= #{startDate}
+ AND a.report_date <= #{endDate}
+ <select id="findAllList" resultType="ProjectReportData" >
+ INSERT INTO project_report_change(
+ achievement_type,
+ review_standard,
+ sign_cost_one,
+ sign_cost_two,
+ report_date,
+ file_status,
+ before_count,
+ report_type,
+ number_path,
+ review_fee,
+ approval_fee,
+ contract_fee,
+ verify_fee,
+ verify_rate,
+ consult_fee,
+ building_fee,
+ install_fee
+ #{achievementType},
+ #{reviewStandard},
+ #{signCostOne.id},
+ #{signCostTwo.id},
+ #{reportDate},
+ #{fileStatus},
+ #{beforeCount},
+ #{beforeEntity.id},
+ #{reportType},
+ #{numberPath},
+ #{reviewFee},
+ #{approvalFee},
+ #{contractFee},
+ #{verifyFee},
+ #{verifyRate},
+ #{consultFee},
+ #{buildingFee},
+ #{installFee}
+ UPDATE project_report_change SET
+ achievement_type = #{achievementType},
+ review_standard = #{reviewStandard},
+ sign_cost_one = #{signCostOne.id},
+ sign_cost_two = #{signCostTwo.id},
+ report_date = #{reportDate},
+ report_id = #{reportId},
+ report_type = #{reportType},
+ number_path = #{numberPath},
+ review_fee = #{reviewFee},
+ approval_fee = #{approvalFee},
+ contract_fee = #{contractFee},
+ verify_fee = #{verifyFee},
+ verify_rate = #{verifyRate},
+ consult_fee = #{consultFee},
+ building_fee = #{buildingFee},
+ install_fee = #{installFee}
+ <update id="saveInvalid">
+ <if test="invalidStatus != null and invalidStatus != ''">
+ invalid_status = #{invalidStatus},
+ <update id="changeProjectReportData">
+ UPDATE project_report_data
+ SET update_by = #{updateBy.id},
+ <update id="changeBerforProjectReportData">
+ file_status = #{fileStatus}
+ DELETE FROM project_report_change
+ <update id="deleteTree">
+ WHERE project_id = #{project.id} and info_id = #{id}
+ <select id="findUniqueByProperty" resultType="ProjectReportData" statementType="STATEMENT">
+ select * FROM project_report_change where ${propertyName} = '${value}'
+ DELETE FROM project_report_content WHERE report_id = #{reportId} AND type = '2'
+ <update id="deleteReportDataBased">
+ DELETE FROM project_report_content WHERE report_id = #{reportId} AND type = '4'
+ <update id="deleteContentChange">
+ DELETE FROM project_content_change WHERE info_id = #{infoId}
+ <update id="reportNumber">
+ number = #{number}
+ WHERE id = #{reportId}
+ <!-- 获取流程ID -->
+ <select id="getByProcessInstanceId" resultType="ProjectReportData" >
@@ -0,0 +1,27 @@
+<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectReportDataCompanyDao">
+ <select id="findList" resultType="ProjectReportDataCompany" >
+ select
+ a.top_company AS "name",
+ a.type As "type",
+ count(DISTINCT t3.id) AS "reportCount"
+ from sys_office a
+ left join sys_office t2 on (t2.parent_ids like concat('%',a.id,'%') and t2.type='2')
+ left join project_report_data t3 on t3.office_id = t2.id and t3.status = '5' and t3.del_flag = '0'
+ <if test="date!=null and date !=''">
+ AND YEAR(t3.report_date) = #{date}
+ where a.type in('1','3')
+ and ( a.parent_id = #{companyId} or a.id = #{companyId})
+ group by a.id
+ order by a.create_date ASC;