Commit 652bd6f0 by 王衍超

合同模型/单据创建;

parent 229cd47a
...@@ -138,6 +138,7 @@ dependencies { ...@@ -138,6 +138,7 @@ dependencies {
compile "com.beecode:xyst.dinas.biz:${inzVersion}" compile "com.beecode:xyst.dinas.biz:${inzVersion}"
compile "com.beecode:xyst.dinas.project:${inzVersion}" compile "com.beecode:xyst.dinas.project:${inzVersion}"
compile "com.beecode:xyst.dinas.production:${inzVersion}" compile "com.beecode:xyst.dinas.production:${inzVersion}"
compile "com.beecode:xyst.dinas.contract:${inzVersion}"
providedRuntime lib.spring_boot_starter_tomcat providedRuntime lib.spring_boot_starter_tomcat
} }
......
...@@ -15,6 +15,7 @@ includeBuild("../") { ...@@ -15,6 +15,7 @@ includeBuild("../") {
substitute module('com.beecode:xyst.dinas.biz') with project(':xyst.dinas.biz') substitute module('com.beecode:xyst.dinas.biz') with project(':xyst.dinas.biz')
substitute module('com.beecode:xyst.dinas.project') with project(':xyst.dinas.project') substitute module('com.beecode:xyst.dinas.project') with project(':xyst.dinas.project')
substitute module('com.beecode:xyst.dinas.production') with project(':xyst.dinas.production') substitute module('com.beecode:xyst.dinas.production') with project(':xyst.dinas.production')
substitute module('com.beecode:xyst.dinas.contract') with project(':xyst.dinas.contract')
} }
} }
......
...@@ -13,4 +13,5 @@ include "xyst.dinas.oa" ...@@ -13,4 +13,5 @@ include "xyst.dinas.oa"
include "xyst.dinas.biz" include "xyst.dinas.biz"
include "xyst.dinas.project" include "xyst.dinas.project"
include "xyst.dinas.production" include "xyst.dinas.production"
include "xyst.dinas.contract"
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>a2cc3d5e-7dc3-4cb2-946c-705e4ff89aef</id> <id>dfb7f056-45df-4e88-87fc-17d27d03dc78</id>
<name>com.xyst.dinas.biz.bill.Organization$sequence</name> <name>com.xyst.dinas.biz.bill.Organization$sequence</name>
<title>组织机构$sequence</title> <title>组织机构$sequence</title>
<description>组织机构</description> <description>组织机构</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>5989a00c-f64e-4086-9415-b79d1b2640ba</id> <id>02f6bba7-b333-493c-a400-74d6c0588cc1</id>
<name>com.xyst.dinas.biz.bill.Organization$serial</name> <name>com.xyst.dinas.biz.bill.Organization$serial</name>
<title>组织机构$serial</title> <title>组织机构$serial</title>
<description>组织机构</description> <description>组织机构</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>42a96c63-e3ab-4340-8f63-411aa04f0986</id> <id>5d8ece8d-d87c-4b01-a700-15425f3747c9</id>
<name>com.xyst.dinas.biz.bill.Organization</name> <name>com.xyst.dinas.biz.bill.Organization</name>
<title>组织机构</title> <title>组织机构</title>
<description>组织机构</description> <description>组织机构</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>a5be25d5-3ed4-41d7-93e3-fc35d4b56ace</id> <id>969e23c0-b09a-441a-ba08-cc60c0301477</id>
<name>com.xyst.dinas.biz.bill.Position$sequence</name> <name>com.xyst.dinas.biz.bill.Position$sequence</name>
<title>岗位$sequence</title> <title>岗位$sequence</title>
<description>岗位</description> <description>岗位</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>805f11cf-2f52-4530-bd82-4dc8c2e9cb23</id> <id>e4fe80b6-c5f3-4ee4-93ba-82c42846d512</id>
<name>com.xyst.dinas.biz.bill.Position$serial</name> <name>com.xyst.dinas.biz.bill.Position$serial</name>
<title>岗位$serial</title> <title>岗位$serial</title>
<description>岗位</description> <description>岗位</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>7251c910-eca4-4862-9635-2397de244761</id> <id>705c8f3f-e73e-4610-95e0-7bc36b9d425d</id>
<name>com.xyst.dinas.biz.bill.Position</name> <name>com.xyst.dinas.biz.bill.Position</name>
<title>岗位</title> <title>岗位</title>
<description>岗位</description> <description>岗位</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>4ff3e254-4725-430c-a508-24e2790819d2</id> <id>b5dd5a98-e943-47af-9b28-e306c3e490ce</id>
<name>com.xyst.dinas.biz.bill.ShipInfo$sequence</name> <name>com.xyst.dinas.biz.bill.ShipInfo$sequence</name>
<title>船舶备案$sequence</title> <title>船舶备案$sequence</title>
<description>船舶备案</description> <description>船舶备案</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>8b693bcf-852e-4f05-85e3-b70c0c132d6d</id> <id>551de590-7d60-4ca6-b524-cf2788b77ed3</id>
<name>com.xyst.dinas.biz.bill.ShipInfo$serial</name> <name>com.xyst.dinas.biz.bill.ShipInfo$serial</name>
<title>船舶备案$serial</title> <title>船舶备案$serial</title>
<description>船舶备案</description> <description>船舶备案</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>f9b66980-1d0f-41b7-8927-5fa125eb5de9</id> <id>9a0f7c22-8c59-437c-bdd1-54ac22523819</id>
<name>com.xyst.dinas.biz.bill.ShipInfo</name> <name>com.xyst.dinas.biz.bill.ShipInfo</name>
<title>船舶备案</title> <title>船舶备案</title>
<description>船舶备案</description> <description>船舶备案</description>
<define>bcp.biz.Biztype</define> <define>bcp.biz.Biztype</define>
<define-version>1.0</define-version> <define-version>1.0</define-version>
<dependency>com.xyst.dinas.biz.bill.ShipInfo$serial</dependency>
<dependency>com.xyst.dinas.biz.datamodel.ShipInfo</dependency> <dependency>com.xyst.dinas.biz.datamodel.ShipInfo</dependency>
<dependency>com.xyst.dinas.biz.bill.ShipInfo$serial</dependency>
<dependency>com.beecode.bap.biztrait.BasicBillBiztrait</dependency> <dependency>com.beecode.bap.biztrait.BasicBillBiztrait</dependency>
<content> <content>
<m:biztype> <m:biztype>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>4da57641-c5c9-4cc0-9663-be2ea146a510</id> <id>ba3aea93-d759-4529-bc1e-5bb199354b87</id>
<name>com.xyst.dinas.biz.bill.Station$sequence</name> <name>com.xyst.dinas.biz.bill.Station$sequence</name>
<title>场站$sequence</title> <title>场站$sequence</title>
<description>场站</description> <description>场站</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>4a3a3921-b9d0-40ae-b6cb-c53416d706ed</id> <id>d7cf395b-3536-4d6f-8afe-9682a749b5fb</id>
<name>com.xyst.dinas.biz.bill.Station$serial</name> <name>com.xyst.dinas.biz.bill.Station$serial</name>
<title>场站$serial</title> <title>场站$serial</title>
<description>场站</description> <description>场站</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>cc020715-8ad6-496a-90bd-efb1e3d4f4b6</id> <id>22da2580-f4fa-4806-8adc-f3f98f531ba6</id>
<name>com.xyst.dinas.biz.bill.Station</name> <name>com.xyst.dinas.biz.bill.Station</name>
<title>场站</title> <title>场站</title>
<description>场站</description> <description>场站</description>
......
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
}
rootProject.name = 'xyst.dinas.contract'
\ No newline at end of file
package com.xyst.dinas.contract.config;
import org.springframework.context.annotation.Bean;
import com.xyst.dinas.contract.dao.ContractDao;
import com.xyst.dinas.contract.internal.dao.ContractDaoImpl;
import com.xyst.dinas.contract.internal.service.ContractServiceImpl;
import com.xyst.dinas.contract.service.ContractService;
import com.xyst.dinas.contract.web.ContractController;
/**
* 开启自动配置,无需手动注册Bean
*
* @author Jackpot
* @date 2021年3月29日
*/
public class ContractConfiguration {
@Bean
public ContractController contractController() {
return new ContractController();
}
@Bean
public ContractService contractService() {
return new ContractServiceImpl();
}
@Bean
public ContractDao contractDao() {
return new ContractDaoImpl();
}
}
package com.xyst.dinas.contract.constant;
public class ContractConstant {
/** 实体名:合同信息表 */
public static final String ENTITY_CONTRACT_INFO = "com.xyst.dinas.contract.datamodel.ContractInfo";
/** 实体名:合同表 */
public static final String ENTITY_CONTRACT = "com.xyst.dinas.contract.datamodel.Contract";
/**
* 流程配置
*/
public static final String WORKFLOW_SEALBORROW = "com.xyst.dinas.oa.datamodel.config.SealBorrow";
/**
* 业务类型名称
*/
public static final String BIZ_TYPE = "Contract";
/**
* 业务类型标题
*/
public static final String BIZ_TITLE = "合同";
/**
* 流程监听
*/
public static final String SEALBORROWLISTENER = "com.xyst.dinas.oa.listener.SealBorrowProcessEventListener";
}
package com.xyst.dinas.contract.dao;
import java.util.List;
import java.util.UUID;
import com.beecode.bcp.type.KObject;
public interface ContractDao {
KObject load(UUID id);
/**
* 通过合同编号查找合同
* @param contractCode
* @return
*/
List<KObject> queryContractByCode(String contractCode);
}
package com.xyst.dinas.contract.enumeration;
/**
* 合同状态
*
* @author Jackpot
* @date 2021年3月29日
*/
public enum ContractStateEnum {
/**
* 未执行
*/
UN_EXECUTE("0",""),
/**
* 执行中
*/
EXECUTING("1",""),
/**
* 已完成
*/
COMPLETED("2",""),
;
String code;
String name;
ContractStateEnum(String code,String name) {
this.code = code;
this.name = name;
}
}
package com.xyst.dinas.contract.internal.dao;
import java.util.List;
import java.util.UUID;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateCallback;
import org.springframework.orm.hibernate5.HibernateOperations;
import org.springframework.stereotype.Repository;
import com.beecode.bcp.type.KObject;
import com.xyst.dinas.contract.constant.ContractConstant;
import com.xyst.dinas.contract.dao.ContractDao;
@Repository
public class ContractDaoImpl implements ContractDao {
@Autowired
private HibernateOperations template;
@Override
public KObject load(UUID id) {
return null;
}
@Override
public List<KObject> queryContractByCode(String contractCode) {
return (List<KObject>)template.execute(new HibernateCallback<List<KObject>>() {
@Override
public List<KObject> doInHibernate(Session session) throws HibernateException {
Query<KObject> query = session.createQuery("from " + ContractConstant.ENTITY_CONTRACT_INFO + " where (discard is null or discard = 0) and contractCode =:contractCode", KObject.class);
query.setParameter("contractCode", contractCode);
return query.getResultList();
}
});
}
}
package com.xyst.dinas.contract.internal.service;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.beecode.amino.core.Amino;
import com.beecode.bcp.type.KObject;
import com.beecode.inz.workflow.service.InzWorkflowService;
import com.xyst.dinas.contract.constant.ContractConstant;
import com.xyst.dinas.contract.dao.ContractDao;
import com.xyst.dinas.contract.service.ContractService;
@Service
@Transactional(rollbackFor = Exception.class)
public class ContractServiceImpl implements ContractService{
@Autowired
private InzWorkflowService inzWorkflowService;
@Autowired
private ContractDao contractDao;
@Override
public void submitFlow(UUID id) {
KObject kobject = contractDao.load(id);
if (needSubmitFlow(kobject)) {
// 调用流程接口发起流程
inzWorkflowService.startWorkflow("SUBMIT",
ContractConstant.BIZ_TYPE,
kobject.getString("lendReason"), kobject);
}
}
/**
* 判断提交是否需要走流程
*
* @param data
* @return
*/
private boolean needSubmitFlow(KObject data) {
return inzWorkflowService.canStartWotkflow("SUBMIT",
ContractConstant.BIZ_TYPE, data);
}
public void bill() {
String billDefineName = "com.beecode.inz.property.bill.Equipment";
// BillDefine billDefine = Amino.getApplicationMetadataContext().getBean(billDefineName, BillDefine.class);
// Bill equipmentBill = billService.createBill(billDefine);
// BillData equipmentBillData = equipmentBill.getData();
}
}
package com.xyst.dinas.contract.service;
import java.util.UUID;
public interface ContractService {
void submitFlow(UUID id);
}
package com.xyst.dinas.contract.warn;
import java.util.List;
import java.util.UUID;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
* 业务预警基类
*
* @author Jackpot
* @date 2021年3月26日
*/
public abstract class AbstractBusinessWarn {
protected String billType;
protected UUID billId;
protected String target;
private IWarningCalculate warningCalculate;
public AbstractBusinessWarn(String billType, @Nullable UUID billId,String target) {
this.billType = billType;
this.billId = billId;
this.target = target;
}
/** 预警设置*/
protected WarnSetting getWarnSetting() {
//通过billType, billId, target 在数据库查询预警设置数据
WarnSettingEntity warnSettingEntity = new WarnSettingEntity();
warnSettingEntity.setNoticePersons(null);
return warnSettingEntity;
};
/** 计算是否预警*/
public final void setWarningCalculate(IWarningCalculate warningCalculate) {
this.warningCalculate = warningCalculate;
};
/** 预警*/
public final boolean warn() {
boolean isWarning = false;
WarnSetting warnSetting = getWarnSetting();
if(warnSetting==null || !warnSetting.isWarning()) return false;
Assert.notNull(warningCalculate, "The warningCalculate must not be null!");
//计算业务实际的值, 与预警设置中的值做比较, 计算是否预警
isWarning = warningCalculate.isWarning(warnSetting);
if(!isWarning) return false;
List<String> noticePerson = warnSetting.getNoticePersons();
for (String person : noticePerson) {
//TODO 通知所有人员
}
//TODO 记录预警日志
return true;
};
}
package com.xyst.dinas.contract.warn;
/**
* 计算是否预警接口
*
* @author Jackpot
* @date 2021年3月30日
*/
@FunctionalInterface
public interface IWarningCalculate {
boolean isWarning(WarnSetting warnSetting);
}
package com.xyst.dinas.contract.warn;
/**
* 指标类型
*
* @author Jackpot
* @date 2021年3月26日
*/
public enum TargetTypeEnum {
/** 整数类型*/
INT_TYPE("整数类型"),
/** 浮点类型*/
DOUBLE_TYPE("浮点类型"),
/** 日期类型*/
DATE_TYPE("日期类型"),
/** 日期时间类型*/
DATETIME_TYPE("日期时间类型"),
;
private String name;
TargetTypeEnum(String name){
this.name = name;
}
public String getName() {
return name;
}
}
package com.xyst.dinas.contract.warn;
import java.util.List;
import java.util.UUID;
/**
* 预警设置
*
* 业务类型,业务ID,指标名称 确定唯一设置
*
* @author Jackpot
* @date 2021年3月26日
*/
public interface WarnSetting {
/** 预警开关:是否预警*/
boolean isWarning();
/** 预警设置ID*/
UUID getSettingId();
/** 业务类型*/
String getBillType();
/** 业务ID*/
UUID getBillId();
/** 指标名称*/
String getTargetName();
/** 阀值上限*/
String getCeilingLimit();
/** 阀值下限*/
String getFloorLimit();
/** 人员*/
List<String> getNoticePersons();
// /** 通知时间*/
// String getNoticeTime();
}
package com.xyst.dinas.contract.warn;
import java.util.List;
import java.util.UUID;
public class WarnSettingEntity implements WarnSetting{
private boolean isWarning;
private UUID settingId;
private String billType;
private UUID billId;
private String targetName;
String ceilingLimit;
String floorLimit;
List<String> noticePersons;
public boolean isWarning() {
return isWarning;
}
public UUID getSettingId() {
return settingId;
}
public String getBillType() {
return billType;
}
public UUID getBillId() {
return billId;
}
public String getTargetName() {
return targetName;
}
public String getCeilingLimit() {
return ceilingLimit;
}
public String getFloorLimit() {
return floorLimit;
}
public List<String> getNoticePersons() {
return noticePersons;
}
public void setWarning(boolean isWarning) {
this.isWarning = isWarning;
}
public void setSettingId(UUID settingId) {
this.settingId = settingId;
}
public void setBillType(String billType) {
this.billType = billType;
}
public void setBillId(UUID billId) {
this.billId = billId;
}
public void setTargetName(String targetName) {
this.targetName = targetName;
}
public void setCeilingLimit(String ceilingLimit) {
this.ceilingLimit = ceilingLimit;
}
public void setFloorLimit(String floorLimit) {
this.floorLimit = floorLimit;
}
public void setNoticePersons(List<String> noticePersons) {
this.noticePersons = noticePersons;
}
}
package com.xyst.dinas.contract.warn;
import java.util.UUID;
public class WarnTest {
public void warnTest() {
String billType = "contract";
UUID billId = null;
String target = "青砂";
int count = 10000;//青砂余量
ContractBusinessWarn contractBusinessWarn = new ContractBusinessWarn(billType, billId,target);
contractBusinessWarn.setWarningCalculate((warnSetting)->{
//拿到预警设置信息
String floorLimit = warnSetting.getFloorLimit();
//业务数据与设置的阀值做比较,计算是否预警
if (count<=Integer.valueOf(floorLimit)) {
return true;
}
return false;
});
contractBusinessWarn.warn();
}
/**
* 合同预警
*
* @author Jackpot
* @date 2021年3月26日
*/
public class ContractBusinessWarn extends AbstractBusinessWarn{
public ContractBusinessWarn(String billType, UUID billId,String target) {
super(billType, billId,target);
}
}
}
package com.xyst.dinas.contract.web;
import java.util.UUID;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.xyst.dinas.contract.service.ContractService;
@RestController
public class ContractController {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired
private ContractService contractService;
@PostMapping("/contract/submitFlow")
public Object submitFlow(@RequestBody String body) {
JSONObject obj = new JSONObject(body);
UUID id = UUID.fromString(obj.getString("id"));
contractService.submitFlow(id);
return obj.toString();
}
@GetMapping("/contract/test")
public String test() {
return "test";
}
}
\ No newline at end of file
<model>
<header>
<type>bcp.biz.Bill</type>
<package>com.xyst.dinas.contract.bill</package>
<title>合同单据</title>
<name>ContractBill</name>
<description>合同单据</description>
</header>
<content>
<bill>
<data>
{"baseData":{"name":"ContractBill","title":"合同单据","billModel":"com.beecode.bap.biztrait.BasicBillBiztrait","functionLibrarys":[],"description":"合同单据","dataModel":"com.xyst.dinas.contract.datamodel.Contract"},"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.contract.datamodel</package>
<title>合同信息表</title>
<name>ContractInfo</name>
<tags></tags>
<description>合同信息表</description>
<templateName>mk.ide.ui.editor.data.model.template.bill</templateName>
<tablePrefix>xyst_dinas_</tablePrefix>
</header>
<content>
<dataModel id='235230b3-1248-46b9-bc48-07e750216722' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_contract'>
<parent>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</parent>
<parent>com.beecode.inz.common.datamodel.BaseInfo</parent>
<attribute id='c4154a1b-f727-48cf-9ef0-ad1bee512504' name='projectId' columnName='project_id' title='项目' type='com.xyst.dinas.project.datamodel.ProjectFiled' default='' precision='' isArray='false'>
<annotation id='00caecc1-35aa-4342-90c8-250f84609fe4' attributeId='55efd3f5-036a-4ac4-83c9-14e22cf5465a' name='length' value='undefined'></annotation>
<annotation id='95a6dd6d-c676-4265-9c8b-d115c13b472f' attributeId='43768653-e259-4b0f-8c9d-8739f030675b' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='cbb5b983-299b-4259-97d9-6470651bb18b' name='projectCode' columnName='project_code' title='项目编号' type='string' default='' precision='' isArray='false'>
<annotation id='ea154cb8-f939-4e9f-9793-9673d984161f' attributeId='ffc0a199-4038-4ebf-a94f-a0f12bfc76dd' name='length' value='50'>
</annotation>
</attribute>
<attribute id='c4154a1b-f727-48cf-9ef0-ad1bee512504' name='regionCompanyId' columnName='region_company_id' title='区域公司' type='com.xyst.dinas.biz.datamodel.Organization' default='' precision='' isArray='false'>
<annotation id='00caecc1-35aa-4342-90c8-250f84609fe4' attributeId='55efd3f5-036a-4ac4-83c9-14e22cf5465a' name='length' value='undefined'></annotation>
<annotation id='95a6dd6d-c676-4265-9c8b-d115c13b472f' attributeId='43768653-e259-4b0f-8c9d-8739f030675b' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='cbb5b983-299b-4259-97d9-6470651bb18b' name='regionCompanyName' columnName='region_company_name' title='区域公司名称' type='string' default='' precision='' isArray='false'>
<annotation id='ea154cb8-f939-4e9f-9793-9673d984161f' attributeId='ffc0a199-4038-4ebf-a94f-a0f12bfc76dd' name='length' value='50'>
</annotation>
</attribute>
<attribute id='c4154a1b-f727-48cf-9ef0-ad1bee512504' name='purchaseSandUnitId' columnName='purchase_sand_unit_id' title='购砂单位' type='com.xyst.dinas.project.datamodel.PurchaseSandCompany' default='' precision='' isArray='false'>
<annotation id='00caecc1-35aa-4342-90c8-250f84609fe4' attributeId='55efd3f5-036a-4ac4-83c9-14e22cf5465a' name='length' value='undefined'></annotation>
<annotation id='95a6dd6d-c676-4265-9c8b-d115c13b472f' attributeId='43768653-e259-4b0f-8c9d-8739f030675b' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='cbb5b983-299b-4259-97d9-6470651bb18b' name='purchaseSandUnitName' columnName='purchase_sand_unit_name' title='购砂单位名称' type='string' default='' precision='' isArray='false'>
<annotation id='ea154cb8-f939-4e9f-9793-9673d984161f' attributeId='ffc0a199-4038-4ebf-a94f-a0f12bfc76dd' name='length' value='50'>
</annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='contractName' columnName='contract_name' title='合同名称' type='string' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='50'></annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='contractCode' columnName='contract_code' title='合同编号' type='string' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='50'></annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='currentVersion' columnName='current_version' title='版本号' type='int' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='11'></annotation>
</attribute>
<attribute id='0933ceb1-f327-4372-a316-cffa1c80991a' name='contractState' columnName='contract_state' title='合同状态' type='string' default='' precision='' isArray='false'>
<annotation id='6f08f4ca-1f77-4ed4-a627-0fb8843959fa' attributeId='dfbeaa83-63dc-4638-b55a-8dda62d74dd4' name='length' value='50'></annotation>
</attribute>
<hibernate>/xyst.dinas.contract/src/main/resources/config/ContractInfo.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ No newline at end of file
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.xyst.dinas.contract.config.ContractConfiguration
\ 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-sequence">
<specification>1.0</specification>
<id>c56e5d53-3ce7-4b1f-bd6c-edacaab9614b</id>
<name>com.xyst.dinas.contract.bill.ContractBill$sequence</name>
<title>合同单据$sequence</title>
<description>合同单据</description>
<define>bcp.sequence</define>
<define-version>1.0</define-version>
<content>
<m:sequence>
<m:start-with>0</m:start-with>
<m:increment>1</m:increment>
<m:max>99999</m:max>
<m:min>0</m:min>
<m:cycle>true</m:cycle>
<m:cache-size>10</m:cache-size>
</m:sequence>
</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-serial">
<specification>1.0</specification>
<id>7c01022a-1763-46e4-81c4-f55a8d205cc0</id>
<name>com.xyst.dinas.contract.bill.ContractBill$serial</name>
<title>合同单据$serial</title>
<description>合同单据</description>
<define>bcp.serial</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.contract.bill.ContractBill$sequence</dependency>
<dependency>com.xyst.dinas.contract.datamodel.Contract</dependency>
<content>
<m:serial>
<m:input>com.xyst.dinas.contract.datamodel.Contract</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>EM</m:value>
</m:literal>
<m:sequence>
<m:length>5</m:length>
<m:pad-direction>left</m:pad-direction>
<m:pad-string>0</m:pad-string>
<m:key>com.xyst.dinas.contract.bill.ContractBill$serial</m:key>
<m:sequenceName>com.xyst.dinas.contract.bill.ContractBill$sequence</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</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-biztype">
<specification>1.0</specification>
<id>eb1a8020-f49b-4863-a7e9-553aef70b7a7</id>
<name>com.xyst.dinas.contract.bill.ContractBill</name>
<title>合同单据</title>
<description>合同单据</description>
<define>bcp.biz.Biztype</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.contract.bill.ContractBill$serial</dependency>
<dependency>com.beecode.bap.biztrait.BasicBillBiztrait</dependency>
<dependency>com.xyst.dinas.contract.datamodel.Contract</dependency>
<content>
<m:biztype>
<m:type>com.xyst.dinas.contract.datamodel.Contract</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>com.beecode.bap.biztrait.BasicBillBiztrait</m:biztrait>
<m:config type="xml">
<m:content>&lt;billBasictraitConfig&gt;&lt;formulas/&gt;&lt;parents&gt;&lt;parent&gt;&lt;billCodeConfig&gt;&lt;serialName&gt;com.xyst.dinas.contract.bill.ContractBill$serial&lt;/serialName&gt;&lt;buildTime&gt;add&lt;/buildTime&gt;&lt;/billCodeConfig&gt;&lt;/parent&gt;&lt;parent&gt;&lt;workflowConfig&gt;&lt;workflow&gt;&lt;/workflow&gt;&lt;/workflowConfig&gt;&lt;/parent&gt;&lt;parent&gt;&lt;printConfig&gt;&lt;templates/&gt;&lt;/printConfig&gt;&lt;/parent&gt;&lt;/parents&gt;&lt;functionLibrarys/&gt;&lt;/billBasictraitConfig&gt;</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</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>57fa34cf-59f3-4be6-98bb-3e87853471ee</id>
<name>com.xyst.dinas.contract.datamodel.Contract$ContractDetail</name>
<title>合同子表</title>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement</dependency>
<dependency>com.xyst.dinas.biz.datamodel.DinasType</dependency>
<dependency>bcp.type.constraint.Numeric</dependency>
<dependency>bcp.type.json.JsonIgnore</dependency>
<dependency>com.xyst.dinas.contract.datamodel.Contract</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>c4154a1b-f727-48cf-9ef0-ad1bee512504</m:id>
<m:name>contractId</m:name>
<m:title>合同表ID</m:title>
<m:type>uuid</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>c4154a1b-f727-48cf-9ef0-ad1bee512504</m:id>
<m:name>dinasTypeId</m:name>
<m:title>砂石种类</m:title>
<m:type>com.xyst.dinas.biz.datamodel.DinasType</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.Numeric</m:type>
<m:properties>
<m:property>
<m:key>precision</m:key>
<m:value>10</m:value>
</m:property>
<m:property>
<m:key>scale</m:key>
<m:value>2</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>77e202d5-a342-436c-8042-adcaa8dde410</m:id>
<m:name>purchaseAmount</m:name>
<m:title>砂石量(吨)</m:title>
<m:type>fixnum</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.Numeric</m:type>
<m:properties>
<m:property>
<m:key>precision</m:key>
<m:value>10</m:value>
</m:property>
<m:property>
<m:key>scale</m:key>
<m:value>2</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>77e202d5-a342-436c-8042-adcaa8dde410</m:id>
<m:name>price</m:name>
<m:title>单价</m:title>
<m:type>fixnum</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.Numeric</m:type>
<m:properties>
<m:property>
<m:key>precision</m:key>
<m:value>10</m:value>
</m:property>
<m:property>
<m:key>scale</m:key>
<m:value>2</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>77e202d5-a342-436c-8042-adcaa8dde410</m:id>
<m:name>amount</m:name>
<m:title>总价</m:title>
<m:type>fixnum</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.json.JsonIgnore</m:type>
</m:annotation>
</m:annotations>
<m:id>233c82e2-e7b6-49fc-96cc-bb947ba2cc99</m:id>
<m:name>master</m:name>
<m:title>master</m:title>
<m:type>com.xyst.dinas.contract.datamodel.Contract</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>235230b3-1248-46b9-bc48-07e750216722</id>
<name>com.xyst.dinas.contract.datamodel.ContractInfo</name>
<title>合同信息表</title>
<description>合同信息表</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.biz.datamodel.Organization</dependency>
<dependency>com.xyst.dinas.project.datamodel.PurchaseSandCompany</dependency>
<dependency>bcp.type.constraint.StringLength</dependency>
<dependency>com.beecode.inz.common.datamodel.BaseInfo</dependency>
<dependency>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</dependency>
<dependency>com.xyst.dinas.project.datamodel.ProjectFiled</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>c4154a1b-f727-48cf-9ef0-ad1bee512504</m:id>
<m:name>projectId</m:name>
<m:title>项目</m:title>
<m:type>com.xyst.dinas.project.datamodel.ProjectFiled</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>cbb5b983-299b-4259-97d9-6470651bb18b</m:id>
<m:name>projectCode</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:id>c4154a1b-f727-48cf-9ef0-ad1bee512504</m:id>
<m:name>regionCompanyId</m:name>
<m:title>区域公司</m:title>
<m:type>com.xyst.dinas.biz.datamodel.Organization</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>cbb5b983-299b-4259-97d9-6470651bb18b</m:id>
<m:name>regionCompanyName</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:id>c4154a1b-f727-48cf-9ef0-ad1bee512504</m:id>
<m:name>purchaseSandUnitId</m:name>
<m:title>购砂单位</m:title>
<m:type>com.xyst.dinas.project.datamodel.PurchaseSandCompany</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>cbb5b983-299b-4259-97d9-6470651bb18b</m:id>
<m:name>purchaseSandUnitName</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>0933ceb1-f327-4372-a316-cffa1c80991a</m:id>
<m:name>contractName</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>0933ceb1-f327-4372-a316-cffa1c80991a</m:id>
<m:name>contractCode</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:id>0933ceb1-f327-4372-a316-cffa1c80991a</m:id>
<m:name>currentVersion</m:name>
<m:title>版本号</m:title>
<m:type>int</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>50</m:value>
</m:annotation>
</m:annotations>
<m:id>0933ceb1-f327-4372-a316-cffa1c80991a</m:id>
<m:name>contractState</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"?>
<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.contract.datamodel.Contract" table="xyst_dinas_contract_master" 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>
<property name="contractId" type="uuid-binary" not-null="false">
<column name="contract_id" length="16"></column>
</property>
<many-to-one name="projectId" entity-name="com.xyst.dinas.project.datamodel.ProjectFiled" fetch="select">
<column name="project_id" not-null="false"/>
</many-to-one>
<property name="projectCode" type="nstring" not-null="false">
<column name="project_code" length="50"></column>
</property>
<many-to-one name="regionCompanyId" entity-name="com.xyst.dinas.biz.datamodel.Organization" fetch="select">
<column name="region_company_id" not-null="false"/>
</many-to-one>
<property name="regionCompanyName" type="nstring" not-null="false">
<column name="region_company_name" length="50"></column>
</property>
<many-to-one name="purchaseSandUnitId" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select">
<column name="purchase_sand_unit_id" not-null="false"/>
</many-to-one>
<property name="purchaseSandUnitName" type="nstring" not-null="false">
<column name="purchase_sand_unit_name" length="50"></column>
</property>
<property name="contractName" type="nstring" not-null="false">
<column name="contract_name" length="50"></column>
</property>
<property name="contractCode" type="nstring" not-null="false">
<column name="contract_code" length="50"></column>
</property>
<property name="currentVersion" type="integer" not-null="false">
<column name="current_version" length="11"></column>
</property>
<property name="contractState" type="nstring" not-null="false">
<column name="contract_state" length="50"></column>
</property>
<property name="addrReceive" type="nstring" not-null="false">
<column name="addr_receive" length="100"></column>
</property>
<property name="addrLongitude" type="big_decimal" not-null="false">
<column name="addr_longitude" precision="10" scale="7"></column>
</property>
<property name="addrLatitude" type="big_decimal" not-null="false">
<column name="addr_latitude" precision="10" scale="7"></column>
</property>
<property name="contacts" type="nstring" not-null="false">
<column name="contacts" length="50"></column>
</property>
<property name="phoneNumber" type="nstring" not-null="false">
<column name="phone_number" length="50"></column>
</property>
<property name="signDate" type="date" not-null="false">
<column name="sign_date" length="50"></column>
</property>
<property name="startDate" type="date" not-null="false">
<column name="start_date" length="50"></column>
</property>
<property name="endDate" type="date" not-null="false">
<column name="end_date" length="50"></column>
</property>
<property name="payAccount" type="nstring" not-null="false">
<column name="pay_account" length="100"></column>
</property>
<property name="deposit" type="big_decimal" not-null="false">
<column name="deposit" precision="10" scale="2"></column>
</property>
<property name="amount" type="big_decimal" not-null="false">
<column name="amount" precision="10" scale="2"></column>
</property>
<property name="carInfo" type="nstring" not-null="false">
<column name="car_info" length="300"></column>
</property>
<property name="memo" type="nstring" not-null="false">
<column name="memo" length="500"></column>
</property>
<many-to-one name="stationId" entity-name="com.xyst.dinas.biz.datamodel.Station" fetch="select">
<column name="station_id" not-null="false"/>
</many-to-one>
<property name="contractVersion" type="integer" not-null="false">
<column name="contract_version" length="11"></column>
</property>
<property name="valid" type="boolean" not-null="false">
<column name="valid" length="1"></column>
</property>
</class>
<class entity-name="com.xyst.dinas.contract.datamodel.Contract$ContractDetail" table="xyst_dinas_contract_detail">
<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>
<many-to-one name="master" entity-name="com.xyst.dinas.contract.datamodel.Contract" fetch="select">
<column name="master_id" not-null="false"/>
</many-to-one>
<property name="contractId" type="uuid-binary" not-null="false">
<column name="contract_id" length="16"></column>
</property>
<many-to-one name="dinasTypeId" entity-name="com.xyst.dinas.biz.datamodel.DinasType" fetch="select">
<column name="dinas_type_id" not-null="false"/>
</many-to-one>
<property name="purchaseAmount" type="big_decimal" not-null="false">
<column name="purchase_amount" precision="10" scale="2"></column>
</property>
<property name="price" type="big_decimal" not-null="false">
<column name="price" precision="10" scale="2"></column>
</property>
<property name="amount" type="big_decimal" not-null="false">
<column name="amount" precision="10" scale="2"></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.contract.datamodel.ContractInfo" table="xyst_dinas_contract" 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="projectId" entity-name="com.xyst.dinas.project.datamodel.ProjectFiled" fetch="select">
<column name="project_id" not-null="false"/>
</many-to-one>
<property name="projectCode" type="nstring" not-null="false">
<column name="project_code" length="50"></column>
</property>
<many-to-one name="regionCompanyId" entity-name="com.xyst.dinas.biz.datamodel.Organization" fetch="select">
<column name="region_company_id" not-null="false"/>
</many-to-one>
<property name="regionCompanyName" type="nstring" not-null="false">
<column name="region_company_name" length="50"></column>
</property>
<many-to-one name="purchaseSandUnitId" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select">
<column name="purchase_sand_unit_id" not-null="false"/>
</many-to-one>
<property name="purchaseSandUnitName" type="nstring" not-null="false">
<column name="purchase_sand_unit_name" length="50"></column>
</property>
<property name="contractName" type="nstring" not-null="false">
<column name="contract_name" length="50"></column>
</property>
<property name="contractCode" type="nstring" not-null="false">
<column name="contract_code" length="50"></column>
</property>
<property name="currentVersion" type="integer" not-null="false">
<column name="current_version" length="11"></column>
</property>
<property name="contractState" type="nstring" not-null="false">
<column name="contract_state" length="50"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>5ccfe86d-3a09-4096-942c-12f0cf34b2c9</id> <id>3fd68115-a6df-457c-b026-f893f9501930</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply$sequence</name> <name>com.xyst.dinas.oa.bill.BusinessTripApply$sequence</name>
<title>出差申请$sequence</title> <title>出差申请$sequence</title>
<description>出差申请</description> <description>出差申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>fa113b4f-9717-463b-b5c7-c39274105c4d</id> <id>1fdee622-6c7e-4360-a52f-f5a0d6167ede</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply$serial</name> <name>com.xyst.dinas.oa.bill.BusinessTripApply$serial</name>
<title>出差申请$serial</title> <title>出差申请$serial</title>
<description>出差申请</description> <description>出差申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>34032bde-f86d-42c5-9e54-815d2df4a38d</id> <id>cfe6229c-5610-4e8a-9939-4b1932b00add</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply</name> <name>com.xyst.dinas.oa.bill.BusinessTripApply</name>
<title>出差申请</title> <title>出差申请</title>
<description>出差申请</description> <description>出差申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>5e0ac321-141b-47c7-9ad6-9f79bd4200a4</id> <id>ef3d835f-3a5a-42c9-bd75-8b5ea8f17927</id>
<name>com.xyst.dinas.oa.bill.ProtocolDocument$sequence</name> <name>com.xyst.dinas.oa.bill.ProtocolDocument$sequence</name>
<title>拟文$sequence</title> <title>拟文$sequence</title>
<description>拟文</description> <description>拟文</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>3244bf79-7b2b-4be1-80c8-1864ce709939</id> <id>2433e1ea-6a8f-4721-9f6d-aa30085c7563</id>
<name>com.xyst.dinas.oa.bill.ProtocolDocument$serial</name> <name>com.xyst.dinas.oa.bill.ProtocolDocument$serial</name>
<title>拟文$serial</title> <title>拟文$serial</title>
<description>拟文</description> <description>拟文</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>2ccd3fa2-51cc-4547-8e00-4ffc62150a03</id> <id>1d114143-5da6-4e44-abf1-219384bb6447</id>
<name>com.xyst.dinas.oa.bill.ProtocolDocument</name> <name>com.xyst.dinas.oa.bill.ProtocolDocument</name>
<title>拟文</title> <title>拟文</title>
<description>拟文</description> <description>拟文</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>6438c802-9eb6-47e2-a6fb-1ff2876ce099</id> <id>d7d2090b-cee9-4c84-a001-69250c185ac8</id>
<name>com.xyst.dinas.oa.bill.SealBorrow$sequence</name> <name>com.xyst.dinas.oa.bill.SealBorrow$sequence</name>
<title>证章借出$sequence</title> <title>证章借出$sequence</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>b132b075-ae72-409a-a55f-22cd9938fbb4</id> <id>6b27c011-6376-4de1-84f9-ab78c58abf41</id>
<name>com.xyst.dinas.oa.bill.SealBorrow$serial</name> <name>com.xyst.dinas.oa.bill.SealBorrow$serial</name>
<title>证章借出$serial</title> <title>证章借出$serial</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>bceccd52-bbcf-4a61-a60e-2c623920899f</id> <id>553901e6-1d65-4c61-8229-99b33b61ad44</id>
<name>com.xyst.dinas.oa.bill.SealBorrow</name> <name>com.xyst.dinas.oa.bill.SealBorrow</name>
<title>证章借出</title> <title>证章借出</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>2084c1e0-7086-4188-8d8a-e8b996b30ab9</id> <id>7dc1bcd5-31e9-4840-9e8e-545f1d2beda4</id>
<name>com.xyst.dinas.oa.bill.UseCarApply$sequence</name> <name>com.xyst.dinas.oa.bill.UseCarApply$sequence</name>
<title>用车申请$sequence</title> <title>用车申请$sequence</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>e7544710-bc86-47e3-a63f-7375222d9e95</id> <id>f76222eb-c210-4839-88f6-e6f0c3d6294e</id>
<name>com.xyst.dinas.oa.bill.UseCarApply$serial</name> <name>com.xyst.dinas.oa.bill.UseCarApply$serial</name>
<title>用车申请$serial</title> <title>用车申请$serial</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>f313762f-ef57-4810-a6b6-b3e4f45b22d6</id> <id>63b9876c-00ef-47ae-b19a-75b2e53c2bf7</id>
<name>com.xyst.dinas.oa.bill.UseCarApply</name> <name>com.xyst.dinas.oa.bill.UseCarApply</name>
<title>用车申请</title> <title>用车申请</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>872a1220-9119-4ec9-b7c1-76fe08b9b806</id> <id>8071c6c0-e549-4ab0-9dd0-f2164c1bbf69</id>
<name>com.xyst.dinas.project.bill.ProjectFiled$sequence</name> <name>com.xyst.dinas.project.bill.ProjectFiled$sequence</name>
<title>项目备案$sequence</title> <title>项目备案$sequence</title>
<description>项目备案</description> <description>项目备案</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>0dc92f9e-ee96-4c3a-a84d-f5612b463e6d</id> <id>8295a70e-9072-422d-9740-5249523440d5</id>
<name>com.xyst.dinas.project.bill.ProjectFiled$serial</name> <name>com.xyst.dinas.project.bill.ProjectFiled$serial</name>
<title>项目备案$serial</title> <title>项目备案$serial</title>
<description>项目备案</description> <description>项目备案</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>bb4435a8-cfef-4c95-ae10-541cb239b60d</id> <id>26d9b0c1-b4c5-4788-b716-f67f7216f967</id>
<name>com.xyst.dinas.project.bill.ProjectFiled</name> <name>com.xyst.dinas.project.bill.ProjectFiled</name>
<title>项目备案</title> <title>项目备案</title>
<description>项目备案</description> <description>项目备案</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>bb0c022e-1fed-4d97-a04c-26eebb15de2c</id> <id>c2b72817-0c03-4cdc-a8ca-bebcac02b0e4</id>
<name>com.xyst.dinas.project.bill.PurchaseSandCompany$sequence</name> <name>com.xyst.dinas.project.bill.PurchaseSandCompany$sequence</name>
<title>购砂单位$sequence</title> <title>购砂单位$sequence</title>
<description>购砂单位</description> <description>购砂单位</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>be3a836b-1fc1-41c3-9249-bc2ad6fff3f2</id> <id>baf179e8-9d19-4c6e-9c35-8d33974b747a</id>
<name>com.xyst.dinas.project.bill.PurchaseSandCompany$serial</name> <name>com.xyst.dinas.project.bill.PurchaseSandCompany$serial</name>
<title>购砂单位$serial</title> <title>购砂单位$serial</title>
<description>购砂单位</description> <description>购砂单位</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>196ef98c-48bf-4fdd-8904-16b034005c80</id> <id>e48c7003-95ed-46f3-9c3a-4ec3c00143c4</id>
<name>com.xyst.dinas.project.bill.PurchaseSandCompany</name> <name>com.xyst.dinas.project.bill.PurchaseSandCompany</name>
<title>购砂单位</title> <title>购砂单位</title>
<description>购砂单位</description> <description>购砂单位</description>
......
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