Commit 1d2f25fa by shiwenbo

Merge branch 'develop' of gitlab.beecode.cn:kunlun/xyst_dinas/xyst_dinas_backend into develop

parents 993f73cc b5f41cdb
......@@ -134,6 +134,7 @@ dependencies {
compile "com.beecode:inz.workflow:${inzVersion}"
compile "com.beecode:inz.message:${inzVersion}"
compile "com.beecode:inz.enterprisesetting:${inzVersion}"
compile "com.beecode:xyst.dinas.oa:${inzVersion}"
providedRuntime lib.spring_boot_starter_tomcat
}
......
......@@ -11,5 +11,6 @@ includeBuild("../") {
substitute module('com.beecode:inz.query') with project(':inz.query')
substitute module('com.beecode:inz.workflow') with project(':inz.workflow')
substitute module('com.beecode:inz.enterprisesetting') with project(':inz.enterprisesetting')
substitute module('com.beecode:xyst.dinas.oa') with project(':xyst.dinas.oa')
}
}
<model>
<header>
<type>bcp.participant.Participant</type>
<package>com.beecode.inz.workflow.participant</package>
<name>CommonParticipant</name>
<title>普通审批参与者策略</title>
<tags></tags>
<description>支持按用户、部门、角色计算参与则,结果为职员</description>
</header>
<content>
<participation-strategy id='4fe95b1b-1a14-4af4-a57a-dc2f8abe4f54'>
<input title='职员'>
<name>staffs</name>
<description>json数组</description>
<type>string</type>
</input>
<input title='部门'>
<name>departments</name>
<description>json数组</description>
<type>string</type>
</input>
<input title='角色'>
<name>roles</name>
<description>json数组</description>
<type>string</type>
</input>
<implementation runtime='java' extension='com.beecode.inz.workflow.participant.CommomParticipantStrategy'></implementation>
</participation-strategy>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.participant.Participant</type>
<package>com.beecode.inz.workflow.participant</package>
<name>DepartmentPicByLevelParticipant</name>
<title>层级负责人审批</title>
<tags></tags>
<description></description>
</header>
<content>
<participation-strategy id='82fd946d-ec0e-4055-b507-8624e0c57556'>
<input title='提交人Id'>
<name>submitterId</name>
<description></description>
<type>string</type>
</input>
<input title='层级'>
<name>level</name>
<description></description>
<type>int</type>
</input>
<implementation runtime='java' extension='com.beecode.inz.workflow.participant.DepartmentPicByLevelParticipantStrategy'></implementation>
</participation-strategy>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.participant.Participant</type>
<package>com.beecode.inz.workflow.participant</package>
<name>FollowerMemberPicParticipant</name>
<title>团队负责人审批</title>
<tags></tags>
<description></description>
</header>
<content>
<participation-strategy id='76357756-6acd-40cb-b230-40e9f2f23bbc'>
<input title='业务类型标识'>
<name>bizTypeName</name>
<description></description>
<type>string</type>
</input>
<input title='业务数据Id'>
<name>bizDataId</name>
<description></description>
<type>uuid</type>
</input>
<implementation runtime='java' extension='com.beecode.inz.workflow.participant.FollowerMemberPicParticipantStrategy'></implementation>
</participation-strategy>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.participant.Participant</type>
<package>com.beecode.inz.workflow.participant</package>
<name>SubmitDeptPathAppointRoleParticipant</name>
<title>提交人所在部门路径上指定角色</title>
<tags></tags>
<description></description>
</header>
<content>
<participation-strategy id='11e95b1b-1a14-4af4-a57a-dc2f8abe4f54'>
<input title='提交人Id'>
<name>submitterId</name>
<description></description>
<type>string</type>
</input>
<input title='角色'>
<name>roles</name>
<description>json数组</description>
<type>string</type>
</input>
<implementation runtime='java' extension='com.beecode.inz.workflow.participant.SubmitDeptPathAppointRoleParticipantStrategy'></implementation>
</participation-strategy>
</content>
</model>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<model>
<header>
<type>inz.query.Query</type>
<package>com.beecode.inz.workflow.query</package>
<name>ApprovalTask</name>
<title>审批任务查询</title>
<description></description>
</header>
<content>
<customQuery id="857fbab8-2715-4723-8cf7-be4941ba44de">
<kclass>com.beecode.inz.workflow.datamodel.InzApprovalTask</kclass>
<dataProcessor>com.beecode.inz.workflow.query.InzApprovalTaskQueryDataProcessor</dataProcessor>
<innerScene title="待处理">
<id>0c4b92d3-040f-4390-b9c0-8f0747dd0f9c</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.ToDoTask</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title="已处理">
<id>aae59d63-4cc9-412b-a9d8-604ecf8bfa82</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.ProcessedTask</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<field title="id">
<name>id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="对象名称">
<name>bizObjectName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="业务类型标识">
<name>bizTypeName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务类型标题'>
<name>bizTypeTitle_v</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="业务数据id">
<name>bizDataId</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="收到审批时间">
<name>startTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="审批流程名称">
<name>startTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="结束时间">
<name>finishTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="任务名称">
<name>taskName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="任务标题">
<name>title</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="任务状态">
<name>taskState</name>
<type>int</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="任务参数">
<name>parameters</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="审批结果">
<name>result</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="审批意见">
<name>suggestion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="流程定义标题">
<name>processInstance.workflow.workflowDefinition.title</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="流程实例id">
<name>processInstance.id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="流程发起人标题">
<name>bizProcess.submitter.name</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="流程实例业务类型标识">
<name>bizProcess.bizTypeName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
<model>
<header>
<type>inz.query.Query</type>
<package>com.beecode.inz.workflow.query</package>
<name>BizProcess</name>
<title>工作流业务流程查询</title>
<tags></tags>
<description></description>
</header>
<content>
<customQuery id='fa32de24-a3f8-4270-8c6b-7b537e9a119d'>
<kclass>com.beecode.inz.workflow.datamodel.InzBizProcess</kclass>
<dataProcessor>com.beecode.inz.workflow.query.InzBizProcessQueryDataProcessor</dataProcessor>
<innerScene title='进行中'>
<id>ecfb64aa-f7a7-46ea-a705-31cf9e4b7fe9</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.UnderwayProcess</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title='已结束'>
<id>d5373cb4-4b63-43c4-8a5b-16d3f8079e57</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.FinishedProcess</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<field title='id'>
<name>id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='数据模型标识'>
<name>kclass</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='对象名称'>
<name>bizObjectName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务类型标识'>
<name>bizTypeName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务类型标题'>
<name>bizTypeTitle_v</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='触发动作'>
<name>triggerAction_v</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务数据id'>
<name>bizDataId</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='工作流状态'>
<name>workflowState</name>
<type>int</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='提交人名称'>
<name>submitter.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='提交时间'>
<name>submitTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='流程最后流转时间'>
<name>processInstance.lastTransferTime</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='审批流程标题'>
<name>processInstance.workflow.workflowDefinition.title</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title="流程实例业务类型标识">
<name>bizProcess.bizTypeName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>inz.query.Query</type>
<package>com.beecode.inz.workflow.query</package>
<name>WorkflowDefinition</name>
<title>工作流定义查询</title>
<tags></tags>
<description></description>
</header>
<content>
<customQuery id='8e5dfb20-1b4e-4d6b-a44b-438ef6d09e91'>
<kclass>com.beecode.inz.workflow.datamodel.InzWorkflowDefinition</kclass>
<dataProcessor>com.beecode.inz.workflow.query.InzWorkflowDefinitionQueryDataProcessor</dataProcessor>
<innerScene title="使用中">
<id>0c4b92d3-040f-4390-b9c0-8f0747dd0f9c</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.workflowdefinition.UsingScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title="已停用">
<id>aae59d63-4cc9-412b-a9d8-604ecf8bfa82</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.workflowdefinition.DisabledScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title="已作废">
<id>aae59d63-4c11-412b-a9d8-114ecf8bfa11</id>
<javaImplement>com.beecode.inz.workflow.internal.scene.workflowdefinition.DiscardScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<field title='id'>
<name>id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='名称'>
<name>name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='标题'>
<name>title</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建时间'>
<name>createTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建人名称'>
<name>creator.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改时间'>
<name>modifyTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改人名称'>
<name>modifier.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='流程定义版本'>
<name>definitionVersion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务类型标识'>
<name>bizTypeName</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='工作流配置'>
<name>workflowConfig</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='流程定义内容'>
<name>definitionContent</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='触发动作'>
<name>triggerAction_v</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='业务类型标题'>
<name>bizTypeTitle_v</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='流程状态'>
<name>definitionState</name>
<type>int</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.task.Task</type>
<package>com.beecode.inz.workflow.task</package>
<name>ApprovalTaskDefinition</name>
<title>审批任务定义</title>
<tags></tags>
<description></description>
</header>
<content>
<task-definition id='b2a081fe-dcc8-457d-b899-ae6739773095' type='com.beecode.inz.workflow.datamodel.InzApprovalTask' taskEventListener='com.beecode.inz.workflow.listener.TaskEventListenerImpl'>
<parameters>
<input title='业务对象名称'>
<name>bizObjectName</name>
<type>string</type>
<description></description>
</input>
<input title='业务数据id'>
<name>bizDataId</name>
<type>uuid</type>
<description></description>
</input>
<input title='业务类型标识'>
<name>bizTypeName</name>
<type>string</type>
<description></description>
</input>
<output title='审批结果'>
<name>result</name>
<type>int</type>
<description></description>
</output>
</parameters>
</task-definition>
</content>
</model>
\ No newline at end of file
......@@ -9,4 +9,5 @@ include "inz.init.data"
include "inz.message"
include "inz.query"
include "inz.workflow"
include "xyst.dinas.oa"
dependencies {
compile lib.bcp_import
compile lib.bcp_type
compile lib.bcp_store
compile lib.hibernate_core
compile lib.spring_web
compile lib.spring_boot_autoconfigure
compile lib.jackson_datatype_jdk8
compile lib.jackson_datatype_jsr310
compile lib.json
compile "com.beecode:bap2.participant:${aminoVersion}"
compile "com.beecode:bcp.org:${aminoVersion}"
compile "com.beecode:bap2.department:${aminoVersion}"
compile "com.beecode:bap2.staff:${aminoVersion}"
compile 'com.deepoove:poi-tl:1.5.0'
compile project(":inz.common")
compile project(":inz.query")
compile project(":inz.workflow")
compile project(":inz.basis")
testCompile lib.amino_boot_web
testCompile lib.mysql_connector
}
package com.xyst.dinas.oa.config;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.annotation.Bean;
import com.beecode.inz.workflow.config.BizTypeInfo;
import com.beecode.inz.workflow.config.BizTypeWorkflowConfiguration;
import com.beecode.inz.workflow.config.ProcessConfiguration;
import com.beecode.inz.workflow.config.TriggerAction;
import com.beecode.inz.workflow.config.TriggerCondition;
import com.xyst.dinas.oa.constant.SealBorrowConstant;
public class OaConfiguration {
//用印审批工作流
@Bean(SealBorrowConstant.WORKFLOW_SEALBORROW)
public BizTypeWorkflowConfiguration createSealBorrowBizTypeInfo() {
BizTypeInfo bizTypeInfo = new BizTypeInfo(SealBorrowConstant.BIZ_TYPE,
SealBorrowConstant.BIZ_TITLE, SealBorrowConstant.ENTITY);
BizTypeWorkflowConfiguration configuration = new BizTypeWorkflowConfiguration(bizTypeInfo);
//configuration.setLicenseKey("md_property");
TriggerCondition triggerCondition = new TriggerCondition();
configuration.setTriggerCondition(triggerCondition);
List<TriggerAction> triggerActions = new ArrayList<>();
triggerActions.add(new TriggerAction("SUBMIT",
"提交"));
triggerCondition.setTriggerActions(triggerActions);
ProcessConfiguration processConfig = new ProcessConfiguration();
processConfig.setProcessEventListener(SealBorrowConstant.SEALBORROWLISTENER);
configuration.setProcessConfiguration(processConfig);
return configuration;
}
}
package com.xyst.dinas.oa.constant;
public interface SealBorrowConstant {
/**
* 流程配置
*/
String WORKFLOW_SEALBORROW = "com.xyst.dinas.oa.datamodel.config.SealBorrow";
/**
* 业务类型名称
*/
String BIZ_TYPE = "SealBorrow";
/**
* 业务类型标题
*/
String BIZ_TITLE = "证章借出";
/**
* 实体名
*/
String ENTITY = "com.xyst.dinas.oa.datamodel.SealBorrow";
/**
* 流程监听
*/
public static final String SEALBORROWLISTENER = "com.xyst.dinas.oa.listener";
}
package com.xyst.dinas.oa.listener;
import org.springframework.beans.factory.annotation.Autowired;
import com.beecode.bap.workflow.core.BizProcessState;
import com.beecode.inz.workflow.listener.InzBizProcessEvent;
import com.beecode.inz.workflow.listener.InzBizProcessEventListener;
public class SealBorrowProcessEventListener implements InzBizProcessEventListener {
@Override
public void beforeProcessStarted(InzBizProcessEvent event) {
//do nothing
}
@Override
public void afterProcessStarted(InzBizProcessEvent event) {
//do nothing
}
@Override
public void beforeProcessCompleted(InzBizProcessEvent event) {
//do nothing
}
@Override
public void afterProcessCompleted(InzBizProcessEvent event) {
}
}
<model>
<header>
<type>bcp.biz.Bill</type>
<package>com.xyst.dinas.oa.bill</package>
<title>证章借出</title>
<name>SealBorrow</name>
<description>证章借出</description>
</header>
<content>
<bill>
<data>
{"baseData":{"name":"SealBorrow","title":"证章借出","billModel":"com.beecode.bap.biztrait.BasicBillBiztrait","functionLibrarys":[],"description":"证章借出","dataModel":"com.xyst.dinas.oa.datamodel.SealBorrow"},"serial":{"serialData":[{"segment":"literal","segmentData":"EM"},{"segment":"sequence","segmentData":{"start-with":0,"increment":1,"min":0,"max":99999,"length":5,"cycle":true,"cut-direction":"left","pad-string":"0","pad-direction":"left","cache-size":10}}],"buildTime":"add"},"formula":[],"workflow":{"workflow":"","processParamConfig":[]},"print":[],"authority":[]}
</data>
</bill>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.type.DataModel</type>
<package>com.xyst.dinas.oa.datamodel</package>
<title>印章借出</title>
<name>SealBorrow</name>
<tags></tags>
<description>印章借出</description>
<templateName>mk.ide.ui.editor.data.model.template.bill</templateName>
<tablePrefix>xyst_dinas_oa_</tablePrefix>
</header>
<content>
<dataModel id='71cfd3c2-824d-473a-96e7-687dcdf6e79c' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_oa_seal_borrow'>
<parent>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</parent>
<parent>com.beecode.inz.common.datamodel.BaseInfo</parent>
<attribute id='17f7a14d-a66a-4560-b4a7-a49e43339dec' name='borrower' columnName='borrower' title='借用人' type='com.beecode.bap.staff.datamodel.Staff' default='' precision='' isArray='false'>
<annotation id='7da91608-b3ad-45d6-a29c-2486c25d146e' attributeId='8155d1be-7468-4ef0-aebd-873ce8a15c63' name='length' value='undefined'>
</annotation>
<annotation id='06c88283-4960-4f28-bd28-7c5844536e1c' attributeId='efa2facc-8049-43b5-9773-91cfc90d3743' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='44921d1e-44e2-4247-9770-f5c1c29f7184' name='department' columnName='department' title='所属部门' type='com.beecode.bap.department.datamodel.Department' default='' precision='' isArray='false'>
<annotation id='9add2f78-7c4a-419d-ac24-d89d51948c1d' attributeId='ad3fc07d-40ee-4fba-9fee-6b980e2cece9' name='length' value='undefined'>
</annotation>
<annotation id='260ff272-6d47-4381-bca8-1bd953da347c' attributeId='d3b2e69b-537f-4acd-9305-a4e4f144da7a' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='c144106a-44ad-4464-946f-bf53a39f4022' name='applyDate' columnName='apply_date' title='申请日期' type='datetime' default='' precision='' isArray='false'>
<annotation id='c558438c-4f1a-4292-85a2-bcdc3cf6ebc9' attributeId='202d117d-e39d-490e-a426-9e50b07135d9' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='f53d2007-00af-4f0e-bb19-a8f1d6eff059' name='sealType' columnName='seal_type' title='印章类型' type='com.xyst.dinas.oa.dict.datamodel.SealType' default='' precision='' isArray='false'>
<annotation id='73cdd89c-428a-4887-86b2-0cb4d6193e80' attributeId='43e8e99e-96a7-4b02-9b88-aa2cc2604623' name='length' value='undefined'>
</annotation>
<annotation id='8b15980f-a2e4-4da4-ad0f-9319378e31ed' attributeId='44f57f2c-15a2-48bb-a82a-15cc6fcdbef2' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='6b07cce0-e929-4443-984d-44d675b3f936' name='certificateName' columnName='certificate_name' title='证件名称' type='com.xyst.dinas.oa.dict.datamodel.CertificateName' default='' precision='' isArray='false'>
<annotation id='26462f5e-f89f-4363-82d5-5a9a591ea59b' attributeId='0f2d3b31-a8ed-4fd4-81e4-34145d8373d1' name='length' value='undefined'>
</annotation>
<annotation id='8b15980f-a2e4-4da4-ad0f-9319378e31ed' attributeId='44f57f2c-15a2-48bb-a82a-15cc6fcdbef2' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='145b99c6-8346-453b-ac63-2986ae00c6ea' name='lendDate' columnName='lend_date' title='借出日期' type='datetime' default='' precision='' isArray='false'>
<annotation id='be1d28f6-60db-460d-9304-45cd4d6e5ce9' attributeId='680b6745-9544-4d81-b82e-fd9e5ac4aa52' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='551ce1be-629d-4bb2-9547-193ced385401' name='returnDate' columnName='return_date' title='归还日期' type='datetime' default='' precision='' isArray='false'>
<annotation id='2fa161b7-b4c7-4b9c-aeca-9928280071b1' attributeId='b21e2805-490b-4580-995c-4ce89bc4cc2c' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='342c91c2-3682-40e2-9528-5b66d4df4683' name='lendReason' columnName='lend_reason' title='借出事由' type='string' default='' precision='' isArray='false'>
<annotation id='529a650f-c6cc-4acf-b34f-daf79d2a9e1f' attributeId='42f43f32-a181-4368-b57a-97f32acb4904' name='length' value='500'>
</annotation>
</attribute>
<attribute id='020c6706-bd42-4d2f-9b9e-e01e7780ac64' name='departmentManagerOpinion' columnName='department_manager_opinion' title='部门经理意见' type='string' default='' precision='' isArray='false'>
<annotation id='ac09905b-34a8-427f-be91-4f0651b98429' attributeId='e6d44f86-e25e-4c8e-a3b7-592e5b8c16f1' name='length' value='500'>
</annotation>
</attribute>
<attribute id='d87abe84-a8a3-4ba9-983b-e4a721063311' name='leadershipOpinion' columnName='leadership_opinion' title='分管领导意见' type='string' default='' precision='' isArray='false'>
<annotation id='aca84f84-7d30-4a3e-ba03-c0e1f2b7de87' attributeId='6a41a4c8-dd0c-4a25-8a69-6368869659bb' name='length' value='500'>
</annotation>
</attribute>
<hibernate>/xyst.dinas.oa/src/main/resources/config/SealBorrow.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.dict.Dict</type>
<package>com.xyst.dinas.oa.dict</package>
<name>CertificateName</name>
<title>证件名称</title>
<tags></tags>
<description>证件名称</description>
</header>
<content>
<dict id='aa127a2c-b88e-4371-b963-23f463d51240' listid='d8e0c0db-c261-4ccb-b6e7-18a1d8e61798'>
<type>com.xyst.dinas.oa.dict.datamodel.CertificateName</type>
<config>
<structure>list</structure>
<code-rule></code-rule>
</config>
</dict>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.dict.Dict</type>
<package>com.xyst.dinas.oa.dict</package>
<name>SealType</name>
<title>印章类型</title>
<tags></tags>
<description>印章类型</description>
</header>
<content>
<dict id='8a00bc4f-65c2-490a-980a-ab0d442d550c' listid='a86ba950-602a-41be-960d-026d2ace8aa2'>
<type>com.xyst.dinas.oa.dict.datamodel.SealType</type>
<config>
<structure>list</structure>
<code-rule></code-rule>
</config>
</dict>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.type.DataModel</type>
<package>com.xyst.dinas.oa.dict.datamodel</package>
<title>证件名称</title>
<name>CertificateName</name>
<tags>证件名称</tags>
<description>证件名称</description>
<templateName>mk.ide.ui.editor.data.model.template.common</templateName>
<tablePrefix>xyst_dinas_oa_</tablePrefix>
</header>
<content>
<dataModel id='3a91456c-711b-4f21-bb44-e805e5f7f707' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_oa_certificate_name'>
<parent>com.beecode.bcp.dict.datamodel.BasicDictRequirement</parent>
<hibernate>/xyst.dinas.oa/src/main/resources/config/CertificateName.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.type.DataModel</type>
<package>com.xyst.dinas.oa.dict.datamodel</package>
<title>证章类型</title>
<name>SealType</name>
<tags>证章类型</tags>
<description>证章类型</description>
<templateName>mk.ide.ui.editor.data.model.template.common</templateName>
<tablePrefix>xyst_dinas_oa_</tablePrefix>
</header>
<content>
<dataModel id='42b4e9b8-881a-4dc1-ae2b-07a78d77d4cb' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_oa_seal_type'>
<parent>com.beecode.bcp.dict.datamodel.BasicDictRequirement</parent>
<hibernate>/xyst.dinas.oa/src/main/resources/config/SealType.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>inz.query.Query</type>
<package>com.xyst.dinas.oa.query</package>
<name>SealBorrow</name>
<title>证章借出</title>
<tags></tags>
<description>日常费用</description>
</header>
<content>
<customQuery id='cddef037-c757-47cf-9429-83e4a4c043e7'>
<kclass>com.xyst.dinas.oa.datamodel.SealBorrow</kclass>
<authorityItem>com.xyst.dinas.oa.auth.SealBorrowList</authorityItem>
<innerScene title='全部'>
<id>bd26ae6f-e6c7-4948-a37d-ef85e0265ed3</id>
<javaImplement>com.beecode.inz.common.scene.CommonAllScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title='已废弃'>
<id>36277bdb-acbd-401c-bdc1-47ef1a99ee3e</id>
<javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<field title='id'>
<name>id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='借用人id'>
<name>borrower.id</name>
<type>uuid</type>
<ref>
<type>一般引用</type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='借用人'>
<name>borrower.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='所属部门id'>
<name>department.id</name>
<type>uuid</type>
<ref>
<type></type>
<name>com.beecode.bap.department.datamodel.Department</name>
</ref>
<description></description>
</field>
<field title='所属部门名称'>
<name>department.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.beecode.bap.department.datamodel.Department</name>
</ref>
<description></description>
</field>
<field title='申请日期'>
<name>applyDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='借出日期'>
<name>lendDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='归还日期'>
<name>returnDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建时间'>
<name>createTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建人'>
<name>creator.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改时间'>
<name>modifyTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改人'>
<name>modifier.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='印章类型'>
<name>sealType.id</name>
<type>uuid</type>
<ref>
<type>数据字典</type>
<name>com.xyst.dinas.oa.dict.SealType</name>
</ref>
<description></description>
</field>
<field title='印章类型name'>
<name>sealType.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.xyst.dinas.oa.dict.SealType</name>
</ref>
<description></description>
</field>
<field title='印章类型title'>
<name>sealType.title</name>
<type>string</type>
<ref>
<type></type>
<name>com.xyst.dinas.oa.dict.SealType</name>
</ref>
<description></description>
</field>
<field title='证件名称'>
<name>certificateName.id</name>
<type>uuid</type>
<ref>
<type>数据字典</type>
<name>com.xyst.dinas.oa.dict.CertificateName</name>
</ref>
<description></description>
</field>
<field title='证件名称name'>
<name>certificateName.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.xyst.dinas.oa.dict.certificateName</name>
</ref>
<description></description>
</field>
<field title='证件名称title'>
<name>certificateName.title</name>
<type>string</type>
<ref>
<type></type>
<name>com.xyst.dinas.oa.dict.certificateName</name>
</ref>
<description></description>
</field>
<field title='废弃'>
<name>discard</name>
<type>boolean</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='借出事由'>
<name>lendReason</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='部门经理意见'>
<name>departmentManagerOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='分管领导意见'>
<name>leadershipOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
\ No newline at end of file
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.xyst.dinas.oa.config.OaConfiguration
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-type">
<specification>1.0</specification>
<id>71cfd3c2-824d-473a-96e7-687dcdf6e79c</id>
<name>com.xyst.dinas.oa.datamodel.SealBorrow</name>
<title>印章借出</title>
<description>印章借出</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>bcp.type.constraint.StringLength</dependency>
<dependency>com.xyst.dinas.oa.dict.datamodel.SealType</dependency>
<dependency>com.beecode.inz.common.datamodel.BaseInfo</dependency>
<dependency>com.beecode.bap.staff.datamodel.Staff</dependency>
<dependency>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</dependency>
<dependency>com.xyst.dinas.oa.dict.datamodel.CertificateName</dependency>
<dependency>com.beecode.bap.department.datamodel.Department</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</m:parent>
<m:parent>com.beecode.inz.common.datamodel.BaseInfo</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>17f7a14d-a66a-4560-b4a7-a49e43339dec</m:id>
<m:name>borrower</m:name>
<m:title>借用人</m:title>
<m:type>com.beecode.bap.staff.datamodel.Staff</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>44921d1e-44e2-4247-9770-f5c1c29f7184</m:id>
<m:name>department</m:name>
<m:title>所属部门</m:title>
<m:type>com.beecode.bap.department.datamodel.Department</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>c144106a-44ad-4464-946f-bf53a39f4022</m:id>
<m:name>applyDate</m:name>
<m:title>申请日期</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>f53d2007-00af-4f0e-bb19-a8f1d6eff059</m:id>
<m:name>sealType</m:name>
<m:title>印章类型</m:title>
<m:type>com.xyst.dinas.oa.dict.datamodel.SealType</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>6b07cce0-e929-4443-984d-44d675b3f936</m:id>
<m:name>certificateName</m:name>
<m:title>证件名称</m:title>
<m:type>com.xyst.dinas.oa.dict.datamodel.CertificateName</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>145b99c6-8346-453b-ac63-2986ae00c6ea</m:id>
<m:name>lendDate</m:name>
<m:title>借出日期</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>551ce1be-629d-4bb2-9547-193ced385401</m:id>
<m:name>returnDate</m:name>
<m:title>归还日期</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>342c91c2-3682-40e2-9528-5b66d4df4683</m:id>
<m:name>lendReason</m:name>
<m:title>借出事由</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>020c6706-bd42-4d2f-9b9e-e01e7780ac64</m:id>
<m:name>departmentManagerOpinion</m:name>
<m:title>部门经理意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>d87abe84-a8a3-4ba9-983b-e4a721063311</m:id>
<m:name>leadershipOpinion</m:name>
<m:title>分管领导意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-type">
<specification>1.0</specification>
<id>3a91456c-711b-4f21-bb44-e805e5f7f707</id>
<name>com.xyst.dinas.oa.dict.datamodel.CertificateName</name>
<title>证件名称</title>
<description>证件名称</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>com.beecode.bcp.dict.datamodel.BasicDictRequirement</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bcp.dict.datamodel.BasicDictRequirement</m:parent>
</m:parents>
<m:attributes/>
</m:class>
</content>
<dev:tag xmlns:dev="http://www.beecode.cn/schema/dev">证件名称</dev:tag>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-type">
<specification>1.0</specification>
<id>42b4e9b8-881a-4dc1-ae2b-07a78d77d4cb</id>
<name>com.xyst.dinas.oa.dict.datamodel.SealType</name>
<title>证章类型</title>
<description>证章类型</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>com.beecode.bcp.dict.datamodel.BasicDictRequirement</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bcp.dict.datamodel.BasicDictRequirement</m:parent>
</m:parents>
<m:attributes/>
</m:class>
</content>
<dev:tag xmlns:dev="http://www.beecode.cn/schema/dev">证章类型</dev:tag>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="com.xyst.dinas.oa.dict.datamodel.CertificateName" table="xyst_dinas_oa_certificate_name" >
<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
<id name="id" type="uuid-binary" column="id" length="16">
<generator class="uuid2" />
</id>
<property name="recver" type="integer" not-null="false">
<column name="recver"></column>
</property>
<property name="validTime" type="timestamp" not-null="false">
<column name="valid_time"></column>
</property>
<property name="invalidTime" type="timestamp" not-null="false">
<column name="invalid_time"></column>
</property>
<property name="name" type="nstring" not-null="false">
<column name="name" length="60"></column>
</property>
<property name="title" type="nstring" not-null="false">
<column name="title" length="60"></column>
</property>
<property name="shortName" type="nstring" not-null="false">
<column name="short_name" length="60"></column>
</property>
<property name="memo" type="nstring" not-null="false">
<column name="memo" length="255"></column>
</property>
<property name="parentId" type="uuid-binary" not-null="false">
<column name="parent_id" length="16"></column>
</property>
<property name="level" type="integer" not-null="false">
<column name="level"></column>
</property>
<property name="startFlag" type="boolean" not-null="false">
<column name="start_flag"></column>
</property>
<property name="sortField" type="integer" not-null="false">
<column name="sort_field"></column>
</property>
<property name="createTime" type="timestamp" not-null="false">
<column name="create_time"></column>
</property>
<property name="createUser" type="uuid-binary" not-null="false">
<column name="create_user" length="16"></column>
</property>
<property name="createUnit" type="uuid-binary" not-null="false">
<column name="create_unit" length="16"></column>
</property>
<property name="modifyTime" type="timestamp" not-null="false">
<column name="modify_time"></column>
</property>
<property name="modifyUser" type="uuid-binary" not-null="false">
<column name="modify_user" length="16"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="com.xyst.dinas.oa.datamodel.SealBorrow" table="xyst_dinas_oa_seal_borrow" optimistic-lock="version">
<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
<id name="id" type="uuid-binary" column="id" length="16">
<generator class="assigned" />
</id>
<version name="version" type="int" column="version"/>
<property name="createTime" type="timestamp" not-null="false">
<column name="create_time"></column>
</property>
<many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="creator_id" not-null="false"/>
</many-to-one>
<property name="modifyTime" type="timestamp" not-null="false">
<column name="modify_time"></column>
</property>
<many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="modifier_id" not-null="false"/>
</many-to-one>
<property name="billState" type="nstring" not-null="false">
<column name="bill_state" length="100"></column>
</property>
<many-to-one name="bizProcess" entity-name="com.beecode.bap.workflow.datamodel.BizProcess" fetch="select">
<column name="biz_process_id" not-null="false"/>
</many-to-one>
<property name="billCode" type="nstring" not-null="false">
<column name="bill_code" length="200"></column>
</property>
<property name="discard" type="boolean" not-null="false">
<column name="discard"></column>
</property>
<property name="del" type="boolean" not-null="false">
<column name="del"></column>
</property>
<property name="approveState" type="integer" not-null="false">
<column name="approve_state"></column>
</property>
<many-to-one name="borrower" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="borrower" not-null="false"/>
</many-to-one>
<many-to-one name="department" entity-name="com.beecode.bap.department.datamodel.Department" fetch="select">
<column name="department" not-null="false"/>
</many-to-one>
<property name="applyDate" type="timestamp" not-null="false">
<column name="apply_date"/>
</property>
<many-to-one name="sealType" entity-name="com.xyst.dinas.oa.dict.datamodel.SealType" fetch="select">
<column name="seal_type" not-null="false"/>
</many-to-one>
<many-to-one name="certificateName" entity-name="com.xyst.dinas.oa.dict.datamodel.CertificateName" fetch="select">
<column name="certificate_name" not-null="false"></column>
</many-to-one>
<property name="lendDate" type="timestamp" not-null="false">
<column name="lend_date"/>
</property>
<property name="returnDate" type="timestamp" not-null="false">
<column name="return_date"/>
</property>
<property name="lendReason" type="nstring" not-null="false">
<column name="lend_reason" length="500"></column>
</property>
<property name="departmentManagerOpinion" type="nstring" not-null="false">
<column name="department_manager_opinion" length="500"></column>
</property>
<property name="leadershipOpinion" type="nstring" not-null="false">
<column name="leadership_opinion" length="500"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="com.xyst.dinas.oa.dict.datamodel.SealType" table="xyst_dinas_oa_seal_type" >
<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
<id name="id" type="uuid-binary" column="id" length="16">
<generator class="uuid2" />
</id>
<property name="recver" type="integer" not-null="false">
<column name="recver"></column>
</property>
<property name="validTime" type="timestamp" not-null="false">
<column name="valid_time"></column>
</property>
<property name="invalidTime" type="timestamp" not-null="false">
<column name="invalid_time"></column>
</property>
<property name="name" type="nstring" not-null="false">
<column name="name" length="60"></column>
</property>
<property name="title" type="nstring" not-null="false">
<column name="title" length="60"></column>
</property>
<property name="shortName" type="nstring" not-null="false">
<column name="short_name" length="60"></column>
</property>
<property name="memo" type="nstring" not-null="false">
<column name="memo" length="255"></column>
</property>
<property name="parentId" type="uuid-binary" not-null="false">
<column name="parent_id" length="16"></column>
</property>
<property name="level" type="integer" not-null="false">
<column name="level"></column>
</property>
<property name="startFlag" type="boolean" not-null="false">
<column name="start_flag"></column>
</property>
<property name="sortField" type="integer" not-null="false">
<column name="sort_field"></column>
</property>
<property name="createTime" type="timestamp" not-null="false">
<column name="create_time"></column>
</property>
<property name="createUser" type="uuid-binary" not-null="false">
<column name="create_user" length="16"></column>
</property>
<property name="createUnit" type="uuid-binary" not-null="false">
<column name="create_unit" length="16"></column>
</property>
<property name="modifyTime" type="timestamp" not-null="false">
<column name="modify_time"></column>
</property>
<property name="modifyUser" type="uuid-binary" not-null="false">
<column name="modify_user" length="16"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util" xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.0.xsd">
<!-- 数据库映射 -->
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.user}" />
<property name="password" value="${jdbc.pass}" />
</bean>
<bean id="sessionFactory"
class="com.beecode.bcp.store.hibernate.HibernateSessionFactoryBean"
scope="metadata" lazy-init="true">
<property name="dataSource" ref="dataSource" />
<property name="mappingLocations">
<list>
<value>classpath*:/**/*.hbm.xml</value>
</list>
</property>
<property name="packagesToScan">
<list>
<value>com.beecode.amino.test.war.entity</value>
<value>com.beecode.inz.authmgr.**.*</value>
<value>com.beecode.bap.scheduler.entity</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
</props>
</property>
</bean>
<!-- 配置Hibernate事务管理器 -->
<bean id="transactionManager"
class="com.beecode.bcp.store.hibernate.HibernateTransactionManager">
<property name="sessionFactoryName" value="sessionFactory" />
</bean>
<!-- 配置Hibernate模板 -->
<bean id="hibernateOperations"
class="com.beecode.bcp.store.hibernate.HibernateTemplate">
<property name="sessionFactoryName" value="sessionFactory" />
</bean>
<!-- 配置事务异常封装 -->
<bean id="persistenceExceptionTranslationPostProcessor"
class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
</beans>
\ No newline at end of file
rootProject.name = "inz-metadata"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment