From 26ee9f01a9c27a671f8d39f42e4e19c5c3e7c6b5 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 22 八月 2024 15:00:11 +0800
Subject: [PATCH] 最新版本

---
 server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 52 insertions(+), 7 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 3958bb0..57cfc6d 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
@@ -1,6 +1,8 @@
 package com.doumee.dao.business.model;
 
+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;
@@ -10,6 +12,7 @@
 import com.fasterxml.jackson.annotation.JsonFormat;
 import java.util.Date;
 import java.math.BigDecimal;
+import java.util.Objects;
 
 /**
  * 鏈堝彴璋冨害浣滀笟淇℃伅琛�
@@ -90,7 +93,6 @@
 
     @ApiModelProperty(value = "绛惧埌鏃堕棿")
     @ExcelColumn(name="绛惧埌鏃堕棿")
-  
     private Date signDate;
 
     @ApiModelProperty(value = "绛惧埌鏂瑰紡 0app绛惧埌 1鎵爜绛惧埌", example = "1")
@@ -112,6 +114,9 @@
     @ApiModelProperty(value = "鏈�杩戝垎閰嶆湀鍙扮紪鐮侊紙鍏宠仈platform)", example = "1")
     @ExcelColumn(name="鏈�杩戝垎閰嶆湀鍙扮紪鐮侊紙鍏宠仈platform)")
     private Integer platformId;
+    @ApiModelProperty(value = "鏈堝彴鍒嗙粍缂栫爜锛堝叧鑱攑latform_group)", example = "1")
+    @ExcelColumn(name="鏈堝彴鍒嗙粍缂栫爜锛堝叧鑱攑latform_group)")
+    private Integer platformGroupId;
 
     @ApiModelProperty(value = "閫氱煡鍏ュ洯绛夊緟鏃堕棿")
     @ExcelColumn(name="閫氱煡鍏ュ洯绛夊緟鏃堕棿")
@@ -137,17 +142,14 @@
 
     @ApiModelProperty(value = "寮�濮嬩綔涓氭椂闂�")
     @ExcelColumn(name="寮�濮嬩綔涓氭椂闂�")
-  
     private Date startDate;
 
     @ApiModelProperty(value = "浣滀笟瀹屾垚鏃堕棿锛堟渶缁堟椂闂达級")
     @ExcelColumn(name="浣滀笟瀹屾垚鏃堕棿锛堟渶缁堟椂闂达級")
-  
     private Date doneDate;
 
     @ApiModelProperty(value = "寮傚父鎸傝捣鏃堕棿")
     @ExcelColumn(name="寮傚父鎸傝捣鏃堕棿")
-  
     private Date errorDate;
 
     @ApiModelProperty(value = "寮傚父鎸傝捣浜虹紪鐮�", example = "1")
@@ -160,7 +162,6 @@
 
     @ApiModelProperty(value = "鏈堝彴杞氦鏃堕棿")
     @ExcelColumn(name="鏈堝彴杞氦鏃堕棿")
-  
     private Date transPlatformDate;
 
     @ApiModelProperty(value = "鏈堝彴杞氦澶勭悊浜�", example = "1")
@@ -207,7 +208,6 @@
 
     @ApiModelProperty(value = "杞﹁締杩涘巶涓嬪彂鏃堕棿")
     @ExcelColumn(name="杞﹁締杩涘巶涓嬪彂鏃堕棿")
-  
     private Date inHkdate;
 
     @ApiModelProperty(value = "浣滀笟绫诲瀷 0鑷湁杞﹀嵏璐� 1鑷湁杞﹁璐� 2澶栧崗杞﹀嵏璐� 3澶栧崗杞﹁璐� 4甯傚叕鍙稿鍗忚溅鍗歌揣", example = "1")
@@ -232,7 +232,6 @@
 
     @ApiModelProperty(value = "浣滃簾鏃堕棿")
     @ExcelColumn(name="浣滃簾鏃堕棿")
-  
     private Date cancelDate;
 
     @ApiModelProperty(value = "浣滃簾澶勭悊浜虹紪鐮�", example = "1")
@@ -263,4 +262,50 @@
     @ExcelColumn(name="鎬昏繍杈撻噺")
     private BigDecimal totalNum;
 
+    @ApiModelProperty(value = "鍓嶆柟鎺掗槦鏁伴噺", example = "1")
+    @TableField(exist = false)
+    private Long lineUpNum;
+
+    @ApiModelProperty(value = "鍏宠仈鏈堝彴缁勭紪鐮侊紙鍏宠仈platform_group琛級", example = "1")
+    @TableField(exist = false)
+    private Integer groupId;
+
+    @ApiModelProperty(value = "浣滀笟鏈堝彴鍚嶇О")
+    @TableField(exist = false)
+    private String platformName ;
+
+    @ApiModelProperty(value = "璺濈绛惧埌鐐硅窛绂�")
+    @TableField(exist = false)
+    private BigDecimal getDistance;
+
+
+    @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;
+
+    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