Commit 236964a5 by 高晓磊

运输车辆元数据&获取最新价格调整arrayList

parent 2b37722e
...@@ -4,10 +4,9 @@ import com.beecode.bap.attachment.common.Page; ...@@ -4,10 +4,9 @@ import com.beecode.bap.attachment.common.Page;
import com.beecode.bcp.type.KObject; import com.beecode.bcp.type.KObject;
import com.beecode.inz.basis.dao.BaseDao; import com.beecode.inz.basis.dao.BaseDao;
import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity; import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity;
import com.xyst.dinas.price.entity.StationDinasTypePriceDetail;
import java.util.Date; import java.util.*;
import java.util.List;
import java.util.UUID;
public interface PriceAdjustmentDao extends BaseDao { public interface PriceAdjustmentDao extends BaseDao {
...@@ -28,4 +27,6 @@ public interface PriceAdjustmentDao extends BaseDao { ...@@ -28,4 +27,6 @@ public interface PriceAdjustmentDao extends BaseDao {
List<KObject> getByStationId(UUID id); List<KObject> getByStationId(UUID id);
List<KObject> getNewDetailsByStation(UUID id); List<KObject> getNewDetailsByStation(UUID id);
ArrayList<StationDinasTypePriceDetail> getNewDetailListByStation(UUID id);
} }
package com.xyst.dinas.price.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID;
/**
* @author scol
*/
public class StationDinasTypePriceDetail implements Serializable {
private UUID stationId;
private UUID dinasTypeId;
private Date adjustmentDate;
private BigDecimal dinasPrice;
public Date getAdjustmentDate() {
return adjustmentDate;
}
public void setAdjustmentDate(Date adjustmentDate) {
this.adjustmentDate = adjustmentDate;
}
public UUID getStationId() {
return stationId;
}
public void setStationId(UUID stationId) {
this.stationId = stationId;
}
public UUID getDinasTypeId() {
return dinasTypeId;
}
public void setDinasTypeId(UUID dinasTypeId) {
this.dinasTypeId = dinasTypeId;
}
public BigDecimal getDinasPrice() {
return dinasPrice;
}
public void setDinasPrice(BigDecimal dinasPrice) {
this.dinasPrice = dinasPrice;
}
public StationDinasTypePriceDetail(UUID stationId, UUID dinasTypeId, BigDecimal dinasPrice,Date adjustmentDate) {
this.stationId = stationId;
this.dinasTypeId = dinasTypeId;
this.dinasPrice = dinasPrice;
this.adjustmentDate = adjustmentDate;
}
public StationDinasTypePriceDetail() {
}
@Override
public String toString() {
return "StationDinasTypePriceDetail{" +
"stationId=" + stationId +
", dinasTypeId=" + dinasTypeId +
", dinasPrice=" + dinasPrice +
'}';
}
}
...@@ -11,18 +11,14 @@ import com.xyst.dinas.biz.dao.DinasTypeDao; ...@@ -11,18 +11,14 @@ import com.xyst.dinas.biz.dao.DinasTypeDao;
import com.xyst.dinas.price.constant.PriceAdjustmentConstant; import com.xyst.dinas.price.constant.PriceAdjustmentConstant;
import com.xyst.dinas.price.dao.PriceAdjustmentDao; import com.xyst.dinas.price.dao.PriceAdjustmentDao;
import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity; import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity;
import org.hibernate.criterion.DetachedCriteria; import com.xyst.dinas.price.entity.StationDinasTypePriceDetail;
import org.hibernate.criterion.Order; import org.hibernate.criterion.*;
import org.hibernate.criterion.Restrictions;
import org.hibernate.query.Query; import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateTemplate; import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.util.Arrays; import java.util.*;
import java.util.Date;
import java.util.List;
import java.util.UUID;
/** /**
* @author scol * @author scol
...@@ -109,13 +105,45 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju ...@@ -109,13 +105,45 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
DetachedCriteria detachedCriteria = DetachedCriteria.forEntityName(bean.getName()); DetachedCriteria detachedCriteria = DetachedCriteria.forEntityName(bean.getName());
detachedCriteria.add(Restrictions.eq(BaseConstants.DEL, false)); detachedCriteria.add(Restrictions.eq(BaseConstants.DEL, false));
detachedCriteria.add(Restrictions.in("station.id", id)); detachedCriteria.add(Restrictions.in("station.id", id));
detachedCriteria.add(Restrictions.in("applyStatus",1,3 )); detachedCriteria.add(Restrictions.in("applyStatus",2));
detachedCriteria.addOrder(Order.desc("adjustmentDate")); detachedCriteria.addOrder(Order.desc("adjustmentDate"));
List<KObject> byCriteria = (List<KObject>)template.findByCriteria(detachedCriteria, 0, 1); List<KObject> byCriteria = (List<KObject>)template.findByCriteria(detachedCriteria, 0, 1);
if(CollectionUtils.isEmpty(byCriteria)){ if(CollectionUtils.isEmpty(byCriteria)){
return null; return null;
} }
return Arrays.asList(byCriteria.get(0).get("dinasTypeDetails").toArray()); return byCriteria;
}
@Override
public ArrayList<StationDinasTypePriceDetail> getNewDetailListByStation(UUID id) {
KClass bean = Amino.getStaticMetadataContext().getBean(PriceAdjustmentConstant.ENTITY, KClass.class);
DetachedCriteria detachedCriteria = DetachedCriteria.forEntityName(bean.getName());
detachedCriteria.add(Restrictions.eq(BaseConstants.DEL, false));
detachedCriteria.add(Restrictions.in("station.id", id));
detachedCriteria.add(Restrictions.in("applyStatus",2));
detachedCriteria.addOrder(Order.desc("adjustmentDate"));
List<KObject> byCriteria = (List<KObject>)template.findByCriteria(detachedCriteria, 0, 1);
if(CollectionUtils.isEmpty(byCriteria)){
return null;
}
KObject kObject1 = byCriteria.get(0);
KObject dinasTypeDetails = kObject1.get("dinasTypeDetails");
if(null ==dinasTypeDetails){
return null;
}
KObject[] kObjects = dinasTypeDetails.toArray();
ArrayList<StationDinasTypePriceDetail> objects = new ArrayList<>();
for (KObject kObject : kObjects) {
StationDinasTypePriceDetail stationDinasTypePriceDetail = new StationDinasTypePriceDetail(
kObject1.get("station").getUuid("id"),
kObject.get("dinasType").getUuid("id"),
kObject.getBigDecimal("dinasPrice"),
kObject1.getDate("adjustmentDate")
);
objects.add(stationDinasTypePriceDetail);
}
return objects;
} }
......
...@@ -4,6 +4,7 @@ import com.beecode.bap.attachment.common.Page; ...@@ -4,6 +4,7 @@ import com.beecode.bap.attachment.common.Page;
import com.beecode.bcp.type.KObject; import com.beecode.bcp.type.KObject;
import com.xyst.dinas.price.dao.PriceAdjustmentDao; import com.xyst.dinas.price.dao.PriceAdjustmentDao;
import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity; import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity;
import com.xyst.dinas.price.entity.StationDinasTypePriceDetail;
import com.xyst.dinas.price.service.PriceAdjustmentService; import com.xyst.dinas.price.service.PriceAdjustmentService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -43,6 +44,11 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService { ...@@ -43,6 +44,11 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
return priceAdjustmentDao.getNewDetailsByStation(id); return priceAdjustmentDao.getNewDetailsByStation(id);
} }
@Override
public ArrayList<StationDinasTypePriceDetail> getNewDetailListByStation(UUID id) {
return priceAdjustmentDao.getNewDetailListByStation(id);
}
@Override @Override
public KObject validateByStationId(UUID id) { public KObject validateByStationId(UUID id) {
......
...@@ -2,7 +2,9 @@ package com.xyst.dinas.price.service; ...@@ -2,7 +2,9 @@ package com.xyst.dinas.price.service;
import com.beecode.bcp.type.KObject; import com.beecode.bcp.type.KObject;
import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity; import com.xyst.dinas.price.entity.PriceAdjustmentSearchEntity;
import com.xyst.dinas.price.entity.StationDinasTypePriceDetail;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
...@@ -21,6 +23,8 @@ public interface PriceAdjustmentService { ...@@ -21,6 +23,8 @@ public interface PriceAdjustmentService {
List<KObject> getNewDetailsByStation(UUID id); List<KObject> getNewDetailsByStation(UUID id);
ArrayList<StationDinasTypePriceDetail> getNewDetailListByStation(UUID id);
KObject validateByStationId(UUID id); KObject validateByStationId(UUID id);
......
...@@ -63,6 +63,21 @@ public class PriceAdjustmentController { ...@@ -63,6 +63,21 @@ public class PriceAdjustmentController {
return ResponseObj.success("保存成功", id); return ResponseObj.success("保存成功", id);
} }
/**
* 新建价格调整
*
* @param id json
* @return ResponseObj
*/
@GetMapping("getNewDetailListByStation")
public ResponseObj getNewDetailListByStation(@RequestParam UUID id) {
if (id == null) {
return ResponseObj.error(400, "'id' must be not null!");
}
return ResponseObj.success("查询成功", priceAdjustmentService.getNewDetailListByStation(id));
}
/** /**
* 修改价格调整 * 修改价格调整
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<m:attribute> <m:attribute>
<m:annotations/> <m:annotations/>
<m:id>e0e06e29-2285-4f78-88d8-e3e5b940ba45</m:id> <m:id>26b9776b-005a-4300-89fb-ff16581ed6f2</m:id>
<m:name>failureReason</m:name> <m:name>failureReason</m:name>
<m:title>不通过原因</m:title> <m:title>不通过原因</m:title>
<m:type>string</m:type> <m:type>string</m:type>
......
...@@ -95,8 +95,9 @@ public class DischargingServiceImpl implements DischargingService { ...@@ -95,8 +95,9 @@ public class DischargingServiceImpl implements DischargingService {
} }
UUID uuid = dischargingDao.create(kObject); UUID uuid = dischargingDao.create(kObject);
//生成预警消息的逻辑 如果是小于当前年份的记录,不生成预警 //生成预警消息的逻辑 如果是小于当前年份的记录,不生成预警
//如果已有parentId 也不触发预警
Boolean ltYear = DateTimeUtils.isLtNowYear(dischargingTime); Boolean ltYear = DateTimeUtils.isLtNowYear(dischargingTime);
if (!ltYear) { if (!ltYear && kObject.getUuid("parentId")!=null) {
setWarningRecord(sandMiningAreaId, dischargingTime, sandMiningArea); setWarningRecord(sandMiningAreaId, dischargingTime, sandMiningArea);
} }
return uuid; return uuid;
...@@ -181,12 +182,14 @@ public class DischargingServiceImpl implements DischargingService { ...@@ -181,12 +182,14 @@ public class DischargingServiceImpl implements DischargingService {
KObject oldSandMiningArea = id.get("sandMiningArea"); KObject oldSandMiningArea = id.get("sandMiningArea");
UUID oldSandMiningAreaId = oldSandMiningArea.getUuid("id"); UUID oldSandMiningAreaId = oldSandMiningArea.getUuid("id");
//如果采区和年都没有变化,则不判断旧的数据是否结束 if(null!=kObject.getUuid("parentId")){
if(oldSandMiningAreaId!=sandMiningAreaId&&!DateTimeUtils.isSameYear(oldDischargingTime,dischargingTime)){ //如果采区和年都没有变化,则不判断旧的数据是否结束
setWarningRecord(oldSandMiningAreaId, oldDischargingTime, oldSandMiningArea); if(oldSandMiningAreaId!=sandMiningAreaId&&!DateTimeUtils.isSameYear(oldDischargingTime,dischargingTime)){
setWarningRecord(oldSandMiningAreaId, oldDischargingTime, oldSandMiningArea);
}
if(!DateTimeUtils.isLtNowYear(dischargingTime)){
setWarningRecord(sandMiningAreaId, dischargingTime, sandMiningArea);
} }
if(!DateTimeUtils.isLtNowYear(dischargingTime)){
setWarningRecord(sandMiningAreaId, dischargingTime, sandMiningArea);
} }
dischargingDao.modify(kObject); dischargingDao.modify(kObject);
} }
......
<?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>131a671d-1c01-4bd8-8f7e-b78af96adf5f</id> <id>b5b41566-01e5-412e-bd89-42e1cd2b8e3b</id>
<name>com.xyst.dinas.transport.bill.TransportCompany$serial</name> <name>com.xyst.dinas.transport.bill.TransportCompany$serial</name>
<title>运输公司备案$serial</title> <title>运输公司备案$serial</title>
<description>运输公司备案</description> <description>运输公司备案</description>
......
<?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>d3454080-5933-47cc-a058-946fce64124c</id>
<name>com.xyst.dinas.transport.bill.TransportVehicle$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>131a671d-1c01-4bd8-8f7e-b78af96adf5f</id>
<name>com.xyst.dinas.transport.bill.TransportVehicle$serial</name>
<title>运输车辆备案$serial</title>
<description>运输车辆备案</description>
<define>bcp.serial</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.transport.datamodel.TransportVehicle</dependency>
<dependency>com.xyst.dinas.transport.bill.TransportVehicle$sequence</dependency>
<content>
<m:serial>
<m:input>com.xyst.dinas.transport.datamodel.TransportVehicle</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>VV</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.transport.bill.TransportVehicle$serial</m:key>
<m:sequenceName>com.xyst.dinas.transport.bill.TransportVehicle$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>138855f9-c5bf-47de-bf86-d8788d4737b0</id>
<name>com.xyst.dinas.transport.bill.TransportVehicle</name>
<title>运输车辆备案</title>
<description>运输车辆备案</description>
<define>bcp.biz.Biztype</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.transport.bill.TransportVehicle$serial</dependency>
<dependency>com.xyst.dinas.transport.datamodel.TransportVehicle</dependency>
<dependency>com.beecode.bap.biztrait.BasicBillBiztrait</dependency>
<content>
<m:biztype>
<m:type>com.xyst.dinas.transport.datamodel.TransportVehicle</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.transport.bill.TransportVehicle$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"?> <?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"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-type">
<specification>1.0</specification> <specification>1.0</specification>
<id>e0e06e29-2285-4f78-88d8-e3e5b940ba45</id> <id>0d5b397b-e291-4aff-94ad-e42ed9889f21</id>
<name>com.xyst.dinas.transport.datamodel.TransportCompany</name> <name>com.xyst.dinas.transport.datamodel.TransportCompany</name>
<title>运输公司备案</title> <title>运输公司备案</title>
<description>运输公司备案</description> <description>运输公司备案</description>
......
<?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>9a2a149d-84f9-4b6d-8d5b-05bc730c164f</id>
<name>com.xyst.dinas.transport.datamodel.TransportVehicle</name>
<title>运输车辆备案</title>
<description>运输车辆备案</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>bcp.type.constraint.StringLength</dependency>
<dependency>com.beecode.inz.common.datamodel.BaseInfo</dependency>
<dependency>com.beecode.bap.staff.datamodel.Staff</dependency>
<dependency>com.xyst.dinas.biz.datamodel.xystOrganization</dependency>
<dependency>com.xyst.dinas.transport.datamodel.TransportCompany</dependency>
<dependency>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</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>385cd381-5e31-412e-9031-ecb4f4cd382a</m:id>
<m:name>regionalCompany</m:name>
<m:title>区域公司</m:title>
<m:type>com.xyst.dinas.biz.datamodel.xystOrganization</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>a505f0f9-a1f7-4669-8a72-0329b60173e0</m:id>
<m:name>transportCompany</m:name>
<m:title>所属运输公司</m:title>
<m:type>com.xyst.dinas.transport.datamodel.TransportCompany</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.NotNull</m:type>
</m:annotation>
</m:annotations>
<m:id>b87432ed-d086-4995-b9dc-3d604f00de66</m:id>
<m:name>plateNumber</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>300</m:value>
</m:annotation>
<m:annotation>
<m:type>bcp.type.constraint.NotNull</m:type>
</m:annotation>
</m:annotations>
<m:id>255c8836-2682-4811-b194-e78adad3ecf5</m:id>
<m:name>brand</m:name>
<m:title>品牌</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:id>99954469-de14-48f5-9dee-ab2a1394aee4</m:id>
<m:name>model</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>30</m:value>
</m:annotation>
</m:annotations>
<m:id>9244fb13-507c-4751-aef1-5289d8742c51</m:id>
<m:name>deviceNumber</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>30</m:value>
</m:annotation>
</m:annotations>
<m:id>152d05b0-01ee-4933-9a7c-8866894c118d</m:id>
<m:name>account</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>30</m:value>
</m:annotation>
</m:annotations>
<m:id>cee2f147-5bd5-44a7-9118-0a6f2aedbca4</m:id>
<m:name>accountPassword</m:name>
<m:title>账户的密码</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:id>ed4ff953-e259-4b28-9f4d-268a20f1058b</m:id>
<m:name>carWeight</m:name>
<m:title>车重</m:title>
<m:type>fixnum</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:id>ed4ff953-e259-4b28-9f4d-268a20f1058b</m:id>
<m:name>deadWeight</m:name>
<m:title>载重</m:title>
<m:type>fixnum</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/inz-query">
<specification>1.0</specification>
<id>e0e06e29-2285-4f78-88d8-e3e5b940ba45</id>
<name>com.xyst.dinas.transport.query.TransportVehicle</name>
<title>运输车辆备案</title>
<description>运输车辆备案</description>
<define>inz.query.Query</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.transport.datamodel.TransportVehicle</dependency>
<content>
<m:query>
<m:type>com.xyst.dinas.transport.datamodel.TransportVehicle</m:type>
<m:dataProcessor></m:dataProcessor>
<m:innerScenes>
<m:innerScene>
<m:id>9be72556-d8a4-4427-9cad-23504d5ce84a</m:id>
<m:title>全部</m:title>
<m:javaImplement>com.beecode.inz.common.scene.CommonAllScene</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>d3286a16-0534-4d39-9657-ccd88ceb6e1d</m:id>
<m:title>已废弃</m:title>
<m:javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>8e841e01-6f40-4052-ae19-49274828e3ec</m:id>
<m:title>权限过滤</m:title>
<m:javaImplement>com.xyst.dinas.biz.scene.XystDinasCommonAllScene</m:javaImplement>
<m:defaultExecute>true</m:defaultExecute>
<m:hide>true</m:hide>
</m:innerScene>
</m:innerScenes>
<m:fields>
<m:field>
<m:name>regionalCompany.id</m:name>
<m:title>区域公司</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name>com.xyst.dinas.biz.datamodel.xystOrganization</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>transportCompany.id</m:name>
<m:title>所属运输公司</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name>com.xyst.dinas.transport.datamodel.TransportCompany</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>transportCompany.name</m:name>
<m:title>所属运输公司name</m:title>
<m:type>string</m:type>
<m:ref>
<m:name>com.xyst.dinas.transport.datamodel.TransportCompany</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>id</m:name>
<m:title>id</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>deviceNumber</m:name>
<m:title>设备号</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>model</m:name>
<m:title>型号</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>brand</m:name>
<m:title>品牌</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>plateNumber</m:name>
<m:title>车牌号</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>account</m:name>
<m:title>账号</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>accountPassword</m:name>
<m:title>账户的密码</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>carWeight</m:name>
<m:title>车重</m:title>
<m:type>fixnum</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>deadWeight</m:name>
<m:title>载重</m:title>
<m:type>fixnum</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>createTime</m:name>
<m:title>创建时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>creator.name</m:name>
<m:title>创建人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>modifyTime</m:name>
<m:title>修改时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>modifier.name</m:name>
<m:title>修改人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>discard</m:name>
<m:title>废弃</m:title>
<m:type>boolean</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>del</m:name>
<m:title>删除</m:title>
<m:type>boolean</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</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.transport.datamodel.TransportVehicle" table="xyst_dinas_transport_vehicle" 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"/>
</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"/>
</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"/>
</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"/>
</property>
<property name="discard" type="boolean" not-null="false">
<column name="discard"/>
</property>
<property name="del" type="boolean" not-null="false">
<column name="del"/>
</property>
<property name="approveState" type="integer" not-null="false">
<column name="approve_state"/>
</property>
<many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
<column name="regional_company" not-null="false">
<comment>所属组织机构</comment>
</column>
</many-to-one>
<many-to-one name="transportCompany" entity-name="com.xyst.dinas.transport.datamodel.TransportCompany" fetch="select">
<column name="transportCompany" not-null="false">
<comment>所属运输公司</comment>
</column>
</many-to-one>
<property name="plateNumber" type="nstring" not-null="false">
<column name="plate_number" length="100">
<comment>车牌号</comment>
</column>
</property>
<property name="brand" type="nstring" not-null="false">
<column name="brand" length="100">
<comment>品牌</comment>
</column>
</property>
<property name="model" type="nstring" not-null="false">
<column name="model" length="100">
<comment>型号</comment>
</column>
</property>
<property name="carWeight" type="big_decimal" not-null="false">
<column name="car_weight" precision="12" scale="4">
<comment>总重量</comment>
</column>
</property>
<property name="deadWeight" type="big_decimal" not-null="false">
<column name="dead_weight" precision="12" scale="4">
<comment>装载重量</comment>
</column>
</property>
<property name="deviceNumber" type="nstring" length="80" not-null="false">
<column name="device_number">
<comment>设备序列号</comment>
</column>
</property>
<property name="account" type="nstring" not-null="false">
<column name="account">
<comment>账号</comment>
</column>
</property>
<property name="accountPassword" type="nstring" not-null="false">
<column name="account_password">
<comment>账户的密码</comment>
</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