Commit 931b300d by 焦凯

提交部分

parent ef0028ca
<model>
<header>
<type>bcp.type.DataModel</type>
<package>com.xyst.dinas.sales.datamodel</package>
<title>销售台账</title>
<name>SalesRecord</name>
<tags></tags>
<description>销售台账</description>
<templateName>mk.ide.ui.editor.data.model.template.bill</templateName>
<tablePrefix>xyst_dinas_sales_</tablePrefix>
</header>
<content>
<dataModel id='bfc7131b-d5ff-4f08-ad20-1500b5946520' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_sales_record'>
<parent>com.beecode.bap.biztrait.datamodel.StoreMainTableRequirement</parent>
<parent>com.beecode.inz.common.datamodel.BaseInfo</parent>
<attribute id='ef9bb259-9746-4f38-bb70-e1159966297d' name='createTime' title='创建时间' type='datetime' default='' precision='' isArray='false'>
</attribute>
<attribute id='ca273c9d-0981-4f6d-94b4-4a3b76742a1e' name='modifyTime' title='修改时间' type='datetime' default='' precision='' isArray='false'>
</attribute>
<attribute id='abea2870-1ac4-404e-bc4b-b1673e718520' name='project' columnName='project_id' title='项目' type='com.xyst.dinas.project.datamodel.ProjectFiled' default='' precision='' isArray='false'>
<annotation id='0b313200-1cc3-4993-ba99-87635a3db90d' attributeId='9e4d26e3-f2ff-4970-b7d6-97a220f1db45' name='length' value='undefined'></annotation>
<annotation id='ac444b70-c3de-4855-bddc-426530b65175' attributeId='08e34b10-3948-42de-89e5-d27da7eb28ae' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='c1127719-c3c7-47a9-bdc5-3bb4e377cb5f' name='regionalCompany' columnName='regional_company_id' title='区域公司' type='com.xyst.dinas.biz.datamodel.Organization' default='' precision='' isArray='false'>
<annotation id='2081312d-7ad9-4002-99fb-8ae3a7e8de80' attributeId='11b55409-4df5-45c3-8d5f-fe55bb2206c3' name='length' value='undefined'></annotation>
<annotation id='5a733091-6283-48cf-9cac-0963e852b43e' attributeId='d42df0f8-cd8b-4d54-910f-ea76d8c85d15' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='970577bc-d8d2-4f4e-89e5-5f00a10dc8a2' name='contract' columnName='contract_id' title='合同' type='com.xyst.dinas.contract.datamodel.Contract' default='' precision='' isArray='false'>
<annotation id='916dea94-3c48-4bf8-ace3-d706146fea01' attributeId='f19e66ee-c414-4a3d-9c27-bd6e4a7a9d3e' name='length' value='undefined'></annotation>
<annotation id='90f40008-4bcf-4460-823e-2e871546f2b0' attributeId='848a53fe-4a54-4a61-bc82-79aa59d0350a' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='302a145d-c461-4524-8c04-61672080b8da' name='purchaseSandUnit' columnName='purchase_sand_Unit_id' title='购砂单位' type='com.xyst.dinas.project.datamodel.PurchaseSandCompany' default='' precision='' isArray='false'>
<annotation id='e066e806-9a51-4afd-8a2e-9b82015abb81' attributeId='76efcfd0-78f0-4978-8fdc-500cf6d7079c' name='length' value='undefined'></annotation>
<annotation id='ab7b9c40-302a-45ab-9eee-215357b782e5' attributeId='ba277f8b-6b82-46cb-bedd-d8b6861d281f' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='a2d1d0c4-4dee-44d7-89a2-15c53fc879bd' name='station' columnName='station_id' title='场站' type='com.xyst.dinas.biz.datamodel.Station' default='' precision='' isArray='false'>
<annotation id='125a63f1-c11d-4433-88e5-cfc8cee0f7fe' attributeId='80eb92e9-ca45-49c3-bc6a-c0f470296c2d' name='length' value='undefined'></annotation>
<annotation id='45d8448b-4388-467b-b495-bb97a5e43b69' attributeId='e2eafb9d-a3e2-42f6-90fe-691e4586f6d5' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='0ba03ee9-2a71-4d3b-8f84-cdff871b80d2' name='productionLine' columnName='production_line_id' title='生产线' type='com.xyst.dinas.biz.datamodel.ProductionLine' default='' precision='' isArray='false'>
<annotation id='e03b0863-da6f-43e4-b65a-8f62438b0647' attributeId='8acbe217-8d38-45bc-bb9a-90756f1272e4' name='length' value='undefined'></annotation>
<annotation id='166c3674-5f7f-453f-836a-38cf7663ed5f' attributeId='3aa49fb7-340b-43fc-a93a-736232ca272a' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='37f7cb1f-2426-49d7-af70-e0f573fe4f00' name='retailInfo' columnName='retail_info_id' title='散户' type='com.xyst.dinas.biz.datamodel.RetailInfo' default='' precision='' isArray='false'>
<annotation id='88bcad4f-7d3e-4912-9518-de8982104022' attributeId='90d6ec8c-ee9b-4d96-b03f-cda71b2cd8c8' name='length' value='undefined'></annotation>
<annotation id='6b62d994-9ec7-4e26-a5cd-51bd08c9a53d' attributeId='b4c4758c-95c7-4847-8992-d4313d3240a0' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='34f0a228-faa0-4465-9c2c-4ec8b6fb6e43' name='dinasType' columnName='dinas_type_id' title='砂石种类' type='com.xyst.dinas.biz.datamodel.DinasType' default='' precision='' isArray='false'>
<annotation id='dc33cc92-a26a-49d3-a397-544041e0a78e' attributeId='b38113c0-08d7-46ad-94e8-f2738826024d' name='length' value='undefined'></annotation>
<annotation id='1d48af9f-11de-4f14-8dc8-bd66fa69898b' attributeId='52ca140c-60ae-4a98-816f-b223c93a69a7' name='mappingType' value='many-to-one'></annotation>
</attribute>
<attribute id='46656ba1-31bc-4b40-a63d-4a2a4b9f7944' name='dealTime' columnName='deal_time' title='销售时间' type='datetime' default='' precision='' isArray='false'>
<annotation id='18fc1ef9-5b5c-4000-a2d9-7a5d3e5a2fd5' attributeId='b6d2026b-a671-4054-86f2-cce248a72464' name='length' value='50'></annotation>
</attribute>
<attribute id='b01e62bc-ee7b-4470-b695-a78292348d83' name='syncTime' columnName='sync_time' title='同步时间' type='datetime' default='' precision='' isArray='false'>
<annotation id='09e719cd-4d0b-42aa-823d-3af534d95c73' attributeId='d7b8947c-0459-4b7e-a6a8-4acb0416a391' name='length' value='50'></annotation>
</attribute>
<attribute id='9ed97388-563a-4634-a555-b56bb1664dd0' name='carInfo' columnName='car_info' title='车辆信息' type='string' default='' precision='' isArray='false'>
<annotation id='9f44e7df-2ecb-490d-a420-2f53f09e3c38' attributeId='fe172826-06ad-4e73-9a8c-5dbab39d0394' name='length' value='20'></annotation>
</attribute>
<attribute id='d307fa81-7819-4216-887c-2a0fdffd3190' name='dealAmount' columnName='deal_amount' title='销售数量' type='fixnum' default='' precision='' isArray='false'>
<annotation id='8f3f5db5-4480-4a68-9399-cbec70cd118a' attributeId='cf1e0d8f-784b-4587-83a3-1167fc10042f' name='length' value='100'></annotation>
<annotation id='c342cc44-eabb-4f24-8872-b3cd6085b269' attributeId='1faca45c-ea26-47cc-a2ef-ae00daf88586' name='precision' value='12'></annotation>
<annotation id='ae5380d7-75c6-44ff-862f-c9d6c3af409d' attributeId='88762e9e-7c48-40e0-aac1-abcf20e9071a' name='scale' value='4'></annotation>
</attribute>
<attribute id='35c5c23b-bb32-4e2d-909a-712cfadd3519' name='price' columnName='price' title='单价' type='fixnum' default='' precision='' isArray='false'>
<annotation id='5efadf89-6201-4ee6-9088-473404a74f6d' attributeId='e846437b-1583-4068-9690-262ec2c98b61' name='length' value='100'></annotation>
<annotation id='d81f33ea-7612-45c3-9bdd-089af6abd635' attributeId='a5d530ef-9a7d-433e-93c3-240c9fbc7178' name='precision' value='12'></annotation>
<annotation id='f9331547-8e28-4001-9bc4-3ec7eba27583' attributeId='c785deaf-ff5f-4bb2-a1f5-56c01171249b' name='scale' value='2'></annotation>
</attribute>
<attribute id='183f4e16-b718-4d39-8e9f-f4c58978cf40' name='amount' columnName='amount' title='总价' type='fixnum' default='' precision='' isArray='false'>
<annotation id='25565de8-3953-4d8f-9529-391a0c3e0d26' attributeId='4051b501-63da-40a7-bcb4-378fb2490846' name='length' value='100'></annotation>
<annotation id='0bd515ea-8e8f-44f0-a164-ba4b8968fee3' attributeId='6d2151e5-4109-4ba9-ba58-fab898049169' name='precision' value='12'></annotation>
<annotation id='84f4043c-183b-4a8f-93c2-9724c357ad41' attributeId='9e00e008-c516-4176-b410-19010608e16d' name='scale' value='2'></annotation>
</attribute>
<attribute id='9b6efd34-a746-4808-b940-f7f2fd4ccca8' name='paymentSource' columnName='payment_source' title='付款来源' type='string' default='' precision='' isArray='false'>
<annotation id='d39fe1a2-0f6d-4a23-964e-32829f3d7834' attributeId='500a443c-9bc1-4b18-80b9-bf1ad5a090f7' name='length' value='50'></annotation>
</attribute>
<attribute id='7b72bf25-26fd-4e24-b3f9-67d4f4733ff2' name='dealBillCode' columnName='deal_bill_code' title='销售单号' type='string' default='' precision='' isArray='false'>
<annotation id='82dec9ef-61f8-4e17-ba12-4df0472b1e73' attributeId='511c5c00-ccf7-48cb-a7bb-1743a2b92e57' name='length' value='50'></annotation>
</attribute>
<hibernate>/xyst.dinas.sales/src/main/resources/config/SalesRecord.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ 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>bfc7131b-d5ff-4f08-ad20-1500b5946520</id>
<name>com.xyst.dinas.sales.datamodel.SalesRecord</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.xyst.dinas.biz.datamodel.Station</dependency>
<dependency>com.xyst.dinas.biz.datamodel.RetailInfo</dependency>
<dependency>com.xyst.dinas.biz.datamodel.DinasType</dependency>
<dependency>bcp.type.constraint.Numeric</dependency>
<dependency>com.beecode.bap.biztrait.datamodel.StoreMainTableRequirement</dependency>
<dependency>com.xyst.dinas.project.datamodel.ProjectFiled</dependency>
<dependency>com.xyst.dinas.contract.datamodel.Contract</dependency>
<dependency>com.xyst.dinas.biz.datamodel.ProductionLine</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bap.biztrait.datamodel.StoreMainTableRequirement</m:parent>
<m:parent>com.beecode.inz.common.datamodel.BaseInfo</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>ef9bb259-9746-4f38-bb70-e1159966297d</m:id>
<m:name>createTime</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>ca273c9d-0981-4f6d-94b4-4a3b76742a1e</m:id>
<m:name>modifyTime</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>abea2870-1ac4-404e-bc4b-b1673e718520</m:id>
<m:name>project</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:id>c1127719-c3c7-47a9-bdc5-3bb4e377cb5f</m:id>
<m:name>regionalCompany</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:id>970577bc-d8d2-4f4e-89e5-5f00a10dc8a2</m:id>
<m:name>contract</m:name>
<m:title>合同</m:title>
<m:type>com.xyst.dinas.contract.datamodel.Contract</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>302a145d-c461-4524-8c04-61672080b8da</m:id>
<m:name>purchaseSandUnit</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:id>a2d1d0c4-4dee-44d7-89a2-15c53fc879bd</m:id>
<m:name>station</m:name>
<m:title>场站</m:title>
<m:type>com.xyst.dinas.biz.datamodel.Station</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>0ba03ee9-2a71-4d3b-8f84-cdff871b80d2</m:id>
<m:name>productionLine</m:name>
<m:title>生产线</m:title>
<m:type>com.xyst.dinas.biz.datamodel.ProductionLine</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>37f7cb1f-2426-49d7-af70-e0f573fe4f00</m:id>
<m:name>retailInfo</m:name>
<m:title>散户</m:title>
<m:type>com.xyst.dinas.biz.datamodel.RetailInfo</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>34f0a228-faa0-4465-9c2c-4ec8b6fb6e43</m:id>
<m:name>dinasType</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:id>46656ba1-31bc-4b40-a63d-4a2a4b9f7944</m:id>
<m:name>dealTime</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>b01e62bc-ee7b-4470-b695-a78292348d83</m:id>
<m:name>syncTime</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>20</m:value>
</m:annotation>
</m:annotations>
<m:id>9ed97388-563a-4634-a555-b56bb1664dd0</m:id>
<m:name>carInfo</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.Numeric</m:type>
<m:properties>
<m:property>
<m:key>precision</m:key>
<m:value>12</m:value>
</m:property>
<m:property>
<m:key>scale</m:key>
<m:value>4</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>d307fa81-7819-4216-887c-2a0fdffd3190</m:id>
<m:name>dealAmount</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>12</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>35c5c23b-bb32-4e2d-909a-712cfadd3519</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>12</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>183f4e16-b718-4d39-8e9f-f4c58978cf40</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.constraint.StringLength</m:type>
<m:value>50</m:value>
</m:annotation>
</m:annotations>
<m:id>9b6efd34-a746-4808-b940-f7f2fd4ccca8</m:id>
<m:name>paymentSource</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>7b72bf25-26fd-4e24-b3f9-67d4f4733ff2</m:id>
<m:name>dealBillCode</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.sales.datamodel.SalesRecord" table="xyst_dinas_sales_record" 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="uuid2" />
</id>
<version name="version" type="int" column="version"/>
<property name="createTime" type="timestamp" not-null="false">
<column name="create_time"></column>
</property>
<property name="modifyTime" type="timestamp" not-null="false">
<column name="modify_time"></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="pic" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="pic_id" not-null="false"/>
</many-to-one>
<many-to-one name="project" entity-name="com.xyst.dinas.project.datamodel.ProjectFiled" fetch="select">
<column name="project_id" not-null="false"/>
</many-to-one>
<many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.Organization" fetch="select">
<column name="regional_company_id" not-null="false"/>
</many-to-one>
<many-to-one name="contract" entity-name="com.xyst.dinas.contract.datamodel.Contract" fetch="select">
<column name="contract_id" not-null="false"/>
</many-to-one>
<many-to-one name="purchaseSandCompany" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select">
<column name="purchase_sand_company_id" not-null="false"/>
</many-to-one>
<many-to-one name="station" entity-name="com.xyst.dinas.biz.datamodel.Station" fetch="select">
<column name="station_id" not-null="false"/>
</many-to-one>
<many-to-one name="productionLine" entity-name="com.xyst.dinas.biz.datamodel.ProductionLine" fetch="select">
<column name="production_line_id" not-null="false"/>
</many-to-one>
<many-to-one name="retailInfo" entity-name="com.xyst.dinas.biz.datamodel.RetailInfo" fetch="select">
<column name="retail_info_id" not-null="false"/>
</many-to-one>
<many-to-one name="dinasType" entity-name="com.xyst.dinas.biz.datamodel.DinasType" fetch="select">
<column name="dinas_type_id" not-null="false"/>
</many-to-one>
<property name="dealTime" type="timestamp" not-null="false">
<column name="deal_time"></column>
</property>
<property name="syncTime" type="timestamp" not-null="false">
<column name="sync_time"></column>
</property>
<property name="carInfo" type="nstring" not-null="false">
<column name="car_info" length="20"></column>
</property>
<property name="dealAmount" type="big_decimal" not-null="false">
<column name="deal_amount" precision="12" scale="4"></column>
</property>
<property name="price" type="big_decimal" not-null="false">
<column name="price" precision="12" scale="2"></column>
</property>
<property name="amount" type="big_decimal" not-null="false">
<column name="amount" precision="12" scale="2"></column>
</property>
<property name="paymentSource" type="nstring" not-null="false">
<column name="payment_source" length="50"></column>
</property>
<property name="dealBillCode" type="nstring" not-null="false">
<column name="deal_bill_code" length="50"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
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