From c47f7b9c4899036c52ad0e4f46c4aff7102110bc Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 09 九月 2024 19:56:07 +0800
Subject: [PATCH] 最新版本

---
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java |   85 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 80 insertions(+), 5 deletions(-)

diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
index 7859656..c916a3d 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
@@ -2,6 +2,7 @@
 
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.doumee.core.annotation.excel.ExcelColumn;
+import com.doumee.core.utils.Constants;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import com.baomidou.mybatisplus.annotation.IdType;
@@ -11,6 +12,7 @@
 import com.fasterxml.jackson.annotation.JsonFormat;
 import java.util.Date;
 import java.math.BigDecimal;
+import java.util.Objects;
 
 /**
  * 鏈堝彴璋冨害浣滀笟淇℃伅琛�
@@ -91,12 +93,26 @@
 
     @ApiModelProperty(value = "绛惧埌鏃堕棿")
     @ExcelColumn(name="绛惧埌鏃堕棿")
-  
     private Date signDate;
 
     @ApiModelProperty(value = "绛惧埌鏂瑰紡 0app绛惧埌 1鎵爜绛惧埌", example = "1")
     @ExcelColumn(name="绛惧埌鏂瑰紡 0app绛惧埌 1鎵爜绛惧埌")
     private Integer singType;
+    @ApiModelProperty(value = "閫氱煡WMS浣滀笟缁戝畾鏈堝彴鏃堕棿")
+    @ExcelColumn(name="閫氱煡WMS浣滀笟缁戝畾鏈堝彴鏃堕棿")
+    private Date wmsSendDate;
+    @ApiModelProperty(value = "閫氱煡WMS浣滀笟缁戝畾鏈堝彴鐘舵�� 0寰呴�氱煡 1閫氱煡鎴愬姛 2閫氱煡澶辫触", example = "1")
+    @ExcelColumn(name="閫氱煡WMS浣滀笟缁戝畾鏈堝彴鐘舵�� 0寰呴�氱煡 1閫氱煡鎴愬姛 2閫氱煡澶辫触")
+    private Integer wmsSendStatus;
+    @ApiModelProperty(value = "閫氱煡WMS浣滀笟缁戝畾鏈堝彴绶ㄧ⒓", example = "1")
+    @ExcelColumn(name="閫氱煡WMS浣滀笟缁戝畾鏈堝彴绶ㄧ⒓")
+    private String wmsSendPlatformCode;
+    @ApiModelProperty(value = "閫氱煡WMS浣滀笟缁戝畾鏈堝彴澶囨敞", example = "1")
+    @ExcelColumn(name="閫氱煡WMS浣滀笟缁戝畾鏈堝彴澶囨敞")
+    private String wmsSendInfo;
+    @ApiModelProperty(value = "閫氱煡WMS浣滀笟缁戝畾鏈堝彴娆℃暟", example = "1")
+    @ExcelColumn(name="閫氱煡WMS浣滀笟缁戝畾鏈堝彴娆℃暟")
+    private Integer wmsSendNum;
 
     @ApiModelProperty(value = "绛惧埌璺濈(绫筹級", example = "1")
     @ExcelColumn(name="绛惧埌璺濈(绫筹級")
@@ -161,7 +177,6 @@
 
     @ApiModelProperty(value = "鏈堝彴杞氦鏃堕棿")
     @ExcelColumn(name="鏈堝彴杞氦鏃堕棿")
-  
     private Date transPlatformDate;
 
     @ApiModelProperty(value = "鏈堝彴杞氦澶勭悊浜�", example = "1")
@@ -264,18 +279,78 @@
 
     @ApiModelProperty(value = "鍓嶆柟鎺掗槦鏁伴噺", example = "1")
     @TableField(exist = false)
-    private Long lineUpNum;
+    private Integer lineUpNum;
 
-    @ApiModelProperty(value = "鍏宠仈鏈堝彴缁勭紪鐮侊紙鍏宠仈platform_group琛級", example = "1")
+    @ApiModelProperty(value = "棰勮绛夊緟鏃堕棿", example = "1")
     @TableField(exist = false)
-    private Integer groupId;
+    private String waitTime;
+
+    @ApiModelProperty(value = "棰勮瀹屾垚鏃堕棿", example = "1")
+    @TableField(exist = false)
+    private String finishTimeStr;
 
     @ApiModelProperty(value = "浣滀笟鏈堝彴鍚嶇О")
     @TableField(exist = false)
     private String platformName ;
 
+    @ApiModelProperty(value = "wms涓氬姟涓婚敭")
+    @TableField(exist = false)
+    private Integer wmsId ;
+
+    @ApiModelProperty(value = "鏈堝彴缁勭被鍨嬶細0瀹夋嘲鐗╂祦瑁呰揣 1瀹夋嘲鐗╂祦鍗歌揣 2甯傚叕鍙稿嵏璐�")
+    @TableField(exist = false)
+    private Integer groupType ;
+
+    @ApiModelProperty(value = "鎵胯繍鍟�")
+    @TableField(exist = false)
+    private String carrierName ;
+
     @ApiModelProperty(value = "璺濈绛惧埌鐐硅窛绂�")
     @TableField(exist = false)
     private BigDecimal getDistance;
 
+    @ApiModelProperty(value = "鏈堝彴浣滀笟鏁堢巼锛堜竾鏀�/灏忔椂锛�", hidden = true)
+    @TableField(exist = false)
+    private BigDecimal workRate;
+
+    @ApiModelProperty(value = "涓氬姟瑙﹀彂鏃堕棿  鏃堕棿")
+    @TableField(exist = false)
+    private Long optTime;
+
+    @ApiModelProperty(value = "宸蹭綔涓氭椂闂�")
+    @TableField(exist = false)
+    private Long workTime;
+
+    @ApiModelProperty(value = "WMS浠诲姟淇℃伅")
+    @TableField(exist = false)
+    private  PlatformWmsJob platformWmsJob;
+
+    @ApiModelProperty(value = "鏀惰揣鍦帮紙鐩殑鍦帮級")
+    @TableField(exist = false)
+    private String repertotyAddress;
+    @ApiModelProperty(value = "wms鏈堝彴缂栧彿")
+    @TableField(exist = false)
+    private String platformWmsCode;
+
+    @ApiModelProperty(value = "鍙彿绫诲瀷锛�1=鍙彿鍏ュ洯 锛� 2=鏈堝彴鍙彿 锛� 3=鎺掗槦鎯呭喌", example = "1")
+    @TableField(exist = false)
+    private Integer callType;
+
+    public void dealTime(){
+        if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WAIT_CONFIRM.getKey())
+                || Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WART_SIGN_IN.getKey())
+         ){
+            return;
+        }
+        if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey())){
+            this.setOptTime(this.getSignDate().getTime());
+        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey())){
+            this.setOptTime(this.getInwaitDate().getTime());
+        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())){
+            this.setOptTime(this.getCallDate().getTime());
+        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WORKING.getKey())){
+            this.setOptTime(this.getStartDate().getTime());
+        }
+    }
+
 }

--
Gitblit v1.9.3