From d6cb644d0ccc0f73f68d60b3a43e82320d8c97f0 Mon Sep 17 00:00:00 2001 From: pjb <pjb123456> Date: 星期一, 23 六月 2025 08:57:04 +0800 Subject: [PATCH] 米多泉州wms功能完善 --- src/main/java/com/zy/asrs/entity/WrkDetl.java | 74 ++++++++++++++++++++++++------------- 1 files changed, 48 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/WrkDetl.java b/src/main/java/com/zy/asrs/entity/WrkDetl.java index ba91046..624b6bb 100644 --- a/src/main/java/com/zy/asrs/entity/WrkDetl.java +++ b/src/main/java/com/zy/asrs/entity/WrkDetl.java @@ -4,15 +4,12 @@ import com.baomidou.mybatisplus.annotations.TableName; import com.core.common.Cools; import com.core.common.SpringUtils; -import com.core.exception.CoolException; +import com.zy.common.utils.Synchro; import com.zy.system.entity.User; import com.zy.system.service.UserService; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import java.beans.BeanInfo; -import java.beans.Introspector; -import java.beans.PropertyDescriptor; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; @@ -170,13 +167,14 @@ /** * 闀垮害 */ - @ApiModelProperty(value= "闀垮害") - private Double length; + @ApiModelProperty(value= "姣涢噸") + @TableField("man_length") + private Double manLength; /** * 浣撶Н */ - @ApiModelProperty(value= "浣撶Н") + @ApiModelProperty(value= "缃愯閲�") private Double volume; /** @@ -227,9 +225,9 @@ private Integer source; /** - * 瑕佹眰妫�楠� 1: 鏄� 0: 鍚� + * 璐存爣缁撴灉(1.鎴愬姛锛�0.澶辫触) */ - @ApiModelProperty(value= "瑕佹眰妫�楠� 1: 鏄� 0: 鍚� ") + @ApiModelProperty(value= "璐存爣缁撴灉(1.鎴愬姛锛�0.澶辫触)") private Integer inspect; /** @@ -271,6 +269,45 @@ */ @ApiModelProperty(value= "澶囨敞") private String memo; + + /** + * 澶囩敤1 + */ + @ApiModelProperty(value= "澶囩敤1") + private String standby1 = ""; + + /** + * 澶囩敤2 + */ + @ApiModelProperty(value= "澶囩敤2") + private String standby2 = ""; + + /** + * 澶囩敤3 + */ + @ApiModelProperty(value= "澶囩敤3") + private String standby3 = ""; + + /** + * 澶囩敤1 + */ + @ApiModelProperty(value= "澶囩敤1") + @TableField("box_type1") + private String boxType1 = "1"; + + /** + * 澶囩敤2 + */ + @ApiModelProperty(value= "澶囩敤2") + @TableField("box_type2") + private String boxType2 = "1"; + + /** + * 澶囩敤3 + */ + @ApiModelProperty(value= "澶囩敤3") + @TableField("box_type3") + private String boxType3 = "1"; public String getIoTime$(){ if (Cools.isEmpty(this.ioTime)){ @@ -361,23 +398,8 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); } - public void sync(Object dest) { - try { - BeanInfo sourceBean = Introspector.getBeanInfo(this.getClass(),Object.class); - PropertyDescriptor[] sourceProperty = sourceBean.getPropertyDescriptors(); - BeanInfo destBean = Introspector.getBeanInfo(dest.getClass(),Object.class); - PropertyDescriptor[] destProperty = destBean.getPropertyDescriptors(); - for (PropertyDescriptor propertyDescriptor : sourceProperty) { - for (PropertyDescriptor descriptor : destProperty) { - if (propertyDescriptor.getName().equals(descriptor.getName()) && propertyDescriptor.getPropertyType() == descriptor.getPropertyType()) { - descriptor.getWriteMethod().invoke(dest, propertyDescriptor.getReadMethod().invoke(this)); - break; - } - } - } - } catch (Exception e) { - throw new CoolException("灞炴�у鍒跺け璐�:" + e.getMessage()); - } + public void sync(Object source) { + Synchro.Copy(source, this); } } -- Gitblit v1.9.1