From 72c120049ba6db6eded053e3ba106c2e13696e82 Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期五, 21 一月 2022 12:38:54 +0800
Subject: [PATCH] 更新前端
---
src/main/java/zy/cloud/wms/manager/entity/Item.java | 101 +++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 95 insertions(+), 6 deletions(-)
diff --git a/src/main/java/zy/cloud/wms/manager/entity/Item.java b/src/main/java/zy/cloud/wms/manager/entity/Item.java
index de67d78..6dd0f21 100644
--- a/src/main/java/zy/cloud/wms/manager/entity/Item.java
+++ b/src/main/java/zy/cloud/wms/manager/entity/Item.java
@@ -3,12 +3,17 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
+import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
+import zy.cloud.wms.manager.service.CstmrService;
+import zy.cloud.wms.manager.service.ProjectStatusService;
+import zy.cloud.wms.manager.service.ProjectTypeService;
import zy.cloud.wms.system.entity.Host;
import zy.cloud.wms.system.entity.User;
import zy.cloud.wms.system.service.HostService;
@@ -17,6 +22,7 @@
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
+import java.util.List;
@Data
@TableName("man_item")
@@ -87,7 +93,7 @@
* 寮�濮嬫椂闂�
*/
@ApiModelProperty(value= "寮�濮嬫椂闂�")
- @TableField("start_time")
+ @TableField(value = "start_time", strategy = FieldStrategy.IGNORED)
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date startTime;
@@ -95,14 +101,14 @@
* 缁撴潫鏃堕棿
*/
@ApiModelProperty(value= "缁撴潫鏃堕棿")
- @TableField("end_time")
+ @TableField(value = "end_time" ,strategy = FieldStrategy.IGNORED)
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date endTime;
/**
* 鐘舵�� 1: 姝e父 0: 绂佺敤
*/
- @ApiModelProperty(value= "鐘舵�� 1: 姝e父 0: 绂佺敤 ")
+ @ApiModelProperty(value= "鐘舵�� 1: 姝e父 0: 瀹岀粨 ")
private Integer status;
/**
@@ -145,12 +151,12 @@
private String type;
- @TableField("real_start_time")
+ @TableField(value = "real_start_time", strategy = FieldStrategy.IGNORED)
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date realStartTime;
- @TableField("real_end_time")
+ @TableField(value = "real_end_time", strategy = FieldStrategy.IGNORED)
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
private Date realEndTime;
@@ -162,6 +168,12 @@
@TableField("duty_man")
private String dutyMan;
+
+ @TableField("origin_area")
+ private String originArea;
+
+ @TableField("project_status")
+ private Integer projectStatus;
public Item() {}
@@ -185,6 +197,14 @@
// null // 澶囨敞
// );
+ public String getProjectStatus$(){
+ ProjectStatusService bean = SpringUtils.getBean(ProjectStatusService.class);
+ ProjectStatus id = bean.selectOne(new EntityWrapper<ProjectStatus>().eq("id", this.projectStatus));
+ if (!Cools.isEmpty(this.id)) {
+ return id.getStatusName();
+ }
+ return null;
+ }
public Long getId() {
return id;
}
@@ -213,6 +233,7 @@
public String getUuid() {
return uuid;
}
+
public void setUuid(String uuid) {
this.uuid = uuid;
@@ -277,6 +298,13 @@
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime);
}
+ public String getStartTime0$(){
+ if (Cools.isEmpty(this.startTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd").format(this.startTime);
+ }
+
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
@@ -290,6 +318,12 @@
return "";
}
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
+ }
+ public String getEndTime0$(){
+ if (Cools.isEmpty(this.endTime)){
+ return "";
+ }
+ return new SimpleDateFormat("yyyy-MM-dd").format(this.endTime);
}
public void setEndTime(Date endTime) {
@@ -305,7 +339,9 @@
switch (this.status){
case 1:
return "姝e父";
- case 0:
+ case 3:
+ return "瀹岀粨";
+ case 2:
return "绂佺敤";
default:
return String.valueOf(this.status);
@@ -360,6 +396,58 @@
}
return null;
}
+ public String getCstmrUuid$(){
+ CstmrService bean = SpringUtils.getBean(CstmrService.class);
+ Cstmr id = bean.selectOne(new EntityWrapper<Cstmr>()
+ .eq("id", this.cstmrUuid));
+ if (!Cools.isEmpty(id)) {
+ return id.getName();
+ }
+ return null;
+ }
+
+ public String getRealStartTime$(){
+ if (!Cools.isEmpty(this.realStartTime)) {
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realStartTime);
+ }else {
+ return "";
+ }
+
+ }
+
+ public String getRealStartTime0$(){
+ if (!Cools.isEmpty(this.realStartTime)) {
+ return new SimpleDateFormat("yyyy-MM-dd").format(this.realStartTime);
+ }else {
+ return "";
+ }
+
+ }
+
+ public String getRealEndTime$(){
+ if (!Cools.isEmpty(this.realEndTime)) {
+ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realEndTime);
+ }else {
+ return "";
+ }
+ }
+ public String getRealEndTime0$(){
+ if (!Cools.isEmpty(this.realEndTime)) {
+ return new SimpleDateFormat("yyyy-MM-dd").format(this.realEndTime);
+ }else {
+ return "";
+ }
+ }
+
+ public String getType$(){
+ ProjectTypeService bean = SpringUtils.getBean(ProjectTypeService.class);
+ ProjectType id = bean.selectOne(new EntityWrapper<ProjectType>()
+ .eq("id", this.type));
+ if (!Cools.isEmpty(id)) {
+ return id.getTypeName();
+ }
+ return null;
+ }
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
@@ -389,4 +477,5 @@
}
+
}
--
Gitblit v1.9.1